mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
This commit is contained in:
parent
b7226eb0b7
commit
766352320f
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue