[New-bugs-announce] [issue23683] allow timeit to run expensive reset code per repeats

Robert Collins report at bugs.python.org
Tue Mar 17 01:47:44 CET 2015


New submission from Robert Collins:

I was timing some cold-cache operations today and had to not use timeit because I wanted to run some code between statement (flushing caches) that shouldn't be timed as part of statement. It would be nice, similarly to -s, to be able to say -i 'something run between statement repetitions'. That is - we run statement in a tight loop some N times, and then repeat that loop some R times, I'd like to run the -i code between the R repetitions, not inside the inner timing loop (since we run that to get timer resolution).

----------
messages: 238252
nosy: rbcollins
priority: normal
severity: normal
status: open
title: allow timeit to run expensive reset code per repeats
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23683>
_______________________________________


More information about the New-bugs-announce mailing list