This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Guido.van.Rossum, alex, arigo, georg.brandl, gvanrossum, pitrou, r.david.murray, rhettinger, serhiy.storchaka, steven.daprano, tim.peters, vstinner
Date 2017-04-16.06:12:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492323164.81.0.971695586502.issue30080@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-04-16 06:12:45serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, tim.peters, arigo, georg.brandl, rhettinger, pitrou, vstinner, steven.daprano, alex, r.david.murray, Guido.van.Rossum
2017-04-16 06:12:44serhiy.storchakasetmessageid: <1492323164.81.0.971695586502.issue30080@psf.upfronthosting.co.za>
2017-04-16 06:12:44serhiy.storchakalinkissue30080 messages
2017-04-16 06:12:44serhiy.storchakacreate