Summary
In this chapter, we learned that the JMH is a Java harness library for writing benchmarks for the JVM. We experimented with writing performance tests using Maven along with JMH to help illustrate the procedures of microbenchmarking with the new Java 9 platform. We started with amicrobenchmarking overview, then dove deep intomicrobenchmarking with Maven, reviewedbenchmarking options, and concluded with a few techniques for avoiding microbenchmarking pitfalls.
In the next chapter, we will learn to write an application that is managing other processes and utilizes the modern process management API of the Java 9 platform.