June 2018
Intermediate to advanced
316 pages
6h 34m
English
You can find examples of how to use the JMH at the following link: http://hg.openjdk.java.net/code-tools/jmh/file/tip/jmh-samples/src/main/java/org/openjdk/jmh/samples/. One way is by using the JMHSample_02_BenchmarkModes class, which demonstrates the use of different modes. There are five modes:
Mode.AverageTime: This measures similarly to Mode.Throughput, but calculates the average execution time.
Read now
Unlock full access