mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
parent
c3e40f8c5b
commit
62cca920db
2 changed files with 8 additions and 1 deletions
|
|
@ -325,6 +325,9 @@ def main(args=None, *, _wrap_timer=None):
|
|||
t.print_exc()
|
||||
return 1
|
||||
|
||||
if verbose:
|
||||
print()
|
||||
|
||||
try:
|
||||
raw_timings = t.repeat(repeat, number)
|
||||
except:
|
||||
|
|
@ -347,7 +350,7 @@ def main(args=None, *, _wrap_timer=None):
|
|||
|
||||
if verbose:
|
||||
print("raw times: %s" % ", ".join(map(format_time, raw_timings)))
|
||||
|
||||
print()
|
||||
timings = [dt / number for dt in raw_timings]
|
||||
|
||||
best = min(timings)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue