⌛ JMH Benchmark Sample
A sample repo for building Java and Kotlin benchmarks with JMH and publish the artifacts to GitHub Package Registry.
$ ./mvnw clean verify
$ java --enable-preview -jar target/benchmarks.jar
# Get a list of supported formats
$ java --enable-preview -jar target/benchmarks.jar -lrf
# For JSON output
$ java --enable-preview -jar target/benchmarks.jar -rf json
$ java --enable-preview -jar target/benchmarks.jar \
-prof "async:libPath=/path/to/async-profiler-3.0/lib/libasyncProfiler.dylib;output=jfr;rawCommand=features=vtable"
-
🏃 Run with profiling (requires hsdis)
$ java --enable-preview -jar target/benchmarks.jar -prof perfasm
- JMH Samples
- JMH Kotlin Archetype
- Kotlin Benchmarks
- Intellij JMH Plugin
- JMH Visualizer
- JMH Gradle Plugin
- JMH Gradle Report
- GitHub Action—Java with Maven
# Maven and dependencies updates.
$ ./mvnw wrapper:wrapper -Dmaven=3.9.2
$ ./mvnw --version
$ ./mvnw clean versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates