summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-04-25 01:47:23 (GMT)
committerJesus Cea <jcea@jcea.es>2011-04-25 01:47:23 (GMT)
commit4f711726bee5c4977360ecd701d7e42feb8f51e2 (patch)
tree76f3630f6e4e5e0b01130b0588b918cb72a64122
parent88f7841be7c59eea1eb5960b68190e6ca5486daa (diff)
parentb32321aed94bee8ea68fad79ed710670d0c1941c (diff)
downloadcpython-4f711726bee5c4977360ecd701d7e42feb8f51e2.zip
cpython-4f711726bee5c4977360ecd701d7e42feb8f51e2.tar.gz
cpython-4f711726bee5c4977360ecd701d7e42feb8f51e2.tar.bz2
pybench prep_times calculation error (closes #11895)
-rw-r--r--Misc/ACKS1
-rwxr-xr-xTools/pybench/pybench.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index c3a227a..d575552 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -859,6 +859,7 @@ Steven Taschuk
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
index 811ef96..8eaad63 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -276,7 +276,7 @@ class Test:
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()