Re: Very poor Lisp performance



Jon Harrop wrote:
Several people have kindly ported my ray tracer from this page:

  http://www.ffconsultancy.com/free/ray_tracer/languages.html

to Lisp. Some of them are reporting competitive performance. However, when I
try to run their programs with either CMUCL or SBCL they are two orders of
magnitude slower. Given the number of people claiming similarly good
performance, I'd like to know what the possible cause of the relative
slowdown on my computer is?

My system is an unladen 900MHz Athlon T-bird with 768Mb RAM running Debian
testing with SBCL 0.8.16 and CMUCL "19b-release-20050628-3 + minimal debian
patches". Other people have both slower and faster CPUs and more and less
RAM but all are consistently much faster than mine.

I believe SBCL always compiles to native code and I am asking CMUCL to
compile to native code with:

(compile-file "ray4.lisp")
(load "ray4.x86f")
(time (main 6.0 "image.pgm" 256.0 4.0))

Any ideas?

Post the ported code and we can take a look at it. Without the code, we can only make shots in the dark.


  -- MJF
.



Relevant Pages

  • Re: CLISP vs. CMUCL vs. SBCL
    ... > CMUCL: Good, fast compiler. ... What are the best points of CLISP other than portability? ... Between CMUCL and SBCL, how would one choose between these? ... > support CMUCL also seem to support SBCL, ...
    (comp.lang.lisp)
  • CLISP vs. CMUCL vs. SBCL
    ... Linux: CLISP, CMUCL, and SBCL. ... What are the best points of CLISP other than portability? ...
    (comp.lang.lisp)
  • Re: CLISP vs. CMUCL vs. SBCL
    ... What are the best points of CLISP other than portability? ... > first reaction is that I'd like something speedy, ... It is also a /lot/ smaller than CMUCL or SBCL. ...
    (comp.lang.lisp)
  • Re: ArmedBear Common Lisp relicensed!
    ... A lot of CMUCL and SBCL code was reused in implementing ABCL, ... Many Java libraries are implemented in Java and speed is still acceptable. ... > degree that a native code compiling Lisp does, ...
    (comp.lang.lisp)
  • Re: CLISP vs. CMUCL vs. SBCL
    ... If you were after "The Best Lisp Implementation", well, that would ... If you haven't checked out the SERVE-EVENT facility on CMUCL and SBCL, ... and CLISP works nicely. ...
    (comp.lang.lisp)

Loading