@@ -18,15 +18,15 @@ public let benchmarks = [
18
18
BenchmarkInfo ( name: " NaiveRRC.append.largeContiguous " ,
19
19
runFunction: runAppendLargeContiguous,
20
20
tags: [ . validation, . api] ,
21
- setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 1_000_000 ) } ) ,
21
+ setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 10_000 ) } ) ,
22
22
BenchmarkInfo ( name: " NaiveRRC.append.smallContiguousRepeatedly " ,
23
23
runFunction: runAppendLargeContiguous,
24
24
tags: [ . validation, . api] ,
25
25
setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 1 ) } ) ,
26
26
BenchmarkInfo ( name: " NaiveRRC.init.largeContiguous " ,
27
27
runFunction: runInitLargeContiguous,
28
28
tags: [ . validation, . api] ,
29
- setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 1_000_000 ) } )
29
+ setUpFunction: { contiguous = [ UInt8] ( repeating: 7 , count: 10_000 ) } )
30
30
]
31
31
32
32
struct NaiveRRC : RangeReplaceableCollection {
@@ -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 ... 1_000_000 {
89
+ for _ in 1 ... 10_000_000 {
90
90
rrc. append ( contentsOf: contiguous)
91
91
}
92
92
blackHole ( rrc. count + Int( rrc [ 0 ] ) )
0 commit comments