I do not see the rationale why python's timeit module measures the time using the best of 3
. Here is an example from my console:
~ python -m timeit 'sum(range(10000))'
10000 loops, best of 3: 119 usec per loop
Intuitively, I would have put the whole time together then divide it by the number of loops. What is the intuition of picking up the best of 3 among all loops? It seems just a bit unfair.