1 2 3 4 5 6 7 8 9 10 11 12 13
python3 -m timeit -s " from decorator import decorator @decorator def do_nothing(func, *args, **kw): return func(*args, **kw) @do_nothing def f(): pass " "f()" python3 -m timeit -s " def f(): pass " "f()"