Enum WarmupMode

java.lang.Object
java.lang.Enum<WarmupMode>
org.openjdk.jmh.runner.options.WarmupMode
All Implemented Interfaces:
Serializable, Comparable<WarmupMode>, java.lang.constant.Constable

public enum WarmupMode extends Enum<WarmupMode>
Warmup Mode enum
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Do the bulk warmup before any benchmark starts.
    Do the bulk warmup before any benchmark starts, and then also do individual warmups for every benchmark.
    Do the individual warmup for every benchmark
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
     
    private final boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    WarmupMode(boolean bulk, boolean indi)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    static WarmupMode
    Returns the enum constant of this type with the specified name.
    static WarmupMode[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
  • Field Details

    • bulk

      private final boolean bulk
    • indi

      private final boolean indi
  • Constructor Details

    • WarmupMode

      private WarmupMode(boolean bulk, boolean indi)
  • Method Details

    • values

      public static WarmupMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • isBulk

      public boolean isBulk()
    • isIndi

      public boolean isIndi()