Skip to content

Commit 2121367

Browse files
committed
[benchmark] CountAlgoString Legacy Factor
1 parent 1ed4cd4 commit 2121367

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

benchmark/single-source/CountAlgo.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public let CountAlgo = [
1919
BenchmarkInfo(
2020
name: "CountAlgoString",
2121
runFunction: run_CountAlgoString,
22-
tags: [.validation, .api]),
22+
tags: [.validation, .api],
23+
legacyFactor: 5),
2324
]
2425

2526
@inline(never)
@@ -32,7 +33,7 @@ public func run_CountAlgoArray(_ N: Int) {
3233
@inline(never)
3334
public func run_CountAlgoString(_ N: Int) {
3435
let vowels = Set("aeiou")
35-
for _ in 1...5*N {
36+
for _ in 1...N {
3637
CheckResults(text.count(where: vowels.contains) == 2014)
3738
}
3839
}
@@ -123,4 +124,4 @@ let text = """
123124
rhoncus interdum mollis. Pellentesque dictum euismod felis, eget lacinia
124125
elit blandit vel. Praesent elit velit, pharetra a sodales in, cursus vitae
125126
tortor. In vitae scelerisque tellus.
126-
"""
127+
"""

0 commit comments

Comments
 (0)