Constructor and Description |
---|
DeserializationSpeedMetric(int iterations)
Deprecated.
since 1.3, use
DeserializationSpeedMetric(int, boolean) |
DeserializationSpeedMetric(int iterations,
boolean validate)
Deprecated.
Measure deserialization speed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
biggerIsBetter()
Deprecated.
Whether a big result is better for this metric.
|
double |
run(Product product,
java.lang.Object object)
Deprecated.
since 1.3
|
double |
run(Product product,
Target target)
Deprecated.
Run the test and produce a metric.
|
java.lang.String |
toString()
Deprecated.
|
java.lang.String |
unit()
Deprecated.
The unit the metric is recorded in (for reporting purposes).
|
public DeserializationSpeedMetric(int iterations)
DeserializationSpeedMetric(int, boolean)
iterations
- public DeserializationSpeedMetric(int iterations, boolean validate)
iterations
- validate
- flag to compare result of last iteration with original datapublic double run(Product product, Target target) throws java.lang.Exception
Metric
public double run(Product product, java.lang.Object object) throws java.lang.Exception
Metric
public java.lang.String unit()
Metric
public boolean biggerIsBetter()
Metric
biggerIsBetter
in interface Metric
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004–2023 XStream. All rights reserved.