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