2 ms·
In the specific case of code, it is worth noting that runs are typically not independent, because of caching. It is very common for the first run to be slower.
by GuB-42 8y ago
In the specific case of code, it is worth noting that runs are typically not independent, because of caching.
It is very common for the first run to be slower. It means that by "random chance" slow-slow-slow-fast-fast-fast is more likely than fast-fast-fast-slow-slow-slow. I personally tend to discard first runs as outliers when profiling.