@@ -16,8 +16,8 @@ import Foundation
16
16
public let ReduceInto = [
17
17
BenchmarkInfo ( name: " FilterEvenUsingReduce " , runFunction: run_FilterEvenUsingReduce, tags: [ . validation, . api] , legacyFactor: 10 ) ,
18
18
BenchmarkInfo ( name: " FilterEvenUsingReduceInto " , runFunction: run_FilterEvenUsingReduceInto, tags: [ . validation, . api] ) ,
19
- BenchmarkInfo ( name: " FrequenciesUsingReduce " , runFunction: run_FrequenciesUsingReduce, tags: [ . validation, . api] ) ,
20
- BenchmarkInfo ( name: " FrequenciesUsingReduceInto " , runFunction: run_FrequenciesUsingReduceInto, tags: [ . validation, . api] ) ,
19
+ BenchmarkInfo ( name: " FrequenciesUsingReduce " , runFunction: run_FrequenciesUsingReduce, tags: [ . validation, . api] , legacyFactor : 10 ) ,
20
+ BenchmarkInfo ( name: " FrequenciesUsingReduceInto " , runFunction: run_FrequenciesUsingReduceInto, tags: [ . validation, . api] , legacyFactor : 10 ) ,
21
21
BenchmarkInfo ( name: " SumUsingReduce " , runFunction: run_SumUsingReduce, tags: [ . validation, . api] ) ,
22
22
BenchmarkInfo ( name: " SumUsingReduceInto " , runFunction: run_SumUsingReduceInto, tags: [ . validation, . api] ) ,
23
23
]
@@ -93,7 +93,7 @@ public func run_FrequenciesUsingReduce(_ N: Int) {
93
93
let s = " thequickbrownfoxjumpsoverthelazydogusingasmanycharacteraspossible123456789 "
94
94
95
95
var c = 0
96
- for _ in 1 ... N*100 {
96
+ for _ in 1 ... N*10 {
97
97
let a = s. reduce ( [ : ] ) {
98
98
( acc: [ Character : Int ] , c: Character ) -> [ Character : Int ] in
99
99
var d = acc
@@ -110,7 +110,7 @@ public func run_FrequenciesUsingReduceInto(_ N: Int) {
110
110
let s = " thequickbrownfoxjumpsoverthelazydogusingasmanycharacteraspossible123456789 "
111
111
112
112
var c = 0
113
- for _ in 1 ... N*100 {
113
+ for _ in 1 ... N*10 {
114
114
let a = s. reduce ( into: [ : ] ) {
115
115
( acc: inout [ Character : Int ] , c: Character ) in
116
116
acc [ c, default: 0 ] += 1
0 commit comments