sureshg / jmh-bench-sample

⌛ A sample repo for building and visualize Java and Kotlin benchmarks with JMH.

Home Page:https://suresh.dev/jmh-bench-sample/?sources=jmh-result-Linux.json,jmh-result-macOS.json,jmh-result-Windows.json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JMH Benchmark Sample

WorksWithOpenJDK

GitHub Workflow Status JMH Kotlin release OpenJDK Version Style guide

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
  • 🏃 Run with profiling (requires hsdis)

$ java --enable-preview -jar target/benchmarks.jar -prof perfasm
🎨 JMH Visualization

JMH Benchmarks Viz

🔖 Resources
🛠️ 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
©️ Credits

About

⌛ A sample repo for building and visualize Java and Kotlin benchmarks with JMH.

https://suresh.dev/jmh-bench-sample/?sources=jmh-result-Linux.json,jmh-result-macOS.json,jmh-result-Windows.json


Languages

Language:Kotlin 51.0%Language:Java 49.0%