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:
parent
388202bd18
commit
20f1359347
2 changed files with 15 additions and 0 deletions
8
benchmark/pilang.pil
Normal file
8
benchmark/pilang.pil
Normal 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
7
benchmark/python.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# number^2 until number > 50
|
||||
number = 1
|
||||
|
||||
while number < 50:
|
||||
number += number
|
||||
|
||||
print(number)
|
Loading…
Add table
Reference in a new issue