diff options
author | Sander <svr003@gmail.com> | 2020-05-02 16:12:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 16:12:05 (GMT) |
commit | 766352320fd736e2c8ed545b4cc57563f61a0b9d (patch) | |
tree | 4cf257d5f27994ea6f838fc2ca99b551a78a9710 /Lib | |
parent | b7226eb0b76dd867917c6f66fd68fe6f8da01d9c (diff) | |
download | cpython-766352320fd736e2c8ed545b4cc57563f61a0b9d.zip cpython-766352320fd736e2c8ed545b4cc57563f61a0b9d.tar.gz cpython-766352320fd736e2c8ed545b4cc57563f61a0b9d.tar.bz2 |
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/timeit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py index c0362bc..6c3ec01 100755 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -29,7 +29,8 @@ argument in quotes and using leading spaces. Multiple -s options are treated similarly. If -n is not given, a suitable number of loops is calculated by trying -successive powers of 10 until the total time is at least 0.2 seconds. +increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ... until the +total time is at least 0.2 seconds. Note: there is a certain baseline overhead associated with executing a pass statement. It differs between versions. The code here doesn't try |