kuroko/bench/list.py

12 lines
134 B
Python

from fasttimer import timeit
l = []
add = l.append
pop = l.pop
def func():
add(1)
pop()
print(timeit(func), "list append")