@@ -16,8 +16,8 @@ import Foundation
1616public let ReduceInto = [
1717 BenchmarkInfo ( name: " FilterEvenUsingReduce " , runFunction: run_FilterEvenUsingReduce, tags: [ . validation, . api] , legacyFactor: 10 ) ,
1818 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 ) ,
2121 BenchmarkInfo ( name: " SumUsingReduce " , runFunction: run_SumUsingReduce, tags: [ . validation, . api] ) ,
2222 BenchmarkInfo ( name: " SumUsingReduceInto " , runFunction: run_SumUsingReduceInto, tags: [ . validation, . api] ) ,
2323]
@@ -93,7 +93,7 @@ public func run_FrequenciesUsingReduce(_ N: Int) {
9393 let s = " thequickbrownfoxjumpsoverthelazydogusingasmanycharacteraspossible123456789 "
9494
9595 var c = 0
96- for _ in 1 ... N*100 {
96+ for _ in 1 ... N*10 {
9797 let a = s. reduce ( [ : ] ) {
9898 ( acc: [ Character : Int ] , c: Character ) -> [ Character : Int ] in
9999 var d = acc
@@ -110,7 +110,7 @@ public func run_FrequenciesUsingReduceInto(_ N: Int) {
110110 let s = " thequickbrownfoxjumpsoverthelazydogusingasmanycharacteraspossible123456789 "
111111
112112 var c = 0
113- for _ in 1 ... N*100 {
113+ for _ in 1 ... N*10 {
114114 let a = s. reduce ( into: [ : ] ) {
115115 ( acc: inout [ Character : Int ] , c: Character ) in
116116 acc [ c, default: 0 ] += 1
0 commit comments