Skip to content

Instantly share code, notes, and snippets.

@gluck
Created March 10, 2014 19:15
Show Gist options
  • Save gluck/9472212 to your computer and use it in GitHub Desktop.
Save gluck/9472212 to your computer and use it in GitHub Desktop.
Gradle task to run JMH benchmarks
// JMH files along tests, but s/test/perf/ will work just fine to separate
task(runJmh, dependsOn: 'testClasses', type: JavaExec) {
main = 'org.openjdk.jmh.Main'
args '".*"'
classpath = sourceSets.test.runtimeClasspath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment