[New-bugs-announce] [issue23683] allow timeit to run expensive reset code per repeats
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).
title: allow timeit to run expensive reset code per repeats
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce