org.openjdk.jmh.results

Class Result<T extends Result<T>>

    • Method Detail

      • getLabel

        public String getLabel()
        Return the result label.
        Returns:
        result label
      • getRole

        public ResultRole getRole()
        Return the result role.
        Returns:
        result role
      • getStatistics

        public Statistics getStatistics()
        Return the statistics holding the subresults' values.

        This method returns raw samples. The aggregation policy decides how to get the score out of these raw samples. Use getScore(), getScoreError(), and getScoreConfidence() for scalar results.

        Returns:
        statistics
      • getScoreUnit

        public final String getScoreUnit()
        The unit of the score for this result.
        Returns:
        String representation of the unit
      • getScore

        public double getScore()
        The score for this result.
        Returns:
        double representing the score
        See Also:
        getScoreError()
      • getScoreError

        public double getScoreError()
        The score error for this result.
        Returns:
        score error, if available
        See Also:
        getScore()
      • getScoreConfidence

        public double[] getScoreConfidence()
        The score confidence interval for this result.
        Returns:
        score confidence interval, if available; if not, the CI will match getScore()
        See Also:
        getScore()
      • getSampleCount

        public long getSampleCount()
        Get number of samples in the current result.
        Returns:
        number of samples
      • getThreadAggregator

        protected abstract Aggregator<T> getThreadAggregator()
        Thread aggregator combines the thread results into iteration result.
        Returns:
        thread aggregator
      • getIterationAggregator

        protected abstract Aggregator<T> getIterationAggregator()
        Iteration aggregator combines the iteration results into benchmar result.
        Returns:
        iteration aggregator
      • toString

        public String toString()
        Result as represented by a String.
        Overrides:
        toString in class Object
        Returns:
        String with the result and unit
      • extendedInfo

        public String extendedInfo(String label)
        Print extended result information
        Parameters:
        label - result label
        Returns:
        String with extended info
      • simpleExtendedInfo

        protected String simpleExtendedInfo(String label)
      • percentileExtendedInfo

        protected String percentileExtendedInfo(String label)

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14