forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
9 lines
143 B
Ruby
9 lines
143 B
Ruby
start = Time.now
|
|
list = []
|
|
1000000.times {|i| list << i}
|
|
|
|
sum = 0
|
|
list.each {|i| sum += i}
|
|
puts sum
|
|
puts "elapsed: " + (Time.now - start).to_s
|