INADA Naoki added the comment: microbench: $ ./python.patched -m perf timeit --compare-to `pwd`/python.default -s "d = b''" -- "d.decode('ascii')" python.default: ..................... 109 ns +- 1 ns python.patched: ..................... 102 ns +- 1 ns
Median +- std dev: [python.default] 109 ns +- 1 ns -> [python.patched] 102 ns +- 1 ns: 1.08x faster (-7%) $ ./python.patched -m perf timeit --compare-to `pwd`/python.default -s "l = [42]" -- "l.count(42)" python.default: ..................... 66.0 ns +- 0.9 ns python.patched: ..................... 60.0 ns +- 0.3 ns Median +- std dev: [python.default] 66.0 ns +- 0.9 ns -> [python.patched] 60.0 ns +- 0.3 ns: 1.10x faster (-9%) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29263> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com