Class DeserializationSpeedMetric
java.lang.Object
com.thoughtworks.xstream.tools.benchmark.metrics.DeserializationSpeedMetric
- All Implemented Interfaces:
Metric
Deprecated.
As of 1.4.9 use JMH instead
Determines how long it takes to deserialize an object (in ms).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intDeprecated.private final booleanDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeserializationSpeedMetric(int iterations) Deprecated.since 1.3, useDeserializationSpeedMetric(int, boolean)DeserializationSpeedMetric(int iterations, boolean validate) Deprecated.Measure deserialization speed. -
Method Summary
-
Field Details
-
iterations
private final int iterationsDeprecated. -
validate
private final boolean validateDeprecated.
-
-
Constructor Details
-
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 Details
-
run
Deprecated.Description copied from interface:MetricRun the test and produce a metric. -
run
Deprecated.since 1.3Description copied from interface:MetricRun the test and produce a metric. -
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
Deprecated.
-