Package org.openjdk.jmh.results
Class ThroughputResult
- java.lang.Object
-
- org.openjdk.jmh.results.Result<ThroughputResult>
-
- org.openjdk.jmh.results.ThroughputResult
-
- All Implemented Interfaces:
java.io.Serializable
public class ThroughputResult extends Result<ThroughputResult>
Result class that counts the number of operations performed during a specified unit of time.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ThroughputResult.ThroughputAggregator
-
Nested classes/interfaces inherited from class org.openjdk.jmh.results.Result
Result.LazyProps
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ThroughputResult(ResultRole role, java.lang.String label, double operations, long durationNs, java.util.concurrent.TimeUnit outputTimeUnit)
ThroughputResult(ResultRole role, java.lang.String label, Statistics s, java.lang.String unit, AggregationPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Aggregator<ThroughputResult>
getIterationAggregator()
Iteration aggregator combines the iteration results into benchmar result.protected Aggregator<ThroughputResult>
getThreadAggregator()
Thread aggregator combines the thread results into iteration result.-
Methods inherited from class org.openjdk.jmh.results.Result
distributionExtendedInfo, extendedInfo, getDerivativeResults, getLabel, getRole, getSampleCount, getScore, getScoreConfidence, getScoreError, getScoreUnit, getStatistics, getZeroResult, of, simpleExtendedInfo, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThroughputResult
public ThroughputResult(ResultRole role, java.lang.String label, double operations, long durationNs, java.util.concurrent.TimeUnit outputTimeUnit)
-
ThroughputResult
ThroughputResult(ResultRole role, java.lang.String label, Statistics s, java.lang.String unit, AggregationPolicy policy)
-
-
Method Detail
-
getThreadAggregator
protected Aggregator<ThroughputResult> getThreadAggregator()
Description copied from class:Result
Thread aggregator combines the thread results into iteration result.- Specified by:
getThreadAggregator
in classResult<ThroughputResult>
- Returns:
- thread aggregator
-
getIterationAggregator
protected Aggregator<ThroughputResult> getIterationAggregator()
Description copied from class:Result
Iteration aggregator combines the iteration results into benchmar result.- Specified by:
getIterationAggregator
in classResult<ThroughputResult>
- Returns:
- iteration aggregator
-
-