mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
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
|