Skip to content

Commit 157481b

Browse files
committed
restore curve name for backward data compatibility
1 parent eaf6a22 commit 157481b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bench/test/dotty/tools/benchmarks/Benchmarks.scala

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DecoratorPersistor(p: Persistor) extends SerializationPersistor {
3737
}
3838

3939
object BenchTests extends OnlineRegressionReport {
40-
val outputDir = "./out/"
40+
val outputDir = "../out/"
4141

4242
val compiler = new CompilerTest {
4343
override val defaultOutputDir: String = outputDir
@@ -47,7 +47,7 @@ object BenchTests extends OnlineRegressionReport {
4747
val scala2mode = List("-language:Scala2")
4848

4949
val dottyDir = "../compiler/src/dotty/"
50-
val testDir = "./bench/tests/"
50+
val testDir = "../bench/tests/"
5151

5252
val stdlibFiles = Source.fromFile("../compiler/test/dotc/scala-collections.whitelist", "UTF8").getLines()
5353
.map(_.trim) // allow identation
@@ -76,20 +76,18 @@ object BenchTests extends OnlineRegressionReport {
7676
def setup =
7777
performance of "dotty" in {
7878
measure.method("stdlib") in {
79-
// maybe scalac curve later
80-
using(Gen.unit("test")) curve "dotty" in { r => stdLib }
79+
using(Gen.unit("test")) curve "stdlib" in { r => stdLib }
8180
}
8281

8382
measure.method("dotty-src") in {
84-
using(Gen.unit("test")) curve "dotty" in { r => dotty }
83+
using(Gen.unit("test")) curve "dotty-src" in { r => dotty }
8584
}
8685

8786
val dir = Directory(testDir)
8887
val fileNames = dir.files.toArray.map(_.jfile.getName).filter(name => (name endsWith ".scala"))
8988

9089
for (name <- fileNames) {
9190
measure.method(name) in {
92-
// maybe scalac curve later
9391
using(Gen.unit("test")) curve "dotty" in { r =>
9492
compiler.compileFile(testDir, name, extension = "")
9593
}

0 commit comments

Comments
 (0)