ruby/benchmark/bm_vm2_case.rb

15 строки
145 B
Ruby

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