gradle-jmh-report is a Gradle plugin to manage and visualize the result of your JMH benchmarks.
Note: This plugin is not for executing benchmarks, its for reporting on already executed benchmarks. There are multiple ways how you can setup your JMH benchmark execution in Gradle, i've written in this blog post about it!
Wanted:
plugins {
id "io.morethan.jmhreport" version "0.9.0"
}
jmhReport {
jmhResultPath = project.file('build/reports/jmh/result.json')
jmhReportOutput = project.file('build/reports/jmh')
}
./gradlew jmhReport
which will build the html report.tasks.jmh.finalizedBy tasks.jmhReport
. With this, every time you execute your jmh benchmarks, e.g. with ./gradlew jmh, the jmhReport task will run at the end../gradlew cleanEclipse eclipse
./gradlew jar ;./gradlew -p exampleProjects/java-benchmarks/ jmh
npm run providedZip
mv jmh-visualizer.zip ../../eclipse/gradle-jmh-report/src/main/resources/
./gradlew jar ;./gradlew jmh -p exampleProjects/java-benchmarks/ -Pinclude=".*QuickBenchmark.*"
git tag -a $releaseVersion -m "$releaseVersion release"
git push --tags
./gradlew publishPlugins