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 = [
2929
3030@inline ( never)
3131public func run_singleAsciiCharacterCount100( N: Int ) {
32- let string = getString ( " x " )
32+ let string = " x "
3333 for _ in 1 ... 5000 * N {
34- blackHole ( String ( repeating: string, count: 100 ) )
34+ blackHole ( String ( repeating: getString ( string) , count: 100 ) )
3535 }
3636}
3737
3838@inline ( never)
3939public func run_26AsciiCharactersCount2( N: Int ) {
40- let string = getString ( " abcdefghijklmnopqrstuvwxyz " )
40+ let string = " abcdefghijklmnopqrstuvwxyz "
4141 for _ in 1 ... 5000 * N {
42- blackHole ( String ( repeating: string, count: 2 ) )
42+ blackHole ( String ( repeating: getString ( string) , count: 2 ) )
4343 }
4444}
4545
4646@inline ( never)
4747public func run_33CyrillicCharactersCount2( N: Int ) {
48- let string = getString ( " абвгґдеєжзиіїйклмнопрстуфхцчшщьюя " )
48+ let string = " абвгґдеєжзиіїйклмнопрстуфхцчшщьюя "
4949 for _ in 1 ... 5000 * N {
50- blackHole ( String ( repeating: string, count: 2 ) )
50+ blackHole ( String ( repeating: getString ( string) , count: 2 ) )
5151 }
5252}
5353
@@ -71,6 +71,6 @@ public func run_longMixedStringCount100(N: Int) {
7171 🦩
7272 """
7373 for _ in 1 ... 5000 * N {
74- blackHole ( String ( repeating: string, count: 100 ) )
74+ blackHole ( String ( repeating: getString ( string) , count: 100 ) )
7575 }
7676}
You can’t perform that action at this time.
0 commit comments