1. 6
  1. 4

    This a cool example of the severe limitations of microbenchmarking. In microbenchmarks, the performance impact of the extra function call is present, but it completely disappears in larger benchmarks due to JIT optimization. This is also good evidence that benchmarking should be done in the context of real applications and with a focus on what’s actually being observed as slow on real workloads.