summaryrefslogtreecommitdiff
path: root/benchmark/string_scan_str.rb
blob: 42440bd9484176e5ac1207274940299250d2f60e (plain)
1
2
str = Array.new(1_000, 'abc').join(',')
1_000.times { str.scan('abc') }