Skip to content

Commit b024a56

Browse files
committed
Fix thinko, thank you Nate!
1 parent 4f363f7 commit b024a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/single-source/NaiveRangeReplaceableCollectionConformance.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public let benchmarks = [
2020
tags: [.validation, .api],
2121
setUpFunction: { contiguous = [UInt8](repeating: 7, count: 1_000) }),
2222
BenchmarkInfo(name: "NaiveRRC.append.smallContiguousRepeated",
23-
runFunction: runAppendLargeContiguous,
23+
runFunction: runAppendSmallContiguousRepeatedly,
2424
tags: [.validation, .api],
2525
setUpFunction: { contiguous = [UInt8](repeating: 7, count: 1) }),
2626
BenchmarkInfo(name: "NaiveRRC.init.largeContiguous",
@@ -88,8 +88,8 @@ public func runAppendSmallContiguousRepeatedly(N: Int) {
8888
var rrc = NaiveRRC()
8989
for _ in 1...10_000_000 {
9090
rrc.append(contentsOf: contiguous)
91-
blackHole(rrc)
9291
}
92+
blackHole(rrc)
9393
}
9494
}
9595

0 commit comments

Comments
 (0)