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.
13 lines
227 B
Lua
13 lines
227 B
Lua
local start = os.clock()
|
|
local list = {}
|
|
for i = 0, 999999 do
|
|
list[i] = i
|
|
end
|
|
|
|
local sum = 0
|
|
for k, i in pairs(list) do
|
|
sum = sum + i
|
|
end
|
|
io.write(sum .. "\n")
|
|
io.write(string.format("elapsed: %.8f\n", os.clock() - start))
|