@@ -140,7 +140,7 @@ object ScalacBenchmarkStandalone {
140
140
@ BenchmarkMode (Array (SingleShotTime ))
141
141
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
142
142
// TODO -Xbatch reduces fork-to-fork variance, but incurs 5s -> 30s slowdown
143
- // @Fork(value = 16, jvmArgs = Array("-XX:CICompilerCount=2", "-Xms2G", "-Xmx2G"))
143
+ @ Fork (value = 16 , jvmArgs = Array (" -XX:CICompilerCount=2" , " -Xms2G" , " -Xmx2G" ))
144
144
class ColdScalacBenchmark extends ScalacBenchmark {
145
145
@ Benchmark
146
146
def compile (): Unit = compileImpl()
@@ -152,7 +152,7 @@ class ColdScalacBenchmark extends ScalacBenchmark {
152
152
@ Measurement (iterations = 1 , time = 30 , timeUnit = TimeUnit .SECONDS )
153
153
// @Fork triggers match error in dotty, see https://github.com/lampepfl/dotty/issues/2704
154
154
// Comment out `@Fork` to run compilation/test with Dotty or wait for that issue to be fixed.
155
- // @Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
155
+ @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" ))
156
156
class WarmScalacBenchmark extends ScalacBenchmark {
157
157
@ Benchmark
158
158
def compile (): Unit = compileImpl()
@@ -162,7 +162,7 @@ class WarmScalacBenchmark extends ScalacBenchmark {
162
162
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
163
163
@ Warmup (iterations = 10 , time = 10 , timeUnit = TimeUnit .SECONDS )
164
164
@ Measurement (iterations = 10 , time = 10 , timeUnit = TimeUnit .SECONDS )
165
- // @Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
165
+ @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" ))
166
166
class HotScalacBenchmark extends ScalacBenchmark {
167
167
@ Benchmark
168
168
def compile (): Unit = compileImpl()
0 commit comments