summaryrefslogtreecommitdiffstats
path: root/Lib/timeit.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-10-18 15:13:22 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-10-18 15:13:22 (GMT)
commit1b90115304bb77a0dff16c463e2015a1645ab320 (patch)
tree9a259d9f8866e25471786af777badad7f37a8d99 /Lib/timeit.py
parentf8fb82cd25739fc2fe67c5e6997af28f2a5590d3 (diff)
downloadcpython-1b90115304bb77a0dff16c463e2015a1645ab320.zip
cpython-1b90115304bb77a0dff16c463e2015a1645ab320.tar.gz
cpython-1b90115304bb77a0dff16c463e2015a1645ab320.tar.bz2
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.
Diffstat (limited to 'Lib/timeit.py')
-rw-r--r--Lib/timeit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py
index 0040efd..d40998c 100644
--- a/Lib/timeit.py
+++ b/Lib/timeit.py
@@ -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