Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f14bbd

Browse files
committed
pybench prep_times calculation error (closes #11895)
1 parent 7365acc commit 8f14bbd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ Christian Tanzer
794794
Steven Taschuk
795795
Monty Taylor
796796
Amy Taylor
797+
Mikhail Terekhov
797798
Tobias Thelen
798799
James Thomas
799800
Robin Thomas

Tools/pybench/pybench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def calibrate_test(self):
276276
for i in calibration_loops:
277277
pass
278278
t = timer() - t
279-
prep_times.append(t)
279+
prep_times.append(t / CALIBRATION_LOOPS)
280280
min_prep_time = min(prep_times)
281281
if _debug:
282282
print()

0 commit comments

Comments
 (0)