File: performance.sh

package info (click to toggle)
python-decorator 5.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 2,045; sh: 20; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (5)
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()"