This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, serhiy.storchaka, vstinner
Date 2017-02-06.10:40:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486377601.8.0.0756365481962.issue29461@psf.upfronthosting.co.za>
In-reply-to
Content
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%)
History
Date User Action Args
2017-02-06 10:40:01vstinnersetrecipients: + vstinner, christian.heimes, serhiy.storchaka
2017-02-06 10:40:01vstinnersetmessageid: <1486377601.8.0.0756365481962.issue29461@psf.upfronthosting.co.za>
2017-02-06 10:40:01vstinnerlinkissue29461 messages
2017-02-06 10:40:01vstinnercreate