Package org.openjdk.jmh.results
Class ScalarResult
- java.lang.Object
-
- org.openjdk.jmh.results.Result<ScalarResult>
-
- org.openjdk.jmh.results.ScalarResult
-
- All Implemented Interfaces:
Serializable
public class ScalarResult extends Result<ScalarResult>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScalarResult(String label, double n, String unit, AggregationPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Aggregator<ScalarResult>
getIterationAggregator()
Iteration aggregator combines the iteration results into benchmar result.protected Aggregator<ScalarResult>
getThreadAggregator()
Thread aggregator combines the thread results into iteration result.protected ScalarResult
getZeroResult()
Returns "0" result.-
Methods inherited from class org.openjdk.jmh.results.Result
distributionExtendedInfo, extendedInfo, getDerivativeResults, getLabel, getRole, getSampleCount, getScore, getScoreConfidence, getScoreError, getScoreUnit, getStatistics, of, simpleExtendedInfo, toString
-
-
-
-
Constructor Detail
-
ScalarResult
public ScalarResult(String label, double n, String unit, AggregationPolicy policy)
-
-
Method Detail
-
getThreadAggregator
protected Aggregator<ScalarResult> getThreadAggregator()
Description copied from class:Result
Thread aggregator combines the thread results into iteration result.- Specified by:
getThreadAggregator
in classResult<ScalarResult>
- Returns:
- thread aggregator
-
getIterationAggregator
protected Aggregator<ScalarResult> getIterationAggregator()
Description copied from class:Result
Iteration aggregator combines the iteration results into benchmar result.- Specified by:
getIterationAggregator
in classResult<ScalarResult>
- Returns:
- iteration aggregator
-
getZeroResult
protected ScalarResult getZeroResult()
Description copied from class:Result
Returns "0" result. This is used for un-biased aggregation of secondary results. For instance, profilers might omit results in some iterations, thus we should pretend there were 0 results.- Overrides:
getZeroResult
in classResult<ScalarResult>
- Returns:
- result that represents "empty" result, null if no sensible "empty" result can be created
-
-