- Published on
Investigation · Part 8 of 20 · When the benchmark lies
The Average Hides the Slow Requests
I timed four million single Vec::push calls: mean 22.8 ns, slowest 315,684 ns. The slow ones were not the reallocations but page faults, and huge pages made them bigger. Then a simulated request handler where the mean is a time that no request had.