[issue23183] timeit CLI best of 3: undocumented output format
New submission from Chathuranga: easy Following command is executed in terminal to use timeit module to measure time. python -m timeit -v -n 3 "time.sleep(1)" Output of the command: raw times: 3 3 3 3 loops, best of 3: 1 sec per loop The interpretation of this output is unclear, and no details available in the documentation. https://docs.python.org/2/library/timeit.html#command-line-interface ---------- assignee: docs@python components: Documentation messages: 233570 nosy: docs@python, hachat priority: normal severity: normal status: open title: timeit CLI best of 3: undocumented output format type: enhancement versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
Changes by Robert Collins <robertc@robertcollins.net>: ---------- nosy: +rbcollins _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
Robert Collins added the comment: Here is a patch with some prose - feedback appreciated! ---------- keywords: +patch Added file: http://bugs.python.org/file38531/issue-23183-1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
Changes by Robert Collins <robertc@robertcollins.net>: ---------- stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
Changes by Robert Collins <robertc@robertcollins.net>: ---------- stage: patch review -> commit review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
R. David Murray added the comment: I think the use of "timing loop" is very confusing, since the word 'loop' refers to one execution of the statement body in the actual output text. What about calling it a 'timing run'? It looks like whatever we come up with should be applied to 3.5 and 3.6 as well. ---------- nosy: +r.david.murray stage: commit review -> needs patch versions: +Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23183> _______________________________________
participants (3)
-
Chathuranga
-
R. David Murray
-
Robert Collins