File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,13 @@ It is possible to provide a setup statement that is executed only once at the be
282
282
$ python -m timeit -s 'text = "sample string"; char = "g"' 'text.find(char)'
283
283
1000000 loops, best of 5: 0.342 usec per loop
284
284
285
+ In the output, there are three fields. The loop count, which tells you how many
286
+ times the statement body was run per timing loop repetition. The repetition
287
+ count ('best of 5') which tells you how many times the timing loop was
288
+ repeated, and finally the time the statement body took on average within the
289
+ best repetition of the timing loop. That is, the time the fastest repetition
290
+ took divided by the loop count.
291
+
285
292
::
286
293
287
294
>>> import timeit
You can’t perform that action at this time.
0 commit comments