We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BenchmarkRunner
1 parent 6d3a2e0 commit f70bf47Copy full SHA for f70bf47
Sources/Benchmark/BenchmarkRunner.swift
@@ -18,9 +18,11 @@ public struct BenchmarkRunner {
18
let customDefaults: [BenchmarkSetting]
19
var progress: ProgressReporter
20
var reporter: BenchmarkReporter
21
- var results: [BenchmarkResult] = []
22
23
- init(
+ /// Settings used and measurements taken.
+ public var results: [BenchmarkResult] = []
24
+
25
+ public init(
26
suites: [BenchmarkSuite],
27
settings: [BenchmarkSetting],
28
customDefaults: [BenchmarkSetting] = []
@@ -50,7 +52,8 @@ public struct BenchmarkRunner {
50
52
}
51
53
54
- mutating func run() throws {
55
+ /// Executes each suite in `self.suites` and reports results.
56
+ public mutating func run() throws {
57
for suite in suites {
58
try run(suite: suite)
59
0 commit comments