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:
Victor Stinner 2016-10-18 17:13:22 +02:00
parent f8fb82cd25
commit 1b90115304
3 changed files with 21 additions and 18 deletions

View file

@ -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