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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23683>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to