From 5c8da151d570bbca7dfd5ff4d6dffa1d264ded8e Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Mon, 26 Feb 2024 13:34:40 +0100 Subject: [PATCH] Set sensible measure and warmup params for ManyLocalVarsBenchmark --- .../compiler/benchmarks/module/ManyLocalVarsBenchmark.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/runtime-benchmarks/src/main/java/org/enso/compiler/benchmarks/module/ManyLocalVarsBenchmark.java b/engine/runtime-benchmarks/src/main/java/org/enso/compiler/benchmarks/module/ManyLocalVarsBenchmark.java index 414ef47605e1..dc70a3f0046f 100644 --- a/engine/runtime-benchmarks/src/main/java/org/enso/compiler/benchmarks/module/ManyLocalVarsBenchmark.java +++ b/engine/runtime-benchmarks/src/main/java/org/enso/compiler/benchmarks/module/ManyLocalVarsBenchmark.java @@ -19,7 +19,6 @@ import org.graalvm.polyglot.Source; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; -import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; @@ -53,7 +52,7 @@ public class ManyLocalVarsBenchmark { * Total count of local variables in the `main` method. Every variable is defined on * a new line. */ - private static final int IDENTIFIERS_CNT = 10; + private static final int IDENTIFIERS_CNT = 40; private Context context; private Compiler compiler; private Module module; @@ -144,5 +143,6 @@ public void longMethodWithLotOfLocalVars(Blackhole blackhole) { if (compilerResult.compiledModules().size() != 1) { throw new AssertionError("Module compilation failed"); } + blackhole.consume(compilerResult); } }