dimanche 16 septembre 2012

What's wrong with the code?

Decided to take naive implementation of factorial in Racket and Lisp:
and

And even after
raco exe test.rkt
timing is as follows:
raco exe test.rkt
time ./test

real 0m0.697s
user 0m0.581s
sys 0m0.092s
time sbcl --script test.lisp

real 0m0.139s
user 0m0.085s
sys 0m0.049s
Maybe I/O in Racket is rather slow?

Aucun commentaire:

Enregistrer un commentaire