mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Try to thwart the optimizer
This commit is contained in:
@@ -86,11 +86,11 @@ public func runAppendLargeContiguous(N: Int) {
|
||||
public func runAppendSmallContiguousRepeatedly(N: Int) {
|
||||
for _ in 1...N {
|
||||
var rrc = NaiveRRC()
|
||||
for _ in 1...30_000_000 {
|
||||
for _ in 1...10_000_000 {
|
||||
rrc.append(contentsOf: contiguous)
|
||||
}
|
||||
blackHole(rrc)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@inline(never)
|
||||
|
||||
Reference in New Issue
Block a user