/bench/bm_vm2_array.rb

http://github.com/feyeleanor/RubyGoLightly · Ruby · 5 lines · 5 code · 0 blank · 0 comment · 1 complexity · 9c671f1327c8236ad0724ec9df5d06d0 MD5 · raw file

  1. i=0
  2. while i<6000000 # benchmark loop 2
  3. i = i + 1
  4. a = [1,2,3,4,5,6,7,8,9,10]
  5. end