diff --git a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/MainJmh.java b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/MainJmh.java index f678db8..3327260 100644 --- a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/MainJmh.java +++ b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/MainJmh.java @@ -14,6 +14,7 @@ import org.openjdk.jmh.annotations.Param; import org.openjdk.jmh.annotations.Scope; import org.openjdk.jmh.annotations.Setup; import org.openjdk.jmh.annotations.State; +import org.openjdk.jmh.annotations.Timeout; import org.openjdk.jmh.annotations.Warmup; import java.util.concurrent.TimeUnit; @@ -22,9 +23,10 @@ import java.util.concurrent.TimeUnit; /* * Benchmark parameters */ -@Fork(value = 1, jvmArgsAppend = "-Xmx8g") +@Fork(value = 1, jvmArgsAppend = {"-Xms8g", "-Xmx8g"}) @Warmup(iterations = 1) @Measurement(iterations = 6) +@Timeout(time = 15, timeUnit = TimeUnit.SECONDS) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MILLISECONDS) /*