summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_case.rb
blob: 1ec34ad692545f7596e816888460b0067b3637a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
i=0
while i<6000000 # while loop 2
  case :foo
  when :bar
    raise
  when :baz
    raise
  when :boo
    raise
  when :foo
    i+=1
  end
end