@@ -37,7 +37,7 @@ class DecoratorPersistor(p: Persistor) extends SerializationPersistor {
37
37
}
38
38
39
39
object BenchTests extends OnlineRegressionReport {
40
- val outputDir = " ./out/"
40
+ val outputDir = " .. /out/"
41
41
42
42
val compiler = new CompilerTest {
43
43
override val defaultOutputDir : String = outputDir
@@ -47,7 +47,7 @@ object BenchTests extends OnlineRegressionReport {
47
47
val scala2mode = List (" -language:Scala2" )
48
48
49
49
val dottyDir = " ../compiler/src/dotty/"
50
- val testDir = " ./bench/tests/"
50
+ val testDir = " .. /bench/tests/"
51
51
52
52
val stdlibFiles = Source .fromFile(" ../compiler/test/dotc/scala-collections.whitelist" , " UTF8" ).getLines()
53
53
.map(_.trim) // allow identation
@@ -76,20 +76,18 @@ object BenchTests extends OnlineRegressionReport {
76
76
def setup =
77
77
performance of " dotty" in {
78
78
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 }
81
80
}
82
81
83
82
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 }
85
84
}
86
85
87
86
val dir = Directory (testDir)
88
87
val fileNames = dir.files.toArray.map(_.jfile.getName).filter(name => (name endsWith " .scala" ))
89
88
90
89
for (name <- fileNames) {
91
90
measure.method(name) in {
92
- // maybe scalac curve later
93
91
using(Gen .unit(" test" )) curve " dotty" in { r =>
94
92
compiler.compileFile(testDir, name, extension = " " )
95
93
}
0 commit comments