Skip to content

Commit

Permalink
JMH Benchmarks Gradle Config
Browse files Browse the repository at this point in the history
- this allows running benchmarks
- config is hardcoded right now
- wasn't able to get uberjar/shadowjar functionality working (ReactiveX#963 (comment))
  • Loading branch information
benjchristensen committed Mar 27, 2014
1 parent 3520445 commit ab7f408
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
mavenCentral()
jcenter()
}

apply from: file('gradle/buildscript.gradle'), to: buildscript
}

Expand Down Expand Up @@ -81,6 +81,28 @@ subprojects {
task benchmarks(type: JavaExec) {
main = 'org.openjdk.jmh.Main'
classpath = sourceSets.perf.runtimeClasspath + sourceSets.main.output
maxHeapSize = "512m"
// args '-h' // help output
args '-f' // fork
args '1'
args '-tu' // time unit
args 'ns'
args '-bm' // benchmark mode
args 'avgt'
args '-wi' // warmup iterations
args '5'
args '-i' // test iterations
args '5'
args '-r' // time per execution in seconds
args '1'
// args '-prof' // profilers
// args 'HS_GC' // HotSpot (tm) memory manager (GC) profiling via implementation-specific MBeans
// args 'HS_RT' // HotSpot (tm) runtime profiling via implementation-specific MBeans
// args 'HS_THR' // HotSpot (tm) threading subsystem via implementation-specific MBeans
// args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
// args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
// args 'STACK' // Simple and naive Java stack profiler
// args '.*OperatorSerializePerf.*' // for running only a specific test
}

}
Expand Down

0 comments on commit ab7f408

Please sign in to comment.