Skip to content

Commit 4f363f7

Browse files
committed
Try to thwart the optimizer
1 parent d5d97ad commit 4f363f7

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
@@ -86,10 +86,10 @@ public func runAppendLargeContiguous(N: Int) {
8686
public func runAppendSmallContiguousRepeatedly(N: Int) {
8787
for _ in 1...N {
8888
var rrc = NaiveRRC()
89-
for _ in 1...30_000_000 {
89+
for _ in 1...10_000_000 {
9090
rrc.append(contentsOf: contiguous)
91+
blackHole(rrc)
9192
}
92-
blackHole(rrc)
9393
}
9494
}
9595

0 commit comments

Comments
 (0)