Class DeserializationSpeedMetric
- java.lang.Object
-
- com.thoughtworks.xstream.tools.benchmark.metrics.DeserializationSpeedMetric
-
-
Field Summary
Fields Modifier and Type Field Description private intiterationsDeprecated.private booleanvalidateDeprecated.
-
Constructor Summary
Constructors Constructor Description DeserializationSpeedMetric(int iterations)Deprecated.since 1.3, useDeserializationSpeedMetric(int, boolean)DeserializationSpeedMetric(int iterations, boolean validate)Deprecated.Measure deserialization speed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanbiggerIsBetter()Deprecated.Whether a big result is better for this metric.doublerun(Product product, Target target)Deprecated.Run the test and produce a metric.doublerun(Product product, java.lang.Object object)Deprecated.since 1.3java.lang.StringtoString()Deprecated.java.lang.Stringunit()Deprecated.The unit the metric is recorded in (for reporting purposes).
-
-
-
Constructor Detail
-
DeserializationSpeedMetric
public DeserializationSpeedMetric(int iterations)
Deprecated.since 1.3, useDeserializationSpeedMetric(int, boolean)Measure deserialization speed.- Parameters:
iterations-
-
DeserializationSpeedMetric
public DeserializationSpeedMetric(int iterations, boolean validate)Deprecated.Measure deserialization speed.- Parameters:
iterations-validate- flag to compare result of last iteration with original data- Since:
- 1.3
-
-
Method Detail
-
run
public double run(Product product, Target target) throws java.lang.Exception
Deprecated.Description copied from interface:MetricRun the test and produce a metric.
-
run
public double run(Product product, java.lang.Object object) throws java.lang.Exception
Deprecated.since 1.3Description copied from interface:MetricRun the test and produce a metric.
-
unit
public java.lang.String unit()
Deprecated.Description copied from interface:MetricThe unit the metric is recorded in (for reporting purposes). e.g. "ms" or "bytes".
-
biggerIsBetter
public boolean biggerIsBetter()
Deprecated.Description copied from interface:MetricWhether a big result is better for this metric.- Specified by:
biggerIsBetterin interfaceMetric
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-