@@ -12,7 +12,7 @@ buildscript {
12
12
mavenCentral()
13
13
jcenter()
14
14
}
15
-
15
+
16
16
apply from : file(' gradle/buildscript.gradle' ), to : buildscript
17
17
}
18
18
@@ -46,14 +46,14 @@ subprojects {
46
46
sourceSets {
47
47
examples
48
48
perf {
49
- compileClasspath + = sourceSets. main. output
50
- }
49
+ compileClasspath + = sourceSets. main. output
50
+ }
51
51
}
52
52
53
53
tasks. build {
54
54
// include 'examples' in build task
55
55
dependsOn(examplesClasses)
56
- dependsOn(perfClasses)
56
+ dependsOn(perfClasses)
57
57
}
58
58
59
59
task perfJar(type : Jar , dependsOn : perfClasses) {
@@ -86,48 +86,48 @@ subprojects {
86
86
}
87
87
}
88
88
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
+ }
131
131
132
132
shadow {
133
133
classifier = " benchmarks"
0 commit comments