@@ -16,11 +16,13 @@ import TestsUtils
16
16
public let Dictionary = [
17
17
BenchmarkInfo ( name: " Dictionary " , runFunction: run_Dictionary,
18
18
tags: [ . validation, . api, . Dictionary] ,
19
- setUpFunction: { blackHole ( half) } ) ,
19
+ setUpFunction: { blackHole ( half) } ,
20
+ legacyFactor: 5 ) ,
20
21
BenchmarkInfo ( name: " DictionaryOfObjects " ,
21
22
runFunction: run_DictionaryOfObjects,
22
23
tags: [ . validation, . api, . Dictionary] ,
23
- setUpFunction: { blackHole ( halfObjects) } ) ,
24
+ setUpFunction: { blackHole ( halfObjects) } ,
25
+ legacyFactor: 5 ) ,
24
26
]
25
27
26
28
let text = [
@@ -132,9 +134,8 @@ let half: Dictionary<String, Bool> = {
132
134
} ( )
133
135
134
136
@inline ( never)
135
- public func run_Dictionary( scale : Int ) {
137
+ public func run_Dictionary( N : Int ) {
136
138
var dict : Dictionary < String , Bool > = [ : ]
137
- let N = 5 * scale
138
139
139
140
// Check performance of filling the dictionary:
140
141
for _ in 1 ... N {
@@ -186,9 +187,8 @@ let halfObjects: Dictionary<Box<String>, Box<Bool>> = {
186
187
} ( )
187
188
188
189
@inline ( never)
189
- public func run_DictionaryOfObjects( scale : Int ) {
190
+ public func run_DictionaryOfObjects( N : Int ) {
190
191
var dict : Dictionary < Box < String > , Box < Bool > > = [ : ]
191
- let N = 5 * scale
192
192
193
193
// Check performance of filling the dictionary:
194
194
for _ in 1 ... N {
0 commit comments