ruby/benchmark/bm_vm1_length.rb

10 строки
94 B
Ruby

a = 'abc'
b = [1, 2, 3]
i=0
while i<30000000 # while loop 1
i+=1
a.length
b.length
end