From 157481b24e00c87ba3d44a28dd07c70c28001f0e Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Wed, 16 Nov 2016 17:04:08 +0100 Subject: restore curve name for backward data compatibility --- bench/test/dotty/tools/benchmarks/Benchmarks.scala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bench/test/dotty/tools/benchmarks/Benchmarks.scala') 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 = "") } -- cgit v1.2.3