Skip to content

Commit

Permalink
Remove jmh.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdandrutu committed Apr 17, 2019
1 parent 7f82a40 commit c600cb4
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ buildscript {
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.16'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.8"
classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.0"
}
}

Expand All @@ -30,8 +28,6 @@ subprojects {
apply plugin: 'jacoco'
// The plugin only has an effect if a signature is specified
apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'me.champeau.gradle.jmh'
apply plugin: 'io.morethan.jmhreport'
apply plugin: 'com.github.sherter.google-java-format'
apply plugin: 'net.ltgt.errorprone'

Expand All @@ -46,7 +42,7 @@ subprojects {
mavenLocal()
}

[compileJava, compileTestJava, compileJmhJava].each() {
[compileJava, compileTestJava].each() {
// We suppress the "try" warning because it disallows managing an auto-closeable with
// try-with-resources without referencing the auto-closeable within the try block.
// We suppress the "processing" warning as suggested in
Expand Down Expand Up @@ -188,29 +184,6 @@ subprojects {
archives javadocJar, sourcesJar
}

jmh {
jmhVersion = '1.20'
warmupIterations = 10
iterations = 10
fork = 1
failOnError = true
resultFormat = 'JSON'
// Allow to run single benchmark class like:
// ./gradlew -PjmhIncludeSingleClass=StatsTraceContextBenchmark clean :grpc-core:jmh
if (project.hasProperty('jmhIncludeSingleClass')) {
include = [
project.property('jmhIncludeSingleClass')
]
}
}

jmhReport {
jmhResultPath = project.file("${project.buildDir}/reports/jmh/results.json")
jmhReportOutput = project.file("${project.buildDir}/reports/jmh")
}

tasks.jmh.finalizedBy tasks.jmhReport

// At a test failure, log the stack trace to the console so that we don't
// have to open the HTML in a browser.
test {
Expand Down

0 comments on commit c600cb4

Please sign in to comment.