@@ -19,7 +19,7 @@ public let benchmarks = [
19
19
runFunction: runAppendLargeContiguous,
20
20
tags: [ . validation, . api] ,
21
21
setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 1_000 ) } ) ,
22
- BenchmarkInfo ( name: " NaiveRRC.append.smallContiguousRepeatedly " ,
22
+ BenchmarkInfo ( name: " NaiveRRC.append.smallContiguousRepeated " ,
23
23
runFunction: runAppendLargeContiguous,
24
24
tags: [ . validation, . api] ,
25
25
setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 1 ) } ) ,
@@ -86,7 +86,7 @@ public func runAppendLargeContiguous(N: Int) {
86
86
public func runAppendSmallContiguousRepeatedly( N: Int ) {
87
87
for _ in 1 ... N {
88
88
var rrc = NaiveRRC ( )
89
- for _ in 1 ... 10_000_000 {
89
+ for _ in 1 ... 30_000_000 {
90
90
rrc. append ( contentsOf: contiguous)
91
91
}
92
92
blackHole ( rrc)
@@ -96,7 +96,6 @@ public func runAppendSmallContiguousRepeatedly(N: Int) {
96
96
@inline ( never)
97
97
public func runInitLargeContiguous( N: Int ) {
98
98
for _ in 1 ... N {
99
- var rrc = NaiveRRC ( contiguous)
100
- blackHole ( rrc)
99
+ blackHole ( NaiveRRC ( contiguous) )
101
100
}
102
101
}
0 commit comments