kuroko/bench/list.py

12 lines
134 B
Python
Raw Normal View History

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