mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +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.
20 lines
233 B
Plaintext
20 lines
233 B
Plaintext
var start = IO.clock
|
|
|
|
var map = {}
|
|
|
|
for (i in 1..1000000) {
|
|
map[i] = i
|
|
}
|
|
|
|
var sum = 0
|
|
for (i in 1..1000000) {
|
|
sum = sum + map[i]
|
|
}
|
|
IO.print(sum)
|
|
|
|
for (i in 1..1000000) {
|
|
map.remove(i)
|
|
}
|
|
|
|
IO.print("elapsed: ", IO.clock - start)
|