@@ -114,7 +114,7 @@ object ScalacBenchmarkStandalone {
114
114
@ BenchmarkMode (Array (SingleShotTime ))
115
115
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
116
116
// TODO -Xbatch reduces fork-to-fork variance, but incurs 5s -> 30s slowdown
117
- @ Fork (value = 16 , jvmArgs = Array (" -XX:CICompilerCount=2" , " -Xms2G" , " -Xmx2G" ))
117
+ @ Fork (value = 16 , jvmArgs = Array (" -XX:CICompilerCount=2" , " -Xms2G" , " -Xmx2G" , " -Xss2M " ))
118
118
class ColdScalacBenchmark extends ScalacBenchmark {
119
119
@ Benchmark
120
120
def compile (): Unit = compileImpl()
@@ -124,7 +124,7 @@ class ColdScalacBenchmark extends ScalacBenchmark {
124
124
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
125
125
@ Warmup (iterations = 0 )
126
126
@ Measurement (iterations = 1 , time = 30 , timeUnit = TimeUnit .SECONDS )
127
- @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" ))
127
+ @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" , " -Xss2M " ))
128
128
class WarmScalacBenchmark extends ScalacBenchmark {
129
129
@ Benchmark
130
130
def compile (): Unit = compileImpl()
@@ -134,7 +134,7 @@ class WarmScalacBenchmark extends ScalacBenchmark {
134
134
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
135
135
@ Warmup (iterations = 10 , time = 10 , timeUnit = TimeUnit .SECONDS )
136
136
@ Measurement (iterations = 10 , time = 10 , timeUnit = TimeUnit .SECONDS )
137
- @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" ))
137
+ @ Fork (value = 3 , jvmArgs = Array (" -Xms2G" , " -Xmx2G" , " -Xss2M " ))
138
138
class HotScalacBenchmark extends ScalacBenchmark {
139
139
@ Benchmark
140
140
def compile (): Unit = compileImpl()
0 commit comments