[issue22881] show median in benchmark results
Serhiy Storchaka
report at bugs.python.org
Sun Nov 16 11:14:45 CET 2014
Serhiy Storchaka added the comment:
In case of even number of samples the median value is calculated as arithmetic mean of two middle samples.
med_base = (base_times[len(base_times)//2] + base_times[(len(base_times)-1)//2]) / 2
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22881>
_______________________________________
More information about the Python-bugs-list
mailing list