aboutsummaryrefslogtreecommitdiff
path: root/bench/test/dotty/tools/benchmarks/Benchmarks.scala
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2016-11-16 17:04:08 +0100
committerliu fengyun <liu@fengy.me>2016-11-24 14:58:51 +0100
commit157481b24e00c87ba3d44a28dd07c70c28001f0e (patch)
treec55ba3d22d017bf41f569d625af4fb4bed7dbda2 /bench/test/dotty/tools/benchmarks/Benchmarks.scala
parenteaf6a2201bf29dcb18ea54417c2af89e32d11c4b (diff)
downloaddotty-157481b24e00c87ba3d44a28dd07c70c28001f0e.tar.gz
dotty-157481b24e00c87ba3d44a28dd07c70c28001f0e.tar.bz2
dotty-157481b24e00c87ba3d44a28dd07c70c28001f0e.zip
restore curve name for backward data compatibility
Diffstat (limited to 'bench/test/dotty/tools/benchmarks/Benchmarks.scala')
-rw-r--r--bench/test/dotty/tools/benchmarks/Benchmarks.scala10
1 files changed, 4 insertions, 6 deletions
diff --git a/bench/test/dotty/tools/benchmarks/Benchmarks.scala b/bench/test/dotty/tools/benchmarks/Benchmarks.scala
index 8be592330..dc2d65528 100644
--- a/bench/test/dotty/tools/benchmarks/Benchmarks.scala
+++ b/bench/test/dotty/tools/benchmarks/Benchmarks.scala
@@ -37,7 +37,7 @@ class DecoratorPersistor(p: Persistor) extends SerializationPersistor {
}
object BenchTests extends OnlineRegressionReport {
- val outputDir = "./out/"
+ val outputDir = "../out/"
val compiler = new CompilerTest {
override val defaultOutputDir: String = outputDir
@@ -47,7 +47,7 @@ object BenchTests extends OnlineRegressionReport {
val scala2mode = List("-language:Scala2")
val dottyDir = "../compiler/src/dotty/"
- val testDir = "./bench/tests/"
+ val testDir = "../bench/tests/"
val stdlibFiles = Source.fromFile("../compiler/test/dotc/scala-collections.whitelist", "UTF8").getLines()
.map(_.trim) // allow identation
@@ -76,12 +76,11 @@ object BenchTests extends OnlineRegressionReport {
def setup =
performance of "dotty" in {
measure.method("stdlib") in {
- // maybe scalac curve later
- using(Gen.unit("test")) curve "dotty" in { r => stdLib }
+ using(Gen.unit("test")) curve "stdlib" in { r => stdLib }
}
measure.method("dotty-src") in {
- using(Gen.unit("test")) curve "dotty" in { r => dotty }
+ using(Gen.unit("test")) curve "dotty-src" in { r => dotty }
}
val dir = Directory(testDir)
@@ -89,7 +88,6 @@ object BenchTests extends OnlineRegressionReport {
for (name <- fileNames) {
measure.method(name) in {
- // maybe scalac curve later
using(Gen.unit("test")) curve "dotty" in { r =>
compiler.compileFile(testDir, name, extension = "")
}