Time a function: Difference between revisions
Content added Content deleted
(→Insitux: implementation) |
|||
Line 1,593: | Line 1,593: | ||
current size: N/A 0 0 0 |
current size: N/A 0 0 0 |
||
Note: static region values should be zero and may not be meaningful. |
Note: static region values should be zero and may not be meaningful. |
||
=={{header|Insitux}}== |
|||
Yes, non-transpiled Insitux really is this slow due to its original and ongoing commission: being shoehorned into a Roblox game. |
|||
<syntaxhighlight lang="insitux">(function measure |
|||
(let [start result end] [(time) (... . args) (time)]) |
|||
(str result " took " (- end start) "ms")) |
|||
(function fib n |
|||
(if (< n 2) n |
|||
(+ (fib (dec n)) |
|||
(fib (- n 2))))) |
|||
(measure fib 35) |
|||
;returns "9227465 took 26497ms"</syntaxhighlight> |
|||
=={{header|Ioke}}== |
=={{header|Ioke}}== |