ruby/benchmark/bm_vm1_neq.rb

9 строки
102 B
Ruby

i = 0
obj1 = Object.new
obj2 = Object.new
while i<30000000 # while loop 1
i+= 1
obj1 != obj2
end