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

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


http://hg.python.org/cpython/rev/66ef5e844e6c
changeset: 69547:66ef5e844e6c
branch: 3.2
parent: 69541:b0385ec55e7e
parent: 69546:7569870a8236
user: Jesus Cea <jcea at jcea.es>
date: Mon Apr 25 03:25:37 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
@@ -852,6 +852,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

AltStyle によって変換されたページ (->オリジナル) /