[Python-checkins] cpython (2.7): pybench prep_times calculation error (closes #11895)
jesus.cea
python-checkins at python.org
Mon Apr 25 03:47:49 CEST 2011
http://hg.python.org/cpython/rev/e4fcfb8066ff
changeset: 69545:e4fcfb8066ff
branch: 2.7
parent: 69540:c64c41974d1f
user: Jesus Cea <jcea at jcea.es>
date: Mon Apr 25 03:20:54 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
@@ -795,6 +795,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
@@ -278,7 +278,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