Class DeserializationSpeedMetric

  • All Implemented Interfaces:
    Metric

    public class DeserializationSpeedMetric
    extends java.lang.Object
    implements Metric
    Deprecated.
    As of 1.4.9 use JMH instead
    Determines how long it takes to deserialize an object (in ms).
    See Also:
    Harness, Metric
    • Field Detail

      • iterations

        private final int iterations
        Deprecated.
      • validate

        private final boolean validate
        Deprecated.
    • Constructor Detail

      • DeserializationSpeedMetric

        public DeserializationSpeedMetric​(int iterations)
        Deprecated.
        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: Metric
        Run the test and produce a metric.
        Specified by:
        run in interface Metric
        Parameters:
        product - Product to use in test.
        target - A target to use against the product.
        Returns:
        The resulting metric (e.g. 12.22).
        Throws:
        java.lang.Exception - If this metric could not be obtained. This will be reported back to the Reporter.
      • run

        public double run​(Product product,
                          java.lang.Object object)
                   throws java.lang.Exception
        Deprecated.
        since 1.3
        Description copied from interface: Metric
        Run the test and produce a metric.
        Specified by:
        run in interface Metric
        Parameters:
        product - Product to use in test.
        object - A object to use against the product.
        Returns:
        The resulting metric (e.g. 12.22).
        Throws:
        java.lang.Exception - If this metric could not be obtained. This will be reported back to the Reporter.
      • unit

        public java.lang.String unit()
        Deprecated.
        Description copied from interface: Metric
        The unit the metric is recorded in (for reporting purposes). e.g. "ms" or "bytes".
        Specified by:
        unit in interface Metric
      • biggerIsBetter

        public boolean biggerIsBetter()
        Deprecated.
        Description copied from interface: Metric
        Whether a big result is better for this metric.
        Specified by:
        biggerIsBetter in interface Metric
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object