This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 1153bc4b40 fix jmh tests (better timing for CI)
1153bc4b40 is described below
commit 1153bc4b405ede84e5cd3543a544e405076328b2
Author: Paul King <[email protected]>
AuthorDate: Tue Feb 17 00:04:50 2026 +1000
fix jmh tests (better timing for CI)
---
.../src/jmh/groovy/org/apache/groovy/perf/ClosureBench.groovy | 4 ++--
.../src/jmh/groovy/org/apache/groovy/perf/GStringBench.groovy | 4 ++--
.../src/jmh/groovy/org/apache/groovy/perf/GroovyIdiomBench.groovy | 4 ++--
.../src/jmh/groovy/org/apache/groovy/perf/LoopsBench.groovy | 4 ++--
.../jmh/groovy/org/apache/groovy/perf/MethodInvocationBench.groovy | 4 ++--
.../src/jmh/groovy/org/apache/groovy/perf/OperatorBench.groovy | 4 ++--
.../src/jmh/groovy/org/apache/groovy/perf/PropertyAccessBench.groovy | 4 ++--
7 files changed, 14 insertions(+), 14 deletions(-)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/ClosureBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/ClosureBench.groovy
index 654dde3c57..a4ba7ad9df 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/ClosureBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/ClosureBench.groovy
@@ -29,9 +29,9 @@ import java.util.concurrent.TimeUnit
* currying, composition, spread operator, trampoline recursion, and
* collection operations (each/collect/findAll/inject).
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GStringBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GStringBench.groovy
index ff601ee44f..f998f71eca 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GStringBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GStringBench.groovy
@@ -29,9 +29,9 @@ import java.util.concurrent.TimeUnit
* interpolation, comparison against plain String concatenation, use as
* Map keys, and repeated toString() evaluation.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyIdiomBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyIdiomBench.groovy
index d934b95568..e93ed86132 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyIdiomBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyIdiomBench.groovy
@@ -28,9 +28,9 @@ import java.util.concurrent.TimeUnit
* (?.), spread-dot (*.), elvis (?:), with/tap scoping, range creation
* and iteration, and 'as' type coercion.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/LoopsBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/LoopsBench.groovy
index 1a26324574..32f1aab5d6 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/LoopsBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/LoopsBench.groovy
@@ -31,9 +31,9 @@ import java.util.concurrent.TimeUnit
* Collection operation benchmarks (each/collect/findAll/inject on lists)
* are in {@link ClosureBench}.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/MethodInvocationBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/MethodInvocationBench.groovy
index 155094665f..f619f3aa20 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/MethodInvocationBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/MethodInvocationBench.groovy
@@ -33,9 +33,9 @@ import java.util.concurrent.TimeUnit
* GString operations are in {@link GStringBench}.
* Method references as closures are in {@link ClosureBench}.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/OperatorBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/OperatorBench.groovy
index 349f081ef4..1fdc0bcba8 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/OperatorBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/OperatorBench.groovy
@@ -29,9 +29,9 @@ import java.util.concurrent.TimeUnit
* (plus, minus, multiply, div, getAt, leftShift, equals, compareTo)
* dispatched through invokedynamic.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/PropertyAccessBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/PropertyAccessBench.groovy
index 8ac15e5c0a..c58f606541 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/PropertyAccessBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/PropertyAccessBench.groovy
@@ -29,9 +29,9 @@ import java.util.concurrent.TimeUnit
* access, map bracket and dot-property notation, and chained property
* resolution.
*/
-@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
+@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
-@Fork(3)
+@Fork(2)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Thread)