Some light speed testing: Ludus is 1000x slower than Clojure.
This commit is contained in:
parent
52f357765d
commit
41e9b4d9dd
|
@ -253,7 +253,7 @@
|
|||
(n) -> mult (n, fact (sub (n, 1)))
|
||||
}
|
||||
|
||||
fact (6)
|
||||
fib (1)
|
||||
|
||||
")
|
||||
|
||||
|
@ -278,6 +278,16 @@
|
|||
|
||||
")
|
||||
|
||||
(defn fib [n]
|
||||
(case n
|
||||
0 1
|
||||
|
||||
1 1
|
||||
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
|
||||
(fib 35)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user