4 ms·
True, but the minimum might also be dependent on the various caches being primed from previous runs of the same code - a condition that will not appear during n
by stefantalpalaru 12y ago
True, but the minimum might also be dependent on the various caches being primed from previous runs of the same code - a condition that will not appear during normal use.
- Matumio 12y agoCaches 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.