Prev Next
Some JVM implementation will do code optimization at run time. When a code path is executed repeatedly, the first a few rounds are always longer than later rounds (try this out). Performance engineer generally discard the first a few rounds when benchmark the performance of java code.