public
Description: ruby lang (www.ruby-lang.org) svn mirror
Homepage: http://svn.ruby-lang.org/repos/ruby/
Clone URL: git://github.com/juretta/ruby.git
ruby / benchmark / bm_vm1_length.rb
100644 10 lines (8 sloc) 0.094 kb
1
2
3
4
5
6
7
8
9
10
a = 'abc'
b = [1, 2, 3]
i=0
while i<30000000 # while loop 1
  i+=1
  a.length
  b.length
end