New submission from Serhiy Storchaka:

One of the most used by me option of the "perf timeit" subcommand is 
--duplicate. It duplicates statements to reduce the overhead of the loop. This 
is necessary when measure the time of very fast statements. Proposed patch adds 
this option for CLI of the timeit module.

Similar feature already was proposed in issue21988, but it automatically 
duplicated statements if they executed too fast. This patch does this only on 
explicit request. And it affects only command-line interface. You need to 
duplicate statements manually when use programming interface.

----------
components: Demos and Tools, Library (Lib)
messages: 291736
nosy: Guido.van.Rossum, alex, arigo, georg.brandl, gvanrossum, haypo, haypo, 
pitrou, r.david.murray, rhettinger, serhiy.storchaka, steven.daprano, tim.peters
priority: normal
severity: normal
stage: patch review
status: open
title: Add the --duplicate option for timeit
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30080>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to