Microbenchmark with java JMH usage example Prerequisites maven JDK 12 Getting Started Compile sources mvn clean install Run the benchmark java -jar target/benchmarks-0.0.1-SNAPSHOT.jar -rf JSON -rff benchmark-result/test-result.json Visualise result Load json report into : https://jmh.morethan.io/