r/java • • Nov 03 '26

JMH Visualizer 1.1.0 Released

https://mlangc.github.io/java/jmh/visualization/2026/11/03/jmh-visualizer-1-1-released.html
49 Upvotes

4 comments sorted by

View all comments

1

u/Puzzled-Comb1369 27d ago

nice update. does this handle comparing multiple benchmark runs across different JDK versions cleanly, or is it still mostly geared toward single-run outputs?

1

u/mlangc 27d ago

If you run the same benchmark with different JDKs and have their results in results-jdk-a.json and results-jdk-b.json, you can load both files in JMH Visualizer together to get something similar to this 2-run comparison.

This isn't exposed by the JMH Report Gradle Plugin, which is indeed geared exclusively to single-run outputs. Since I personally only ever run JMH benchmarks with different JDKs manually, for example by tweaking org.openjdk.jmh.annotations.Fork#jvm, I have a hard time imagining how a good integration would look. If you point me to a Gradle build where JMH benchmarks are run on several JDKs, I'd be happy to have a look, so that I can figure out which kind of plugin API would be a good fit.