1
0
Fork 0
mirror of https://gitlab.com/niansa/pilang2.git synced 2025-03-06 20:49:22 +01:00

Added speed comparisation

This commit is contained in:
niansa 2020-04-13 16:01:21 +02:00
parent 388202bd18
commit 20f1359347
2 changed files with 15 additions and 0 deletions

8
benchmark/pilang.pil Normal file
View file

@ -0,0 +1,8 @@
# number^2 until number > 50
set number,1
marker set,mainloop
inc number,$~number
cmp smaller,$~number,50,"marker goto,mainloop"
print $~number

7
benchmark/python.py Normal file
View file

@ -0,0 +1,7 @@
# number^2 until number > 50
number = 1
while number < 50:
number += number
print(number)