Message223212
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. |
|
Date |
User |
Action |
Args |
2014-07-16 14:39:31 | alex | set | recipients:
+ alex, georg.brandl, pitrou, vstinner, steven.daprano, serhiy.storchaka |
2014-07-16 14:39:31 | alex | set | messageid: <1405521571.89.0.889044897195.issue21988@psf.upfronthosting.co.za> |
2014-07-16 14:39:31 | alex | link | issue21988 messages |
2014-07-16 14:39:31 | alex | create | |
|