STINNER Victor added the comment:
Benchmarks with Python compiled by gcc -O3 (without PGO).
haypo@smithers$ ./python -m perf timeit 'len("abc")' --duplicate=1000
--compare-to=../default-ref/python
Median +- std dev: [ref] 40.4 ns +- 0.8 ns -> [likely] 40.8 ns +- 2.1 ns: 1.01x
slower (+1%)
haypo@smithers$ ./python -m perf timeit 'sum(())' --duplicate=1000
--compare-to=../default-ref/python -p3
Median +- std dev: [ref] 86.4 ns +- 2.8 ns -> [likely] 86.3 ns +- 0.3 ns: 1.00x
faster (-0%)
Not significant!
haypo@smithers$ ./python -m perf timeit -s 's=list("abc")' 'sorted(s)'
--duplicate=100 --compare-to=../default-ref/python -p3
Median +- std dev: [ref] 224 ns +- 3 ns -> [likely] 222 ns +- 1 ns: 1.01x
faster (-1%)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29461>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com