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 serhiy.storchaka
Recipients larry, serhiy.storchaka, vstinner
Date 2019-01-11.10:09:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547201357.3.0.7648307759.issue35582@roundup.psfhosted.org>
In-reply-to
Content
Some examples:

$ ./python -m timeit "format('abc')"
Unpatched:  5000000 loops, best of 5: 65 nsec per loop
Patched:    5000000 loops, best of 5: 42.4 nsec per loop

$ ./python -m timeit "'abc'.replace('x', 'y')"
Unpatched:  5000000 loops, best of 5: 101 nsec per loop
Patched:    5000000 loops, best of 5: 63.8 nsec per loop

$ ./python -m timeit "'abc'.ljust(5)"
Unpatched:  2000000 loops, best of 5: 120 nsec per loop
Patched:    5000000 loops, best of 5: 94.4 nsec per loop

$ ./python -m timeit "(1, 2, 3).index(2)"
Unpatched:  2000000 loops, best of 5: 100 nsec per loop
Patched:    5000000 loops, best of 5: 62.4 nsec per loop

$ ./python -m timeit -s "a = [1, 2, 3]" "a.index(2)"
Unpatched:  2000000 loops, best of 5: 93.8 nsec per loop
Patched:    5000000 loops, best of 5: 70.1 nsec per loop

./python -m timeit -s "import math" "math.pow(0.5, 2.0)"
Unpatched:  2000000 loops, best of 5: 112 nsec per loop
Patched:    5000000 loops, best of 5: 82.3 nsec per loop
History
Date User Action Args
2019-01-11 10:09:19serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, larry
2019-01-11 10:09:17serhiy.storchakasetmessageid: <1547201357.3.0.7648307759.issue35582@roundup.psfhosted.org>
2019-01-11 10:09:17serhiy.storchakalinkissue35582 messages
2019-01-11 10:09:17serhiy.storchakacreate