@@ -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) {
8686public 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)
9797public 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