diff --git a/.drone.yml b/.drone.yml index 6a114f7029ed..de1ae41a7b82 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,7 @@ pipeline: commands: - cp -R . /tmp/1/ && cd /tmp/1/ - ./project/scripts/sbt test + - ./project/scripts/sbt ";dotty-bench/jmh:run 1 1 tests/run/arrays.scala" test_bootstrapped: group: test @@ -21,6 +22,7 @@ pipeline: commands: - cp -R . /tmp/2/ && cd /tmp/2/ - ./project/scripts/sbt dotty-bootstrapped/test + - ./project/scripts/sbt ";dotty-bench-bootstrapped/jmh:run 1 1 tests/run/arrays.scala" test_optimised: group: test diff --git a/bench/src/main/scala/Benchmarks.scala b/bench/src/main/scala/Benchmarks.scala index 608dba8006a1..2d7adc067f95 100644 --- a/bench/src/main/scala/Benchmarks.scala +++ b/bench/src/main/scala/Benchmarks.scala @@ -25,7 +25,7 @@ object Bench { val (intArgs, args1) = args.span(x => try { x.toInt; true } catch { case _: Throwable => false } ) val warmup = if (intArgs.length > 0) intArgs(0).toInt else 30 - val iteration warmup = if (intArgs.length > 1) intArgs(1).toInt else 20 + val iterations = if (intArgs.length > 1) intArgs(1).toInt else 20 val args2 = args1.map { arg => if ((arg.endsWith(".scala") || arg.endsWith(".java")) && arg.head != '/') "../" + arg