- Published on
Investigation · Part 5 of 20 · When the benchmark lies
JIT Warmup: Why a Function Gets Faster After Thousands of Calls
A small Java function took 66 ns per call in the first batch and 3.6 ns after 185 batches. I matched the speed changes with the JIT compile log, compared C1 and C2, and looked at why the steady state was not one number.