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 void
addMetric(IMetric metric)
void
addMetrics(List<IMetric> metrics)
void
addParameter(BenchmarkParam param)
IMetric
getMetric(String name)
void
setMetricDesiredUnitScale(String name, Units.Scale scale)
org.json.JSONArray
toFlatJson()
org.json.JSONArray
toFlatJson(String[] selectedResults)
org.json.JSONObject
toJson()
org.json.JSONObject
toJson(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)
-
-