3 ms·
https://github.com/drujensen/fib https://github.com/drujensen/fib sbcl on my mac m1 gets 21s Gerbil gets 16s Minor Gerbil version as an example. (export main
by matrix12 3y ago
https://github.com/drujensen/fib https://github.com/drujensen/fib
sbcl on my mac m1 gets
21s
Gerbil gets
16s
Minor Gerbil version as an example.
(export main)
(def (fib n)
(if (fx<= n 1) n
(+ (fib (fx- n 1))
(fib (fx- n 2)))))
(def (main)
(display (fib 47))
(newline))
Compiled with gxc -O -exe -o gerbil.fib
Similar results on x86_64