Package org.openjdk.jmh.runner.options
Enum WarmupMode
- java.lang.Object
-
- java.lang.Enum<WarmupMode>
-
- org.openjdk.jmh.runner.options.WarmupMode
-
- All Implemented Interfaces:
Serializable
,Comparable<WarmupMode>
public enum WarmupMode extends Enum<WarmupMode>
Warmup Mode enum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBulk()
boolean
isIndi()
static WarmupMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static WarmupMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDI
public static final WarmupMode INDI
Do the individual warmup for every benchmark
-
BULK
public static final WarmupMode BULK
Do the bulk warmup before any benchmark starts.
-
BULK_INDI
public static final WarmupMode BULK_INDI
Do the bulk warmup before any benchmark starts, and then also do individual warmups for every benchmark.
-
-
Method Detail
-
values
public static WarmupMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WarmupMode c : WarmupMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WarmupMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isBulk
public boolean isBulk()
-
isIndi
public boolean isIndi()
-
-