|
@@ -2,7 +2,7 @@ plugins {
|
|
|
id "me.champeau.gradle.jmh" version "0.5.0"
|
|
|
}
|
|
|
|
|
|
-apply from: "${rootDir}/gradle/java.gradle"
|
|
|
+apply from: "$rootDir/gradle/java.gradle"
|
|
|
|
|
|
dependencies {
|
|
|
jmh deps.opentelemetryApi
|
|
@@ -20,8 +20,8 @@ jmh {
|
|
|
timeOnIteration = '20s'
|
|
|
iterations = 1 // Number of measurement iterations to do.
|
|
|
fork = 1 // How many times to forks a single benchmark. Use 0 to disable forking altogether
|
|
|
-// jvmArgs += ["-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints", "-XX:StartFlightRecording=delay=5s,dumponexit=true,name=jmh-benchmark,filename=${rootDir}/benchmark/build/reports/jmh/jmh-benchmark.jfr"]
|
|
|
-// jvmArgs += ["-agentpath:${rootDir}/benchmark/src/jmh/resources/libasyncProfiler.so=start,collapsed,file=${rootDir}/benchmark/build/reports/jmh/profiler.txt"]
|
|
|
+// jvmArgs += ["-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints", "-XX:StartFlightRecording=delay=5s,dumponexit=true,name=jmh-benchmark,filename=$rootDir/benchmark/build/reports/jmh/jmh-benchmark.jfr"]
|
|
|
+// jvmArgs += ["-agentpath:$rootDir/benchmark/src/jmh/resources/libasyncProfiler.so=start,collapsed,file=$rootDir/benchmark/build/reports/jmh/profiler.txt"]
|
|
|
failOnError = true // Should JMH fail immediately if any benchmark had experienced the unrecoverable error?
|
|
|
warmup = '5s' // Time to spend at each warmup iteration.
|
|
|
// warmupBatchSize = 10 // Warmup batch size: number of benchmark method calls per operation.
|