3 ms·
The same function is being called over and over millions of times, so hopefully that should give HotSpot a chance to kick in. I didn't want to add artificial wa
by logicchains 12y ago
The same function is being called over and over millions of times, so hopefully that should give HotSpot a chance to kick in. I didn't want to add artificial warm up as I don't think that's representative of real code.
- igouy 12y agoCheck times with JMH http://openjdk.java.net/projects/code-tools/jmh/ http://openjdk.java.net/projects/code-tools/jmh/ Also -XX:-PrintCompilation -XX:-PrintGC https://wikis.oracle.com/display/HotSpotInternals/MicroBenchmarks https://wikis.oracle.com/display/HotSpotInternals/MicroBench...