[Python-checkins] cpython (merge 3.2 -> default): pybench prep_times calculation error (closes #11895)
jesus.cea
python-checkins at python.org
Mon Apr 25 03:48:02 CEST 2011
http://hg.python.org/cpython/rev/8a277949d904
changeset: 69549:8a277949d904
parent: 69548:bb62908896fe
parent: 69547:66ef5e844e6c
user: Jesus Cea <jcea at jcea.es>
date: Mon Apr 25 03:47:23 2011 +0200
summary:
pybench prep_times calculation error (closes #11895)
files:
Misc/ACKS | 1 +
Tools/pybench/pybench.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -859,6 +859,7 @@
Monty Taylor
Amy Taylor
Anatoly Techtonik
+Mikhail Terekhov
Tobias Thelen
James Thomas
Robin Thomas
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -276,7 +276,7 @@
for i in calibration_loops:
pass
t = timer() - t
- prep_times.append(t)
+ prep_times.append(t / CALIBRATION_LOOPS)
min_prep_time = min(prep_times)
if _debug:
print()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list