Static Propertypackage-benchmark 1.27.2Benchmark
disk
A collection of disk benchmarks.
BenchmarkMetric+Defaults.swift:83static var disk: [BenchmarkMetric] { get }
See also
static var `default`: [BenchmarkMetric]
The default collection of metrics used for a benchmark.
static var microbenchmark: [BenchmarkMetric]
A small collection of metrics used for microbenchmarks only interested in CPU
static var system: [BenchmarkMetric]
A collection of system benchmarks.
static var extended: [BenchmarkMetric]
A collection of extended system benchmarks.
static var memory: [BenchmarkMetric]
A collection of memory benchmarks.
static var all: [BenchmarkMetric]
A collection of all benchmarks supported by this library.
Other members in extension
Types
enum Polarity
A constant that states whether larger or smaller measurements, relative to a set baseline, indicate better performance.
Type members
init?(argument: String
) init(from: any Decoder
) throws static var arc: [BenchmarkMetric]
A collection of ARC metrics
static var maxIndex: Int
static func == (lhs: BenchmarkMetric, rhs: BenchmarkMetric
) -> Bool
Instance members
var countable: Bool
var description: String
var index: Int
var polarity: BenchmarkMetric.Polarity
Indicates whether larger or smaller measurements, relative to a set baseline, indicate better performance.
var rawDescription: String
var useScalingFactor: Bool
True if this metric should be scaled to the scalingFactor if looking at scaled output.
func hash(into: inout Hasher
) func metricFor(index: Int
) -> BenchmarkMetric