[Python-checkins] cpython (3.1): pybench prep_times calculation error (closes #11895)

jesus.cea python-checkins at python.org
Mon Apr 25 03:47:54 CEST 2011


http://hg.python.org/cpython/rev/7569870a8236
changeset:   69546:7569870a8236
branch:      3.1
parent:      69499:b20d3f54366c
user:        Jesus Cea <jcea at jcea.es>
date:        Mon Apr 25 03:24:08 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
@@ -794,6 +794,7 @@
 Steven Taschuk
 Monty Taylor
 Amy Taylor
+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