STINNER Victor added the comment:

Oh, your message reminded me that I always wanted an option in the timeit 
module to run the benchmark on two Python versions and then directly compare 
the result. I just added the feature to perf and then I released perf 0.7.11, 
enjoy! The output is more compact and it's more reliable because the comparison 
ensures that the difference is significant.

---
$ export PYTHONPATH=~/prog/GIT/perf
$ ./python-resize -m perf timeit --inherit-environ=PYTHONPATH 
--compare-to=./python-ref -s 'x = range(1000); d={}' 'for i in x: d[i]=i; del 
d[i];' --rigorous
python-ref: ........................................ 77.6 us +- 1.8 us
python-resize: ........................................ 74.8 us +- 1.9 us

Median +- std dev: [python-ref] 77.6 us +- 1.8 us -> [python-resize] 74.8 us +- 
1.9 us: 1.04x faster
---

I can reproduced the 4% speedup.

(I didn't review the patch yet.)

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28199>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to