Package org.teavm.perf
Class BenchmarkInfo
java.lang.Object
org.teavm.perf.BenchmarkInfo
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intMarker forgetArguments()that means that a blackhole is passed to the corresponding parameter. -
Method Summary
Modifier and TypeMethodDescriptionFor each parameter of the benchmark method, index of a state to pass orBLACKHOLE_ARGUMENT.intgetForks()State that holds an instance of a benchmark class,nullfor static benchmark methods.org.teavm.model.MethodReferencegetModes()getName()Name of the benchmark in JMH format, i.e. fully qualified class name followed by a dot and method name.intbooleanisStatic()
-
Field Details
-
BLACKHOLE_ARGUMENT
public static final int BLACKHOLE_ARGUMENTMarker forgetArguments()that means that a blackhole is passed to the corresponding parameter.- See Also:
-
-
Method Details
-
getName
Name of the benchmark in JMH format, i.e. fully qualified class name followed by a dot and method name. -
getShortName
-
getClassName
-
getMethod
public org.teavm.model.MethodReference getMethod() -
isStatic
public boolean isStatic() -
getStates
-
getInstanceState
State that holds an instance of a benchmark class,nullfor static benchmark methods. -
getParams
-
getArguments
For each parameter of the benchmark method, index of a state to pass orBLACKHOLE_ARGUMENT. -
getModes
-
getTimeUnit
-
getWarmup
-
getMeasurement
-
getForks
public int getForks() -
getOperationsPerInvocation
public int getOperationsPerInvocation()
-