fix parser benchmarks (#629)

This commit is contained in:
Josef 2020-03-27 16:45:31 +01:00 committed by GitHub
parent bf758ebc6d
commit 6e2d552716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ lazy val syntax = crossProject(JVMPlatform, JSPlatform)
.jvmSettings(
inConfig(Benchmark)(Defaults.testSettings),
unmanagedSourceDirectories in Benchmark +=
baseDirectory.value.getParentFile / "src/bench/scala",
baseDirectory.value.getParentFile / "shared/src/bench/scala",
libraryDependencies += "com.storm-enroute" %% "scalameter" % "0.19" % "bench",
testFrameworks := List(
new TestFramework("org.scalatest.tools.Framework"),

View File

@ -71,7 +71,7 @@ object ParserBenchmark extends Bench.OfflineRegressionReport {
)
val filename = "common/scala/syntax/specialization/.jvm/target/bench-input.txt"
val filename = "target/parser-bench-input.txt"
if (!new File(filename).exists()) {
val file = new PrintWriter(new File(filename))