mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
timeit: change default repeat to 5, instead of 3
Issue #28240: timeit now repeats the benchmarks 5 times instead of only 3 to make benchmarks more reliable.
This commit is contained in:
parent
f8fb82cd25
commit
1b90115304
3 changed files with 21 additions and 18 deletions
|
@ -59,7 +59,7 @@ __all__ = ["Timer", "timeit", "repeat", "default_timer"]
|
|||
|
||||
dummy_src_name = "<timeit-src>"
|
||||
default_number = 1000000
|
||||
default_repeat = 3
|
||||
default_repeat = 5
|
||||
default_timer = time.perf_counter
|
||||
|
||||
_globals = globals
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue