kuroko/bench/list.py
2021-04-14 22:25:22 +09:00

12 lines
131 B
Python

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