Class BenchmarkResult
- java.lang.Object
-
- org.hpccsystems.commons.benchmarking.BenchmarkResult
-
public class BenchmarkResult extends Object
A helper class that can be used to record the results of a benchmark test.
-
-
Constructor Summary
Constructors Constructor Description BenchmarkResult(String group, String name)BenchmarkResult(String group, String name, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetric(IMetric metric)voidaddMetrics(List<IMetric> metrics)voidaddParameter(BenchmarkParam param)IMetricgetMetric(String name)voidsetMetricDesiredUnitScale(String name, Units.Scale scale)org.json.JSONArraytoFlatJson()org.json.JSONArraytoFlatJson(String[] selectedResults)org.json.JSONObjecttoJson()org.json.JSONObjecttoJson(String[] selectedResults)
-
-
-
Method Detail
-
addMetric
public void addMetric(IMetric metric)
-
addParameter
public void addParameter(BenchmarkParam param)
-
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)
-
-