benchmark: JMH config

This commit is contained in:
Daniel Langbein 2025-01-07 16:07:41 +00:00
parent 5e2425bbca
commit ddbf8c1174
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -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)
/*