- Published on
Investigation · Part 11 of 20 · When the benchmark lies
Measuring Something Faster Than the Clock
Timed one call at a time, a small hash function and an empty loop both take 15 ns: the clock measures itself. With more calls per measurement, the same function costs 0.79 ns per call, or 3.02 ns when each call waits for the previous one.