Package org.openjdk.jmh.infra
Class IterationParamsL2
- java.lang.Object
-
- org.openjdk.jmh.infra.IterationParamsL0
-
- org.openjdk.jmh.infra.IterationParamsL1
-
- org.openjdk.jmh.infra.IterationParamsL2
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IterationParamsL3
abstract class IterationParamsL2 extends IterationParamsL1 implements java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description protected int
batchSize
batch size (method invocations inside the single op)protected int
count
amount of iterationsprivate static long
serialVersionUID
protected TimeValue
timeValue
iteration runtimeprotected IterationType
type
iteration type
-
Constructor Summary
Constructors Constructor Description IterationParamsL2(IterationType type, int count, TimeValue time, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getBatchSize()
Batch size for iteration.int
getCount()
Number of iterations.TimeValue
getTime()
Time for iteration.IterationType
getType()
Iteration type: separates warmup iterations vs.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
type
protected final IterationType type
iteration type
-
count
protected final int count
amount of iterations
-
timeValue
protected final TimeValue timeValue
iteration runtime
-
batchSize
protected final int batchSize
batch size (method invocations inside the single op)
-
-
Constructor Detail
-
IterationParamsL2
public IterationParamsL2(IterationType type, int count, TimeValue time, int batchSize)
-
-
Method Detail
-
getType
public IterationType getType()
Iteration type: separates warmup iterations vs. measurement iterations.- Returns:
- iteration type.
-
getCount
public int getCount()
Number of iterations.- Returns:
- number of iterations of given type.
-
getTime
public TimeValue getTime()
Time for iteration.- Returns:
- time
-
getBatchSize
public int getBatchSize()
Batch size for iteration.- Returns:
- batch size
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-