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
|
||||
6
Task/Time-a-function/Quackery/time-a-function.quackery
Normal file
6
Task/Time-a-function/Quackery/time-a-function.quackery
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[ time ]'[ do
|
||||
time swap - 1000 / ] is time: ( --> n )
|
||||
|
||||
time: [ 0 314159 times 1+ echo ]
|
||||
cr cr
|
||||
say "That took about " echo say " milliseconds."
|
||||
Loading…
Add table
Add a link
Reference in a new issue