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