mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 12:46:53 +08:00
df93b2c1ec
- popping operands from the stack was too early -fixed - some temproary string objects weren't pushed to the vm's temp root -fixed - and some minor bug fixed
12 lines
185 B
Plaintext
12 lines
185 B
Plaintext
from lang import clock
|
|
|
|
start = clock()
|
|
|
|
list = []
|
|
for i in 0..10000000 do list_append(list, i) end
|
|
sum = 0
|
|
for i in list do sum += i end
|
|
print(sum)
|
|
|
|
print("elapsed:", clock() - start)
|