Function
benchmark(add:benchmarkLog:)
Logs a one-off metric value.
func benchmark<E>(add metric: @autoclosure () -> E, benchmarkLog log: Benchmark = .main) where E : BenchmarkMetric
Parameters
metricThe one-off metric
logThe log to add the metric to.