ruby--ruby/benchmark/bm_vm1_const.rb

9 lines
85 B
Ruby

Const = 1
i = 0
while i<30000000 # while loop 1
i+= 1
j = Const
k = Const
end