Class BenchmarkInfo

java.lang.Object
org.teavm.perf.BenchmarkInfo

public final class BenchmarkInfo extends Object
Describes a single method marked with JMH's @Benchmark annotation and settings that are specified via annotations. Settings that are not specified by annotations are null or negative.
  • Field Details

    • BLACKHOLE_ARGUMENT

      public static final int BLACKHOLE_ARGUMENT
      Marker for getArguments() that means that a blackhole is passed to the corresponding parameter.
      See Also:
  • Method Details

    • getName

      public String getName()
      Name of the benchmark in JMH format, i.e. fully qualified class name followed by a dot and method name.
    • getShortName

      public String getShortName()
    • getClassName

      public String getClassName()
    • getMethod

      public org.teavm.model.MethodReference getMethod()
    • isStatic

      public boolean isStatic()
    • getStates

      public List<StateInfo> getStates()
    • getInstanceState

      public StateInfo getInstanceState()
      State that holds an instance of a benchmark class, null for static benchmark methods.
    • getParams

      public List<ParamInfo> getParams()
    • getArguments

      public List<Integer> getArguments()
      For each parameter of the benchmark method, index of a state to pass or BLACKHOLE_ARGUMENT.
    • getModes

      public Set<BenchmarkMode> getModes()
    • getTimeUnit

      public TimeUnit getTimeUnit()
    • getWarmup

      public IterationSettings getWarmup()
    • getMeasurement

      public IterationSettings getMeasurement()
    • getForks

      public int getForks()
    • getOperationsPerInvocation

      public int getOperationsPerInvocation()