jmh-core/src/test/java/org/openjdk/jmh/results/TestAggregateResult.java

Print this page

        

@@ -28,11 +28,10 @@
 import org.junit.Test;
 import org.openjdk.jmh.annotations.Mode;
 import org.openjdk.jmh.infra.BenchmarkParams;
 import org.openjdk.jmh.infra.IterationParams;
 import org.openjdk.jmh.runner.IterationType;
-import org.openjdk.jmh.runner.Runner;
 import org.openjdk.jmh.runner.options.TimeValue;
 import org.openjdk.jmh.util.Utils;
 
 import java.util.Collections;
 import java.util.concurrent.TimeUnit;

@@ -52,11 +51,12 @@
         result = new IterationResult(
                 new BenchmarkParams("blah", "blah", false, 1, new int[]{1}, 1, 1,
                         new IterationParams(IterationType.WARMUP, 1, TimeValue.seconds(1), 1),
                         new IterationParams(IterationType.MEASUREMENT, 1, TimeValue.seconds(1), 1),
                         Mode.Throughput, null, TimeUnit.SECONDS, 1,
-                        Utils.getCurrentJvm(), Collections.<String>emptyList()),
+                        Utils.getCurrentJvm(), Collections.<String>emptyList(),
+                        TimeValue.days(1)),
                 new IterationParams(IterationType.MEASUREMENT, 1, TimeValue.days(1), 1)
         );
         for (double d : values) {
             result.addResult(new ThroughputResult(ResultRole.PRIMARY, "test1", (long) d, 10 * 1000 * 1000, TimeUnit.MILLISECONDS));
         }