stopMeasurement

    If the benchmark contains a postample that should not be part of the measurement stopMeasurement can be called explicitly to define when measurement should stop. Otherwise the whole benchmark will be measured.

    Benchmark.swift:321
    func stopMeasurement()

    See also

    • var scaledIterations: Range<Int>

      Convenience range to iterate over for benchmarks

    • func startMeasurement()

      If the benchmark contains a preamble setup that should not be part of the measurement startMeasurement can be called explicitly to define when measurement should begin. Otherwise the whole benchmark will be measured.

    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