|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.tools.benchmark.metrics.DeserializationSpeedMetric
public class DeserializationSpeedMetric
Determines how long it takes to deserialize an object (in ms).
Harness,
Metric| Constructor Summary | |
|---|---|
DeserializationSpeedMetric(int iterations)
Deprecated. since 1.3, use DeserializationSpeedMetric(int, boolean) |
|
DeserializationSpeedMetric(int iterations,
boolean validate)
Measure deserialization speed. |
|
| Method Summary | |
|---|---|
boolean |
biggerIsBetter()
Whether a big result is better for this metric. |
double |
run(Product product,
Object object)
Deprecated. since 1.3 |
double |
run(Product product,
Target target)
Run the test and produce a metric. |
String |
toString()
|
String |
unit()
The unit the metric is recorded in (for reporting purposes). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 data| Method Detail |
|---|
public double run(Product product,
Target target)
throws Exception
Metric
run in interface Metricproduct - Product to use in test.target - A target to use against the product.
Exception - If this metric could not be obtained. This will
be reported back to the Reporter.
public double run(Product product,
Object object)
throws Exception
Metric
run in interface Metricproduct - Product to use in test.object - A object to use against the product.
Exception - If this metric could not be obtained. This will
be reported back to the Reporter.public String unit()
Metric
unit in interface Metricpublic boolean biggerIsBetter()
Metric
biggerIsBetter in interface Metricpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||