summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-04-25 01:25:37 (GMT)
committerJesus Cea <jcea@jcea.es>2011-04-25 01:25:37 (GMT)
commitb32321aed94bee8ea68fad79ed710670d0c1941c (patch)
treeaf3eb779865a3486bb76ae16de24ceec15c874f4
parent5db3e0167d63b954af2c996c0eba494d309fb539 (diff)
parent8f14bbdaf6ec32bc533fbb9f23662c51d6620af7 (diff)
downloadcpython-b32321aed94bee8ea68fad79ed710670d0c1941c.zip
cpython-b32321aed94bee8ea68fad79ed710670d0c1941c.tar.gz
cpython-b32321aed94bee8ea68fad79ed710670d0c1941c.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 2b9595b..6715190 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -852,6 +852,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()