]> granicus.if.org Git - python/commitdiff
pybench prep_times calculation error (closes #11895)
authorJesus Cea <jcea@jcea.es>
Mon, 25 Apr 2011 01:24:08 +0000 (03:24 +0200)
committerJesus Cea <jcea@jcea.es>
Mon, 25 Apr 2011 01:24:08 +0000 (03:24 +0200)
Misc/ACKS
Tools/pybench/pybench.py

index 6a4fdd5959d22861b7c7e5194d5e5354e08eb05b..7842fa24a95759c07c4841df8659a7c140e3bd86 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -794,6 +794,7 @@ Christian Tanzer
 Steven Taschuk
 Monty Taylor
 Amy Taylor
+Mikhail Terekhov
 Tobias Thelen
 James Thomas
 Robin Thomas
index bee0e560bb24e068d0e73b51603662a4a0d57664..9f1e2e4db0dee8788575b1d5a76a2c2b1a177fb9 100755 (executable)
@@ -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()