A command-line tool to render JMH benchmark results using gnuplot.
Only MacOS x86 binary available for now.
Download it from the bin
directory in this repo and add it to your PATH
.
When you run JMH (or sbt-jmh), pass these arguments to make JMH write its results to a JSON file:
-rf json -rff my-benchmarks.json
Then feed that JSON file to jmh-plot
:
jmh-plot my-benchmarks.json
jmh-plot
will print a gnuplot script to stdout, so you can pipe it straight
into gnuplot
:
jmh-plot my-benchmarks.json | gnuplot
Usage: jmh-plot [--title <string>] <input file>
Render your JMH benchmark results using gnuplot
Options and flags:
--help
Display this help text.
--title <string>
Title to display above the plot
sbt nativeLink
Or if you're happy running it with java -jar
you can build it with sbt assembly
instead.
- Support benchmarks with parameters
- Figure out a good way to distribute the tool. Coursier? Scala Native binaries on GitHub releases?