Class BenchmarkResult


  • public class BenchmarkResult
    extends Object
    A helper class that can be used to record the results of a benchmark test.
    • Constructor Detail

      • BenchmarkResult

        public BenchmarkResult​(String group,
                               String name)
      • BenchmarkResult

        public BenchmarkResult​(String group,
                               String name,
                               String description)
    • Method Detail

      • addMetric

        public void addMetric​(IMetric metric)
      • addMetrics

        public void addMetrics​(List<IMetric> metrics)
      • setMetricDesiredUnitScale

        public void setMetricDesiredUnitScale​(String name,
                                              Units.Scale scale)
      • toJson

        public org.json.JSONObject toJson()
      • toJson

        public org.json.JSONObject toJson​(String[] selectedResults)
      • toFlatJson

        public org.json.JSONArray toFlatJson()
      • toFlatJson

        public org.json.JSONArray toFlatJson​(String[] selectedResults)