JMH Benchmark Sample
⌛A sample repo for building Java and Kotlin benchmarks with JMH and publish the artifacts to GitHub Package Registry.
-
🏗️ Build & Run
$ ./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
-
hsdis)
🏃 Run with profiling (requires
$ java --enable-preview -jar target/benchmarks.jar -prof perfasm
🎨 JMH Visualization
🔖 Resources
- JMH Samples
- JMH Kotlin Archetype
- Kotlin Benchmarks
- Intellij JMH Plugin
- JMH Visualizer
- JMH Gradle Plugin
- JMH Gradle Report
- GitHub Action—Java with Maven
🛠️ Misc
# 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