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 25fe2f5147 fix jmh tests (better timing for CI)
25fe2f5147 is described below

commit 25fe2f514782acfc639c277b9da3378cf0130447
Author: Paul King <[email protected]>
AuthorDate: Tue Feb 17 00:08:48 2026 +1000

    fix jmh tests (better timing for CI)
---
 .../src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java    | 4 ++--
 .../src/jmh/groovy/org/apache/groovy/bench/AryBench.java          | 4 ++--
 .../src/jmh/groovy/org/apache/groovy/bench/FiboBench.java         | 4 ++--
 .../groovy/org/apache/groovy/bench/GeneratedHashCodeBench.java    | 4 ++--
 .../groovy/org/apache/groovy/bench/dispatch/CallsiteBench.java    | 4 ++--
 .../apache/groovy/{plugin => perf}/GroovyRunnerRegistryBench.java | 8 +++++---
 6 files changed, 15 insertions(+), 13 deletions(-)

diff --git 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java
 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java
index a49b69b1df..4e04dd60fd 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AckermannBench.java
@@ -31,9 +31,9 @@ import org.openjdk.jmh.annotations.Warmup;
 
 import java.util.concurrent.TimeUnit;
 
-@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/bench/AryBench.java 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AryBench.java
index 73b088e8d3..1b1beb8073 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AryBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/AryBench.java
@@ -31,9 +31,9 @@ import org.openjdk.jmh.annotations.Warmup;
 
 import java.util.concurrent.TimeUnit;
 
-@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/bench/FiboBench.java 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/FiboBench.java
index e834779a84..9d9ab6120b 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/FiboBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/FiboBench.java
@@ -31,9 +31,9 @@ import org.openjdk.jmh.annotations.Warmup;
 
 import java.util.concurrent.TimeUnit;
 
-@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/bench/GeneratedHashCodeBench.java
 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/GeneratedHashCodeBench.java
index 0ba490972a..793efdd267 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/GeneratedHashCodeBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/GeneratedHashCodeBench.java
@@ -28,9 +28,9 @@ import org.openjdk.jmh.annotations.Warmup;
 
 import java.util.concurrent.TimeUnit;
 
-@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.Throughput)
 @OutputTimeUnit(TimeUnit.MILLISECONDS)
 public class GeneratedHashCodeBench {
diff --git 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CallsiteBench.java
 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CallsiteBench.java
index ae68c9293b..20c8e6278d 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CallsiteBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CallsiteBench.java
@@ -25,9 +25,9 @@ import java.util.Arrays;
 import java.util.Random;
 import java.util.concurrent.TimeUnit;
 
-@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.Throughput)
 @OutputTimeUnit(TimeUnit.MILLISECONDS)
 public class CallsiteBench {
diff --git 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/plugin/GroovyRunnerRegistryBench.java
 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
similarity index 91%
rename from 
subprojects/performance/src/jmh/groovy/org/apache/groovy/plugin/GroovyRunnerRegistryBench.java
rename to 
subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
index 606fa913af..f1a9a42e84 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/plugin/GroovyRunnerRegistryBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
@@ -16,8 +16,10 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package org.apache.groovy.plugin;
+package org.apache.groovy.perf;
 
+import org.apache.groovy.plugin.GroovyRunner;
+import org.apache.groovy.plugin.GroovyRunnerRegistry;
 import org.openjdk.jmh.annotations.Benchmark;
 import org.openjdk.jmh.annotations.BenchmarkMode;
 import org.openjdk.jmh.annotations.Fork;
@@ -33,9 +35,9 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.concurrent.TimeUnit;
 
-@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.Throughput)
 @OutputTimeUnit(TimeUnit.MILLISECONDS)
 @State(Scope.Thread)

Reply via email to