Skip to content

Commit 160c9d5

Browse files
committed
tweak performance test which has stack overflow in some environments
1 parent 3e02aeb commit 160c9d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
*/
3737
@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
3838
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
39-
@Fork(2)
39+
@Fork(value = 2, jvmArgsAppend = "-Xss8m")
4040
@BenchmarkMode(Mode.AverageTime)
4141
@OutputTimeUnit(TimeUnit.MILLISECONDS)
4242
@State(Scope.Thread)
4343
public class AckermannBench {
4444

45-
@Param({"5", "6", "7", "8"})
45+
@Param({"5", "6", "7"})
4646
private int n;
4747

4848
/**

0 commit comments

Comments
 (0)