File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,25 +29,25 @@ public let benchmarks = [
29
29
30
30
@inline ( never)
31
31
public func run_singleAsciiCharacterCount100( N: Int ) {
32
- let string = getString ( " x " )
32
+ let string = " x "
33
33
for _ in 1 ... 5000 * N {
34
- blackHole ( String ( repeating: string, count: 100 ) )
34
+ blackHole ( String ( repeating: getString ( string) , count: 100 ) )
35
35
}
36
36
}
37
37
38
38
@inline ( never)
39
39
public func run_26AsciiCharactersCount2( N: Int ) {
40
- let string = getString ( " abcdefghijklmnopqrstuvwxyz " )
40
+ let string = " abcdefghijklmnopqrstuvwxyz "
41
41
for _ in 1 ... 5000 * N {
42
- blackHole ( String ( repeating: string, count: 2 ) )
42
+ blackHole ( String ( repeating: getString ( string) , count: 2 ) )
43
43
}
44
44
}
45
45
46
46
@inline ( never)
47
47
public func run_33CyrillicCharactersCount2( N: Int ) {
48
- let string = getString ( " абвгґдеєжзиіїйклмнопрстуфхцчшщьюя " )
48
+ let string = " абвгґдеєжзиіїйклмнопрстуфхцчшщьюя "
49
49
for _ in 1 ... 5000 * N {
50
- blackHole ( String ( repeating: string, count: 2 ) )
50
+ blackHole ( String ( repeating: getString ( string) , count: 2 ) )
51
51
}
52
52
}
53
53
@@ -71,6 +71,6 @@ public func run_longMixedStringCount100(N: Int) {
71
71
🦩
72
72
"""
73
73
for _ in 1 ... 5000 * N {
74
- blackHole ( String ( repeating: string, count: 100 ) )
74
+ blackHole ( String ( repeating: getString ( string) , count: 100 ) )
75
75
}
76
76
}
You can’t perform that action at this time.
0 commit comments