kuroko/bench/list.krk

12 lines
143 B
Python
Raw Normal View History

2021-04-14 16:25:22 +03:00
from timeit import timeit
let l = []
let add = l.append
let pop = l.pop
def func():
add(1)
pop()
print(timeit(func), "list append")