3 ms·
Caches being primed is a concern, but not when choosing between minimum and average. Neither is affected much if the first run takes longer than the other nine.
by Matumio 12y ago
Caches being primed is a concern, but not when choosing between minimum and average. Neither is affected much if the first run takes longer than the other nine.
- gcr 12y agoIPython's %timeit magic works by running the function in three loops. It returns the minimum of the three averages. This seems like a good compromise.