Skip to content

Commit bd40804

Browse files
committed
Remove noisy corpus path parameter from benchmark output
1 parent d565c56 commit bd40804

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class ScalacBenchmark extends BenchmarkDriver {
4747
@Param(value = Array(""))
4848
var extraArgs: String = _
4949

50-
@Param(value = Array("../corpus"))
51-
var corpusPath: String = "../corpus"
50+
final val DefaultCorpusPath = ""
51+
@Param(value = Array(DefaultCorpusPath))
52+
var corpusPath: String = DefaultCorpusPath
5253

5354
// This parameter is set by ScalacBenchmarkRunner / UploadingRunner based on the Scala version.
5455
// When running the benchmark directly the "latest" symlink is used.
@@ -93,7 +94,7 @@ class ScalacBenchmark extends BenchmarkDriver {
9394
BenchmarkUtils.deleteRecursive(tempDir.toPath)
9495
}
9596

96-
def corpusSourcePath: Path = Paths.get(s"$corpusPath/$source/$corpusVersion")
97+
def corpusSourcePath: Path = Paths.get(s"${if (corpusPath == DefaultCorpusPath) "../corpus" else corpusPath}/$source/$corpusVersion")
9798

9899
@Setup(Level.Trial) def initDepsClasspath(): Unit = {
99100
val classPath = BenchmarkUtils.initDeps(corpusSourcePath)

0 commit comments

Comments
 (0)