This is an automated email from the ASF dual-hosted git repository. jonnybot pushed a commit to branch INDY-PERF-EXPLORATION in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 06c44bab49e155c031cb70a4f44f3b712a35e7e2 Author: Jonny Carter <[email protected]> AuthorDate: Fri Feb 20 16:22:20 2026 -0600 Remove needless benchmark and reset to JMH defaults (or whatever is provided via CLI args) --- .../bench/dispatch/CacheInvalidationBench.java | 3 - .../groovy/bench/dispatch/CallsiteBench.java | 3 - .../bench/dispatch/InterfaceDispatchBench.java | 3 - .../bench/dispatch/MixedTypeCollectionBench.java | 3 - .../controller/RequestLifecycleBench.java | 3 - .../bench/grailslike/view/TemplateRenderBench.java | 3 - .../apache/groovy/bench/indy/ColdCallBench.java | 3 - .../bench/indy/ThresholdSensitivityBench.java | 3 - .../groovy/bench/indy/WarmupBehaviorBench.java | 268 --------------------- .../groovy/bench/memory/CallsiteGrowthBench.java | 3 - .../bench/memory/LongRunningSessionBench.java | 3 - .../groovy/bench/memory/MemoryAllocationBench.java | 3 - .../bench/orm/CollectionOperationsBench.java | 3 - .../groovy/bench/orm/DynamicFinderBench.java | 3 - .../groovy/bench/orm/EntityTraversalBench.java | 3 - .../groovy/bench/orm/PropertyAccessBench.java | 3 - .../groovy/bench/profiling/MemoryProfileBench.java | 3 - 17 files changed, 316 deletions(-) diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CacheInvalidationBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CacheInvalidationBench.java index 6c37aaf9eb..51e0eb7c15 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CacheInvalidationBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/CacheInvalidationBench.java @@ -44,9 +44,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=CacheInvalidation :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class CacheInvalidationBench { 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..4dc2d0e7f0 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,6 @@ import java.util.Arrays; import java.util.Random; import java.util.concurrent.TimeUnit; -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class CallsiteBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/InterfaceDispatchBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/InterfaceDispatchBench.java index 928541216f..0829397990 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/InterfaceDispatchBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/InterfaceDispatchBench.java @@ -32,9 +32,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=InterfaceDispatch :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class InterfaceDispatchBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/MixedTypeCollectionBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/MixedTypeCollectionBench.java index 3ae85e53ed..415da8a58e 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/MixedTypeCollectionBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/dispatch/MixedTypeCollectionBench.java @@ -35,9 +35,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=MixedTypeCollection :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class MixedTypeCollectionBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/controller/RequestLifecycleBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/controller/RequestLifecycleBench.java index 81fcf95c3b..4907dc157e 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/controller/RequestLifecycleBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/controller/RequestLifecycleBench.java @@ -40,9 +40,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=RequestLifecycle :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class RequestLifecycleBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/view/TemplateRenderBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/view/TemplateRenderBench.java index 43fde8e531..0dd52fd112 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/view/TemplateRenderBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/grailslike/view/TemplateRenderBench.java @@ -40,9 +40,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=TemplateRender :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class TemplateRenderBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ColdCallBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ColdCallBench.java index 71687ca9d8..3133455718 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ColdCallBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ColdCallBench.java @@ -44,9 +44,6 @@ import java.util.concurrent.TimeUnit; * Run with: ./gradlew -Pindy=true -PbenchInclude=ColdCallBench :perf:jmh * Compare: Run once with -Pindy=true and once without to see the difference. */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECONDS) public class ColdCallBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ThresholdSensitivityBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ThresholdSensitivityBench.java index 9cdb92d1f9..71062d2633 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ThresholdSensitivityBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/ThresholdSensitivityBench.java @@ -50,9 +50,6 @@ import java.util.concurrent.TimeUnit; * --jvmArgs="-Dgroovy.indy.optimize.threshold=0 -Dgroovy.indy.fallback.threshold=0" * </pre> */ -@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class ThresholdSensitivityBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/WarmupBehaviorBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/WarmupBehaviorBench.java deleted file mode 100644 index 204815ef56..0000000000 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/indy/WarmupBehaviorBench.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.groovy.bench.indy; - -import org.openjdk.jmh.annotations.*; -import org.openjdk.jmh.infra.Blackhole; - -import java.util.concurrent.TimeUnit; - -/** - * Benchmarks for measuring warmup behavior around the indy optimization threshold. - * <p> - * The default threshold is controlled by groovy.indy.optimize.threshold (default: 10,000). - * This benchmark tests performance at various call counts to understand: - * <ul> - * <li>The cost of calls below the threshold</li> - * <li>The transition behavior around the threshold</li> - * <li>The performance after optimization kicks in</li> - * </ul> - * <p> - * Run with different thresholds: - * <pre> - * ./gradlew -Pindy=true -PbenchInclude=WarmupBehavior :perf:jmh - * ./gradlew -Pindy=true -PbenchInclude=WarmupBehavior :perf:jmh -Dgroovy.indy.optimize.threshold=100 - * </pre> - */ -@Warmup(iterations = 3, time = 1, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) -@BenchmarkMode(Mode.AverageTime) -@OutputTimeUnit(TimeUnit.NANOSECONDS) -public class WarmupBehaviorBench { - - // ======================================================================== - // State classes with different warmup levels - // ======================================================================== - - @State(Scope.Thread) - public static class ColdState { - SimpleService service; - - @Setup(Level.Invocation) - public void setup() { - // Fresh object each time - completely cold callsite - service = new SimpleService(); - } - } - - @State(Scope.Thread) - public static class Warmed10State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 10 calls - for (int i = 0; i < 10; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed100State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 100 calls - for (int i = 0; i < 100; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed1000State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 1,000 calls - for (int i = 0; i < 1000; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed5000State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 5,000 calls (below default threshold) - for (int i = 0; i < 5000; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed10000State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 10,000 calls (at default threshold) - for (int i = 0; i < 10000; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed15000State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 15,000 calls (above default threshold) - for (int i = 0; i < 15000; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class Warmed50000State { - SimpleService service; - - @Setup(Level.Iteration) - public void setup() { - service = new SimpleService(); - // Warm with 50,000 calls (well above threshold) - for (int i = 0; i < 50000; i++) { - service.getName(); - } - } - } - - @State(Scope.Thread) - public static class FullyWarmedState { - SimpleService service; - - @Setup(Level.Trial) - public void setup() { - service = new SimpleService(); - // Warm with 200,000 calls (fully optimized) - for (int i = 0; i < 200000; i++) { - service.getName(); - } - } - } - - // ======================================================================== - // Benchmarks at different warmup levels - // ======================================================================== - - @Benchmark - public Object warmup_00_cold(ColdState state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_01_after10(Warmed10State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_02_after100(Warmed100State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_03_after1000(Warmed1000State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_04_after5000(Warmed5000State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_05_after10000(Warmed10000State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_06_after15000(Warmed15000State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_07_after50000(Warmed50000State state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - @Benchmark - public Object warmup_08_fullyWarmed(FullyWarmedState state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } - - // ======================================================================== - // Java baseline for comparison - // ======================================================================== - - @State(Scope.Thread) - public static class JavaState { - JavaService service; - - @Setup(Level.Trial) - public void setup() { - service = new JavaService(); - } - } - - public static class JavaService { - public String getName() { return "JavaService"; } - } - - @Benchmark - public Object java_baseline(JavaState state, Blackhole bh) { - Object result = state.service.getName(); - bh.consume(result); - return result; - } -} diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/CallsiteGrowthBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/CallsiteGrowthBench.java index ccabece35a..849ac5dc1a 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/CallsiteGrowthBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/CallsiteGrowthBench.java @@ -44,9 +44,6 @@ import java.util.concurrent.TimeUnit; * For GC profiling: * ./gradlew -Pindy=true -PbenchInclude=CallsiteGrowth :perf:jmh -Pjmh.profilers=gc */ -@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(value = 2, jvmArgs = {"-Xms256m", "-Xmx256m"}) @BenchmarkMode(Mode.SingleShotTime) @OutputTimeUnit(TimeUnit.MILLISECONDS) @State(Scope.Benchmark) diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/LongRunningSessionBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/LongRunningSessionBench.java index 24be9d1cd8..1dc9ae85fb 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/LongRunningSessionBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/LongRunningSessionBench.java @@ -48,9 +48,6 @@ import java.util.concurrent.TimeUnit; * For memory profiling: * ./gradlew -Pindy=true -PbenchInclude=LongRunningSession :perf:jmh -Pjmh.profilers=gc */ -@Warmup(iterations = 2, time = 3, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 3, time = 5, timeUnit = TimeUnit.SECONDS) -@Fork(value = 2, jvmArgs = {"-Xms512m", "-Xmx512m"}) @BenchmarkMode(Mode.SingleShotTime) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class LongRunningSessionBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/MemoryAllocationBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/MemoryAllocationBench.java index eafa0eee77..946dc13f0e 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/MemoryAllocationBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/memory/MemoryAllocationBench.java @@ -45,9 +45,6 @@ import java.util.concurrent.TimeUnit; * ./gradlew -Pindy=false -PbenchInclude=MemoryAllocation :perf:jmh * ./gradlew -Pindy=true -PbenchInclude=MemoryAllocation :perf:jmh */ -@Warmup(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(value = 2, jvmArgs = {"-Xms256m", "-Xmx256m"}) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECONDS) public class MemoryAllocationBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/CollectionOperationsBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/CollectionOperationsBench.java index 53c380cdae..bd2c10ae3b 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/CollectionOperationsBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/CollectionOperationsBench.java @@ -36,9 +36,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=CollectionOperations :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class CollectionOperationsBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/DynamicFinderBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/DynamicFinderBench.java index 3ca5e02c5c..27b3417060 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/DynamicFinderBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/DynamicFinderBench.java @@ -32,9 +32,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=DynamicFinder :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class DynamicFinderBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/EntityTraversalBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/EntityTraversalBench.java index 3357013eba..e8ec13f9c6 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/EntityTraversalBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/EntityTraversalBench.java @@ -34,9 +34,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=EntityTraversal :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(2) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class EntityTraversalBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/PropertyAccessBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/PropertyAccessBench.java index a7b76f81dc..03bc7e84e0 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/PropertyAccessBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/orm/PropertyAccessBench.java @@ -42,9 +42,6 @@ import java.util.concurrent.TimeUnit; * <p> * Run with: ./gradlew -Pindy=true -PbenchInclude=PropertyAccess :perf:jmh */ -@Warmup(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(3) @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class PropertyAccessBench { diff --git a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/profiling/MemoryProfileBench.java b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/profiling/MemoryProfileBench.java index 2474293412..fe7dd3f154 100644 --- a/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/profiling/MemoryProfileBench.java +++ b/subprojects/performance/src/jmh/groovy/org/apache/groovy/bench/profiling/MemoryProfileBench.java @@ -39,9 +39,6 @@ import java.util.concurrent.TimeUnit; * java -cp build/libs/performance-*-jmh.jar \ * org.apache.groovy.bench.profiling.ProfiledBenchmarkRunner "MemoryProfile" */ -@Warmup(iterations = 2, time = 2, timeUnit = TimeUnit.SECONDS) -@Measurement(iterations = 3, time = 2, timeUnit = TimeUnit.SECONDS) -@Fork(1) @BenchmarkMode(Mode.SingleShotTime) @OutputTimeUnit(TimeUnit.MILLISECONDS) public class MemoryProfileBench {
