Skip to content

Commit d5d97ad

Browse files
committed
Further benchmark scaling
1 parent 0ddc90b commit d5d97ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

benchmark/single-source/NaiveRangeReplaceableCollectionConformance.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public let benchmarks = [
1919
runFunction: runAppendLargeContiguous,
2020
tags: [.validation, .api],
2121
setUpFunction: { contiguous = [UInt8](repeating: 7, count: 1_000) }),
22-
BenchmarkInfo(name: "NaiveRRC.append.smallContiguousRepeatedly",
22+
BenchmarkInfo(name: "NaiveRRC.append.smallContiguousRepeated",
2323
runFunction: runAppendLargeContiguous,
2424
tags: [.validation, .api],
2525
setUpFunction: { contiguous = [UInt8](repeating: 7, count: 1) }),
@@ -86,7 +86,7 @@ public func runAppendLargeContiguous(N: Int) {
8686
public func runAppendSmallContiguousRepeatedly(N: Int) {
8787
for _ in 1...N {
8888
var rrc = NaiveRRC()
89-
for _ in 1...10_000_000 {
89+
for _ in 1...30_000_000 {
9090
rrc.append(contentsOf: contiguous)
9191
}
9292
blackHole(rrc)
@@ -96,7 +96,6 @@ public func runAppendSmallContiguousRepeatedly(N: Int) {
9696
@inline(never)
9797
public func runInitLargeContiguous(N: Int) {
9898
for _ in 1...N {
99-
var rrc = NaiveRRC(contiguous)
100-
blackHole(rrc)
99+
blackHole(NaiveRRC(contiguous))
101100
}
102101
}

0 commit comments

Comments
 (0)