mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-29 01:07:17 +00:00
16 lines
268 B
Plaintext
16 lines
268 B
Plaintext
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')
|