diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/test/dotty/tools/benchmarks/Benchmarks.scala | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bench/test/dotty/tools/benchmarks/Benchmarks.scala b/bench/test/dotty/tools/benchmarks/Benchmarks.scala index fe5517ad9..242d60788 100644 --- a/bench/test/dotty/tools/benchmarks/Benchmarks.scala +++ b/bench/test/dotty/tools/benchmarks/Benchmarks.scala @@ -1,5 +1,6 @@ package dotty.tools.benchmarks +import dotty.tools.StdLibSources import org.scalameter.Key.reports._ import org.scalameter.PerformanceTest.OnlineRegressionReport import org.scalameter.api._ @@ -47,13 +48,7 @@ object BenchTests extends OnlineRegressionReport { val dottyDir = "../compiler/src/dotty/" - val stdlibFiles = Source.fromFile("../compiler/test/dotc/scala-collections.whitelist", "UTF8").getLines() - .map(_.trim) // allow identation - .filter(!_.startsWith("#")) // allow comment lines prefixed by # - .map(_.takeWhile(_ != '#').trim) // allow comments in the end of line - .filter(_.nonEmpty) - .map("." + _) - .toList + val stdlibFiles = StdLibSources.whitelisted def stdLib = compiler.compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode) |