This module contains optional JMH performance tests.
Note that this module is an optional part of the overall project build and does not deploy anything, due to its use of JMH which is not permissively licensed. The module must be built directly.
The benchmarks are maven built and involve some code generation for the JMH part. As such it is required that you rebuild upon changing the code.
mvn clean install
It is recommended that you consider some basic benchmarking practices before running benchmarks:
To run all JMH benchmarks:
java -jar target/benchmark.jar
To list available benchmarks:
java -jar target/benchmark.jar -l
Some JMH help:
java -jar target/benchmark.jar -h
To run a benchmark on a single thread (tg 1) with gc profiling use:
java -jar target/benchmark.jar -prof gc -tg 1