[New-bugs-announce] [issue30080] Add the --duplicate option for timeit

Serhiy Storchaka report at bugs.python.org
Sun Apr 16 02:12:44 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30080>
_______________________________________


More information about the New-bugs-announce mailing list