diff --git a/src/main/java/ai/timefold/solver/benchmarks/micro/common/AbstractMain.java b/src/main/java/ai/timefold/solver/benchmarks/micro/common/AbstractMain.java index 3a04c0dd..2bdb9373 100644 --- a/src/main/java/ai/timefold/solver/benchmarks/micro/common/AbstractMain.java +++ b/src/main/java/ai/timefold/solver/benchmarks/micro/common/AbstractMain.java @@ -178,7 +178,7 @@ public ChainedOptionsBuilder getBaseJmhConfig(C configuration) { .forks(configuration.getForkCount()) .warmupIterations(configuration.getWarmupIterations()) .measurementIterations(configuration.getMeasurementIterations()) - .jvmArgs("-XX:+UseParallelGC", "-Xmx2g") // Stable, predictable GC pause times. + .jvmArgs("-XX:+UseSerialGC", "-Xmx2g") // Throughput-focused GC. .result(resultsDirectory.resolve("results.json").toAbsolutePath().toString()) .resultFormat(ResultFormatType.JSON) .shouldDoGC(true);