mirror of
https://github.com/apple/swift-certificates
synced 2026-11-30 05:08:44 +00:00
use scaledIterations
This commit is contained in:
1 parent
e6905bfcef
commit
9810290914
1 file changed
+12
-4
@@ -22,19 +22,27 @@ let benchmarks = {
|
||||
)
|
||||
|
||||
Benchmark("Verifier") { benchmark in
|
||||
await verifier()
|
||||
for _ in benchmark.scaledIterations {
|
||||
await verifier()
|
||||
}
|
||||
}
|
||||
|
||||
let runParseWebPKIRoots = parseWebPKIRoots()
|
||||
Benchmark("Parse WebPKI Roots") { benchmark in
|
||||
runParseWebPKIRoots()
|
||||
for _ in benchmark.scaledIterations {
|
||||
runParseWebPKIRoots()
|
||||
}
|
||||
}
|
||||
|
||||
Benchmark("TinyArray non-allocating functions") { benchmark in
|
||||
tinyArrayNonAllocationFunctions()
|
||||
for _ in benchmark.scaledIterations {
|
||||
tinyArrayNonAllocationFunctions()
|
||||
}
|
||||
}
|
||||
|
||||
Benchmark("TinyArray.append(_:)") { benchmark in
|
||||
tinyArrayAppend()
|
||||
for _ in benchmark.scaledIterations {
|
||||
tinyArrayAppend()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user