Message278899
In the issue #28240, I changed the default repeat from 3 to 5 in timeit. Serhiy wrote (msg277157): "For now default timeit run takes from 0.8 to 8 sec. Adding yet 5 sec makes a user more angry."
I propose to use powers to 2, instead of powers of 10, in timeit autorange to reduce the total duration of the microbenchmark.
* Without the patch, the worst case: 4.0 * 6 = 24 seconds.
* With the patch, the worst case is: 0.4 * 6 = 2.4 seconds
* 6: autorange (1 iteration) + 5 repeatition
* autorange uses a minimum of 200 ms, so the worst case is 200 ms * 10 before, or 200 ms * 2 after |
|
Date |
User |
Action |
Args |
2016-10-18 16:13:11 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2016-10-18 16:13:11 | vstinner | set | messageid: <1476807191.35.0.710869100873.issue28469@psf.upfronthosting.co.za> |
2016-10-18 16:13:11 | vstinner | link | issue28469 messages |
2016-10-18 16:13:11 | vstinner | create | |
|