@@ -12,7 +12,7 @@ buildscript {
1212 mavenCentral()
1313 jcenter()
1414 }
15-
15+
1616 apply from : file(' gradle/buildscript.gradle' ), to : buildscript
1717}
1818
@@ -46,14 +46,14 @@ subprojects {
4646 sourceSets {
4747 examples
4848 perf {
49- compileClasspath + = sourceSets. main. output
50- }
49+ compileClasspath + = sourceSets. main. output
50+ }
5151 }
5252
5353 tasks. build {
5454 // include 'examples' in build task
5555 dependsOn(examplesClasses)
56- dependsOn(perfClasses)
56+ dependsOn(perfClasses)
5757 }
5858
5959 task perfJar(type : Jar , dependsOn : perfClasses) {
@@ -86,48 +86,48 @@ subprojects {
8686 }
8787 }
8888
89- /**
90- * By default: Run without arguments this will execute all benchmarks that are found (can take a long time).
91- *
92- * Optionally pass arguments for custom execution. Example:
93- *
94- * ../gradlew benchmarks '-Pjmh=-f 1 -tu ns -bm avgt -wi 5 -i 5 -r 1 .*OperatorSerializePerf.*'
95- *
96- * To see all options:
97- *
98- * ../gradlew benchmarks '-Pjmh=-h'
99- */
100- task benchmarks(type : JavaExec ) {
101- main = ' org.openjdk.jmh.Main'
102- classpath = sourceSets. perf. runtimeClasspath + sourceSets. main. output
103- maxHeapSize = " 512m"
104-
105- if (project. hasProperty(' jmh' )) {
106- args(jmh. split(' ' ))
107- } else {
108- // args '-h' // help output
109- args ' -f' // fork
110- args ' 1'
111- args ' -tu' // time unit
112- args ' ns'
113- args ' -bm' // benchmark mode
114- args ' avgt'
115- args ' -wi' // warmup iterations
116- args ' 5'
117- args ' -i' // test iterations
118- args ' 5'
119- args ' -r' // time per execution in seconds
120- args ' 5'
121- // args '-prof' // profilers
122- // args 'HS_GC' // HotSpot (tm) memory manager (GC) profiling via implementation-specific MBeans
123- // args 'HS_RT' // HotSpot (tm) runtime profiling via implementation-specific MBeans
124- // args 'HS_THR' // HotSpot (tm) threading subsystem via implementation-specific MBeans
125- // args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
126- // args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
127- // args 'STACK' // Simple and naive Java stack profiler
128- args ' .*OperatorSerializePerf.*' // for running only a specific test
129- }
130- }
89+ /**
90+ * By default: Run without arguments this will execute all benchmarks that are found (can take a long time).
91+ *
92+ * Optionally pass arguments for custom execution. Example:
93+ *
94+ * ../gradlew benchmarks '-Pjmh=-f 1 -tu ns -bm avgt -wi 5 -i 5 -r 1 .*OperatorSerializePerf.*'
95+ *
96+ * To see all options:
97+ *
98+ * ../gradlew benchmarks '-Pjmh=-h'
99+ */
100+ task benchmarks(type : JavaExec ) {
101+ main = ' org.openjdk.jmh.Main'
102+ classpath = sourceSets. perf. runtimeClasspath + sourceSets. main. output
103+ maxHeapSize = " 512m"
104+
105+ if (project. hasProperty(' jmh' )) {
106+ args(jmh. split(' ' ))
107+ } else {
108+ // args '-h' // help output
109+ args ' -f' // fork
110+ args ' 1'
111+ args ' -tu' // time unit
112+ args ' ns'
113+ args ' -bm' // benchmark mode
114+ args ' avgt'
115+ args ' -wi' // warmup iterations
116+ args ' 5'
117+ args ' -i' // test iterations
118+ args ' 5'
119+ args ' -r' // time per execution in seconds
120+ args ' 5'
121+ // args '-prof' // profilers
122+ // args 'HS_GC' // HotSpot (tm) memory manager (GC) profiling via implementation-specific MBeans
123+ // args 'HS_RT' // HotSpot (tm) runtime profiling via implementation-specific MBeans
124+ // args 'HS_THR' // HotSpot (tm) threading subsystem via implementation-specific MBeans
125+ // args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
126+ // args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
127+ // args 'STACK' // Simple and naive Java stack profiler
128+ args ' .*OperatorSerializePerf.*' // for running only a specific test
129+ }
130+ }
131131
132132 shadow {
133133 classifier = " benchmarks"
0 commit comments