Try to thwart the optimizer

This commit is contained in:
David Smith
2023-05-10 10:55:37 -07:00
parent d5d97ad26e
commit 4f363f72f1

View File

@@ -86,12 +86,12 @@ public func runAppendLargeContiguous(N: Int) {
public func runAppendSmallContiguousRepeatedly(N: Int) { public func runAppendSmallContiguousRepeatedly(N: Int) {
for _ in 1...N { for _ in 1...N {
var rrc = NaiveRRC() var rrc = NaiveRRC()
for _ in 1...30_000_000 { for _ in 1...10_000_000 {
rrc.append(contentsOf: contiguous) rrc.append(contentsOf: contiguous)
}
blackHole(rrc) blackHole(rrc)
} }
} }
}
@inline(never) @inline(never)
public func runInitLargeContiguous(N: Int) { public func runInitLargeContiguous(N: Int) {