Skip to content

Commit e99a45b

Browse files
committed
Reduce loop coefficient to 200
1 parent b79e1d5 commit e99a45b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmark/single-source/StringRepeating.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ public let benchmarks = [
3030
@inline(never)
3131
public func run_singleAsciiCharacterCount100(N: Int) {
3232
let string = "x"
33-
for _ in 1...5000*N {
33+
for _ in 1...200*N {
3434
blackHole(String(repeating: getString(string), count: 100))
3535
}
3636
}
3737

3838
@inline(never)
3939
public func run_26AsciiCharactersCount2(N: Int) {
4040
let string = "abcdefghijklmnopqrstuvwxyz"
41-
for _ in 1...5000*N {
41+
for _ in 1...200*N {
4242
blackHole(String(repeating: getString(string), count: 2))
4343
}
4444
}
4545

4646
@inline(never)
4747
public func run_33CyrillicCharactersCount2(N: Int) {
4848
let string = "абвгґдеєжзиіїйклмнопрстуфхцчшщьюя"
49-
for _ in 1...5000*N {
49+
for _ in 1...200*N {
5050
blackHole(String(repeating: getString(string), count: 2))
5151
}
5252
}
@@ -70,7 +70,7 @@ public func run_longMixedStringCount100(N: Int) {
7070
著作権が切れた小説などが利用されることもある。
7171
🦩
7272
"""
73-
for _ in 1...5000*N {
73+
for _ in 1...200*N {
7474
blackHole(String(repeating: getString(string), count: 100))
7575
}
7676
}

0 commit comments

Comments
 (0)