summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_regexp.rb
blob: 55f9e957a36ec166c891006b471a79718a9f8764 (plain)
1
2
3
4
5
6
i = 0
str = 'xxxhogexxx'
while i<6_000_000 # benchmark loop 2
  /hoge/ =~ str
  i += 1
end