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 methane
Recipients methane, rhettinger, serhiy.storchaka
Date 2017-08-23.17:30:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503509430.43.0.810603641347.issue31265@psf.upfronthosting.co.za>
In-reply-to
Content
When no change happens:

$ ./py-patched -m perf timeit --compare-to `pwd`/py-default -s 'from collections import Ordedict; od = odict.fromkeys("abcdefghijklmnopqrstuvwxyz")' -- 'od.move_to_end("a", 0)'                                                                          
py-default: ..................... 90.6 ns +- 1.0 ns
py-patched: ..................... 107 ns +- 1 ns

Mean +- std dev: [py-default] 90.6 ns +- 1.0 ns -> [py-patched] 107 ns +- 1 ns: 1.18x slower (+18%)

When change happens:

$ ./py-patched -m perf timeit --compare-to `pwd`/py-default -s 'from collections import OrderedDict as odict; od = odict.fromkeys("abcdefghijklmnopqrstuvwxyz")' -- 'od.move_to_end("y", 0); od.move_to_end("z", 0)'
py-default: ..................... 233 ns +- 4 ns
py-patched: ..................... 304 ns +- 2 ns

Mean +- std dev: [py-default] 233 ns +- 4 ns -> [py-patched] 304 ns +- 2 ns: 1.30x slower (+30%)
History
Date User Action Args
2017-08-23 17:30:30methanesetrecipients: + methane, rhettinger, serhiy.storchaka
2017-08-23 17:30:30methanesetmessageid: <1503509430.43.0.810603641347.issue31265@psf.upfronthosting.co.za>
2017-08-23 17:30:30methanelinkissue31265 messages
2017-08-23 17:30:30methanecreate