Tasmota/lib/libesp32/Berry/examples/bigloop.be

16 lines
268 B
Plaintext
Raw Normal View History

2021-04-12 18:53:35 +01:00
import time
c = time.clock()
do
i = 0
while i < 100000000
i += 1
end
end
print('while iteration 100000000 times', time.clock() - c, 's')
c = time.clock()
for i : 1 .. 100000000
end
print('for iteration 100000000 times', time.clock() - c, 's')