Skip to content

Commit

Permalink
Set sensible measure and warmup params for ManyLocalVarsBenchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Feb 26, 2024
1 parent 5f79c1a commit 5c8da15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -144,5 +143,6 @@ public void longMethodWithLotOfLocalVars(Blackhole blackhole) {
if (compilerResult.compiledModules().size() != 1) {
throw new AssertionError("Module compilation failed");
}
blackhole.consume(compilerResult);
}
}

0 comments on commit 5c8da15

Please sign in to comment.