Package org.openjdk.jmh.results
Class SampleTimeResult
- All Implemented Interfaces:
Serializable
Result class that samples operation time.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Always add up all the samples into final result.Nested classes/interfaces inherited from class org.openjdk.jmh.results.Result
Result.LazyProps
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SampleBuffer
private final TimeUnit
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSampleTimeResult
(ResultRole role, String label, SampleBuffer buffer, String unit, TimeUnit outputTimeUnit) SampleTimeResult
(ResultRole role, String label, SampleBuffer buffer, TimeUnit outputTimeUnit) -
Method Summary
Modifier and TypeMethodDescriptionPrint extended result informationprotected Collection
<? extends Result> protected Aggregator
<SampleTimeResult> Iteration aggregator combines the iteration results into benchmar result.protected Aggregator
<SampleTimeResult> Thread aggregator combines the thread results into iteration result.private static Statistics
of
(SampleBuffer buffer, TimeUnit outputTimeUnit) Methods inherited from class org.openjdk.jmh.results.Result
distributionExtendedInfo, getLabel, getRole, getSampleCount, getScore, getScoreConfidence, getScoreError, getScoreUnit, getStatistics, getZeroResult, of, simpleExtendedInfo, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
buffer
-
outputTimeUnit
-
-
Constructor Details
-
SampleTimeResult
public SampleTimeResult(ResultRole role, String label, SampleBuffer buffer, TimeUnit outputTimeUnit) -
SampleTimeResult
SampleTimeResult(ResultRole role, String label, SampleBuffer buffer, String unit, TimeUnit outputTimeUnit)
-
-
Method Details
-
of
-
getDerivativeResults
- Overrides:
getDerivativeResults
in classResult<SampleTimeResult>
- Returns:
- derivative results for this result. These do not participate in aggregation, and computed on the spot from the aggregated result.
-
extendedInfo
Description copied from class:Result
Print extended result information- Overrides:
extendedInfo
in classResult<SampleTimeResult>
- Returns:
- String with extended info
-
getThreadAggregator
Description copied from class:Result
Thread aggregator combines the thread results into iteration result.- Specified by:
getThreadAggregator
in classResult<SampleTimeResult>
- Returns:
- thread aggregator
-
getIterationAggregator
Description copied from class:Result
Iteration aggregator combines the iteration results into benchmar result.- Specified by:
getIterationAggregator
in classResult<SampleTimeResult>
- Returns:
- iteration aggregator
-