File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package dotty.tools.benchmarks
2
2
3
3
import org .openjdk .jmh .results .RunResult
4
4
import org .openjdk .jmh .runner .Runner
5
- import org .openjdk .jmh .runner .options .OptionsBuilder
6
5
import org .openjdk .jmh .annotations ._
7
6
import org .openjdk .jmh .results .format ._
7
+ import org .openjdk .jmh .runner .options ._
8
8
import java .util .concurrent .TimeUnit
9
9
10
10
import scala .io .Source
@@ -13,7 +13,7 @@ object Bench {
13
13
def main (args : Array [String ]): Unit = {
14
14
val (intArgs, args1) = args.span(x => try { x.toInt; true } catch { case _ : Throwable => false } )
15
15
16
- val warmup = if (intArgs.length > 0 ) intArgs(0 ).toInt else 30
16
+ val warmup = if (intArgs.length > 0 ) intArgs(0 ).toInt else 20
17
17
val iterations = if (intArgs.length > 1 ) intArgs(1 ).toInt else 20
18
18
val forks = if (intArgs.length > 2 ) intArgs(2 ).toInt else 1
19
19
@@ -26,7 +26,9 @@ object Bench {
26
26
.mode(Mode .AverageTime )
27
27
.timeUnit(TimeUnit .NANOSECONDS )
28
28
.warmupIterations(warmup)
29
+ .warmupTime(TimeValue .milliseconds(750 ))
29
30
.measurementIterations(iterations)
31
+ .measurementTime(TimeValue .milliseconds(500 ))
30
32
.forks(forks)
31
33
.include(benchmarks)
32
34
.resultFormat(ResultFormatType .CSV )
You can’t perform that action at this time.
0 commit comments