Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
25
Task/Time-a-function/EasyLang/time-a-function.easy
Normal file
25
Task/Time-a-function/EasyLang/time-a-function.easy
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
func fua lim .
|
||||
# this is interpreted
|
||||
i = 1
|
||||
while i <= lim
|
||||
sum += i
|
||||
i += 1
|
||||
.
|
||||
return sum
|
||||
.
|
||||
start = systime
|
||||
print fua 1e8
|
||||
print systime - start
|
||||
#
|
||||
fastfunc fub lim .
|
||||
# this is compiled to wasm
|
||||
i = 1
|
||||
while i <= lim
|
||||
sum += i
|
||||
i += 1
|
||||
.
|
||||
return sum
|
||||
.
|
||||
start = systime
|
||||
print fub 1e8
|
||||
print systime - start
|
||||
Loading…
Add table
Add a link
Reference in a new issue