Writing `long t0 = System.nanoTime(); for (int i=0; i<1_000_000; i++) calc(10);` almost always measures lies! HotSpot's C2 JIT proves the loop body unused (deleting it completely), folds constant parameters at compile time, or mixes cold interpreter setup with Tier 4 JIT.
More lessons in Complete Core Java