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 alex
Recipients alex, georg.brandl, pitrou, serhiy.storchaka, steven.daprano, vstinner
Date 2014-07-16.14:39:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405521571.89.0.889044897195.issue21988@psf.upfronthosting.co.za>
In-reply-to
Content
I think this is likely to make timeit less representative of how code actually performs in the real world on systems with a JIT. This is because of the cost of sequential operations is not strictly "additive" on PyPy.

If you have statements `a` and `b`, and you run `a; b` on PyPy, the performance of `a; b` is usually faster than the sum of `a`, `b`, assuming they are not 100% independent.

This is because the JIT will be able to remove type checks that were already performed. Since this just repeats the same statement, the cost of the unrolled iterations beyond the first will be massively lower in many cases, producing confusing results.
History
Date User Action Args
2014-07-16 14:39:31alexsetrecipients: + alex, georg.brandl, pitrou, vstinner, steven.daprano, serhiy.storchaka
2014-07-16 14:39:31alexsetmessageid: <1405521571.89.0.889044897195.issue21988@psf.upfronthosting.co.za>
2014-07-16 14:39:31alexlinkissue21988 messages
2014-07-16 14:39:31alexcreate