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 cb45274301 fix jmh tests (align output mode)
cb45274301 is described below

commit cb4527430181b9cc6ace230c0de96faa817b2bec
Author: Paul King <[email protected]>
AuthorDate: Tue Feb 17 08:18:54 2026 +1000

    fix jmh tests (align output mode)
---
 .../{GroovyRunnerRegistryBench.java => RunnerRegistryBench.java}  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/RunnerRegistryBench.java
similarity index 91%
rename from 
subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
rename to 
subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/RunnerRegistryBench.java
index f1a9a42e84..91b15f1cb4 100644
--- 
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/GroovyRunnerRegistryBench.java
+++ 
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/RunnerRegistryBench.java
@@ -38,10 +38,10 @@ import java.util.concurrent.TimeUnit;
 @Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS)
 @Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
 @Fork(2)
-@BenchmarkMode(Mode.Throughput)
+@BenchmarkMode(Mode.AverageTime)
 @OutputTimeUnit(TimeUnit.MILLISECONDS)
 @State(Scope.Thread)
-public class GroovyRunnerRegistryBench {
+public class RunnerRegistryBench {
 
     static List<Object> control = new ArrayList<>();
     static GroovyRunnerRegistry registry = GroovyRunnerRegistry.getInstance();
@@ -49,7 +49,7 @@ public class GroovyRunnerRegistryBench {
         control.add(new Object());
         control.add(new Object());
         control.add(new Object());
-        registry.load(GroovyRunnerRegistryBench.class.getClassLoader());
+        registry.load(RunnerRegistryBench.class.getClassLoader());
     }
 
     @Benchmark
@@ -60,7 +60,7 @@ public class GroovyRunnerRegistryBench {
     }
 
     @Benchmark
-    public void linkedListIterator(Blackhole bh) {
+    public void listIterator(Blackhole bh) {
         for (Object obj : control) {
             bh.consume(obj);
         }

Reply via email to