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 lemburg
Recipients brett.cannon, fijall, lemburg, ned.deily, pitrou, serhiy.storchaka, steven.daprano, tim.peters, vstinner
Date 2016-09-23.12:19:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474633167.43.0.812736594849.issue28240@psf.upfronthosting.co.za>
In-reply-to
Content
> Marc-Andre: "Consensus then was to use the minimum as basis for benchmarking: (...) There are arguments both pro and con using min or avg values."
> 
> To be honest, I expect that most developer are already aware that minimum is evil and so I wouldn't have to convince you. I already posted two links for the rationale. It seems that you are not convinced yet, it seems like I have to prepare a better rationale :-)

I'm not sure I follow. The first link clearly says that "So for better or worse, the choice of which one is better comes down to what we think the underlying distribution will be like." and it ends with "So personally I use the minimum when I benchmark.".

http://blog.kevmod.com/2016/06/benchmarking-minimum-vs-average/

If we display all available numbers, people who run timeit can then see where things vary and possibly look deeper to find the reason.

As I said and the above articles also underlines: there are cases where min is better and others where avg is better. So in the end, having both numbers available gives you all the relevant information.

I have focused on average in pybench 1.0 and then switched to minimum for pybench 2.0. Using minimum resulted in more reproducible results at least on the computers I ran pybench on, but do note that pybench 2.0 still does print out the average values as well. The latter mostly due to some test runs I found where (probably due to CPU timers not working correctly), the min value sometimes dropped to very low values which did not really make sense compared to the average values.
History
Date User Action Args
2016-09-23 12:19:27lemburgsetrecipients: + lemburg, tim.peters, brett.cannon, pitrou, vstinner, ned.deily, steven.daprano, fijall, serhiy.storchaka
2016-09-23 12:19:27lemburgsetmessageid: <1474633167.43.0.812736594849.issue28240@psf.upfronthosting.co.za>
2016-09-23 12:19:27lemburglinkissue28240 messages
2016-09-23 12:19:26lemburgcreate