Java Benchmarking Java Correctly with JMH A System.nanoTime() loop around your code is not a benchmark — it's a measurement of the JIT compiler warming up. JMH exists to fix exactly that. Sep 7, 20254 min read Read →