Skip to content

Commit 1bd6dd5

Browse files
committed
Uncomment @Fork.
1 parent 16fe81a commit 1bd6dd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compilation/src/main/scala/scala/tools/nsc/ScalacBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ object ScalacBenchmarkStandalone {
140140
@BenchmarkMode(Array(SingleShotTime))
141141
@OutputTimeUnit(TimeUnit.MILLISECONDS)
142142
// 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"))
144144
class ColdScalacBenchmark extends ScalacBenchmark {
145145
@Benchmark
146146
def compile(): Unit = compileImpl()
@@ -152,7 +152,7 @@ class ColdScalacBenchmark extends ScalacBenchmark {
152152
@Measurement(iterations = 1, time = 30, timeUnit = TimeUnit.SECONDS)
153153
// @Fork triggers match error in dotty, see https://github.com/lampepfl/dotty/issues/2704
154154
// 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"))
156156
class WarmScalacBenchmark extends ScalacBenchmark {
157157
@Benchmark
158158
def compile(): Unit = compileImpl()
@@ -162,7 +162,7 @@ class WarmScalacBenchmark extends ScalacBenchmark {
162162
@OutputTimeUnit(TimeUnit.MILLISECONDS)
163163
@Warmup(iterations = 10, time = 10, timeUnit = TimeUnit.SECONDS)
164164
@Measurement(iterations = 10, time = 10, timeUnit = TimeUnit.SECONDS)
165-
//@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
165+
@Fork(value = 3, jvmArgs = Array("-Xms2G", "-Xmx2G"))
166166
class HotScalacBenchmark extends ScalacBenchmark {
167167
@Benchmark
168168
def compile(): Unit = compileImpl()

0 commit comments

Comments
 (0)