Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2016-10-18.16:13:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476807191.35.0.710869100873.issue28469@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-10-18 16:13:11vstinnersetrecipients: + vstinner, serhiy.storchaka
2016-10-18 16:13:11vstinnersetmessageid: <1476807191.35.0.710869100873.issue28469@psf.upfronthosting.co.za>
2016-10-18 16:13:11vstinnerlinkissue28469 messages
2016-10-18 16:13:11vstinnercreate