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