File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public let CountAlgo = [
19
19
BenchmarkInfo (
20
20
name: " CountAlgoString " ,
21
21
runFunction: run_CountAlgoString,
22
- tags: [ . validation, . api] ) ,
22
+ tags: [ . validation, . api] ,
23
+ legacyFactor: 5 ) ,
23
24
]
24
25
25
26
@inline ( never)
@@ -32,7 +33,7 @@ public func run_CountAlgoArray(_ N: Int) {
32
33
@inline ( never)
33
34
public func run_CountAlgoString( _ N: Int ) {
34
35
let vowels = Set ( " aeiou " )
35
- for _ in 1 ... 5 * N {
36
+ for _ in 1 ... N {
36
37
CheckResults ( text. count ( where: vowels. contains) == 2014 )
37
38
}
38
39
}
@@ -123,4 +124,4 @@ let text = """
123
124
rhoncus interdum mollis. Pellentesque dictum euismod felis, eget lacinia
124
125
elit blandit vel. Praesent elit velit, pharetra a sodales in, cursus vitae
125
126
tortor. In vitae scelerisque tellus.
126
- """
127
+ """
You can’t perform that action at this time.
0 commit comments