This repository is set up to run JMH performance tests. Currently, it only contains one project which has all the instructions necessary to run the tests.
This project depends on the following dependency:
<dependency>
<groupId>com.github.lajospolya</groupId>
<artifactId>meterRegistryPerformance</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>That dependency is not published to the Maven Central repository. Therefore, in order to run this test, you must pull the meterRegistryPerformance GitHub repo, build it, and publish it to your local maven repository. Instructions to do this are found in the projet's README.
It is recommended that the benchmarks are run on the CLI to get most reliable results.
Run the following to build the JARs.
mvn clean installThen run the following to run the benchmarks.
java -jar target/benchmarks.jar MicrometerCounterBenchmark -t 4 -f 1For more complete instructions, read the .java file you want to run, for example, MicrometerCounterBenchmark.java.