diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2015-07-19 09:40:52 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2015-07-19 09:40:52 +0200 |
commit | cf20ab367249c9eca473d6f9989f0721e451b033 (patch) | |
tree | 048446c39cd14f983897ba8cad6bd6abfa243837 /performance.sh | |
parent | 79c669ce71afcd70b49344823b5ccc8a61023f98 (diff) | |
download | python-decorator-git-cf20ab367249c9eca473d6f9989f0721e451b033.tar.gz |
Overhaul of the documentation and introduced decorator.decorate
Diffstat (limited to 'performance.sh')
-rw-r--r-- | performance.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/performance.sh b/performance.sh new file mode 100644 index 0000000..1efe2c3 --- /dev/null +++ b/performance.sh @@ -0,0 +1,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()" |