error(_:)

    Used to signify that a given benchmark have failed for some reason

    Benchmark.swift:338
    func error(_ description: String)

    Parameters

    description

    An explanation why a given benchmark failed which will be reported to the end user.

    See also

    • var name: String

      The name used for display purposes of the benchmark (also used for matching when comparing to baselines)

    • var currentIteration: Int

      The current benchmark iteration (also includes warmup iterations), can be useful when e.g. unique keys will be needed for different iterations

    • var failureReason: String?

      The reason for a benchmark failure, not set if successful

    Other members in extension

    Types

    Typealiases

    Type members

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    • static var checkAbsoluteThresholds: Bool

      Set to true if this benchmark results should be compared with an absolute threshold when --check-absolute is specified on the command line. An implementation can then choose to configure thresholds differently for such comparisons by e.g. reading them in from external storage.

    Instance members