diff options
author | Jesus Cea <jcea@jcea.es> | 2011-04-25 03:20:54 +0200 |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2011-04-25 03:20:54 +0200 |
commit | f93bb262eb52803cad52b87728f5c8094207c2cb (patch) | |
tree | 34ad56f91284c8573537333d12d7937b12f0b776 | |
parent | 3f2b18495b03f0a7dbacefade0f32d41c410e529 (diff) | |
download | cpython-git-f93bb262eb52803cad52b87728f5c8094207c2cb.tar.gz |
pybench prep_times calculation error (closes #11895)
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rwxr-xr-x | Tools/pybench/pybench.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -795,6 +795,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 76f146875d..7c0cf7b5ea 100755 --- a/Tools/pybench/pybench.py +++ b/Tools/pybench/pybench.py @@ -278,7 +278,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 |