LW performance problem
Hello,
My existing program runs 20-60 times slower in LispWorks than in the other CL implementations that I've been using - using different tests, I got a performance difference to other CLs by order of magnitude. Benchmarking with somebody else's benchmark, I see the same thing (see below).
This is the Personal edition, on an i7 Mac, nothing special.
I use "compile and load" to compile the source files in question. I have tried to (declaim (optimize (speed 3) (space 0) (debug 0))), which made a difference, but not much.
What am I doing wrong? This is not at all in line with what I've read about LispWorks.
I'm new to LispWorks, so chances are I'm missing an essential step or setting. Apologies. I checked the FAQ and KB.
Thanks for your help.
- David
cl-bench benchmark, "gabriel":
SBCL 1.0.30:
CL-USER> (time (run-triangle))
Evaluation took:
0.095 seconds of real time
0.094654 seconds of total run time (0.094393 user, 0.000261 system)
100.00% CPU
251,782,063 processor cycles
98,304 bytes consed
NIL
=====
LispWorks 6.0.1(Intel):
CL-USER 10 > (extended-time (cl-bench.gabriel::run-triangle))
Timing the evaluation of (PROGN (CL-BENCH.GABRIEL::RUN-TRIANGLE))
User time = 28.435
System time = 0.148
Elapsed time = 28.319
Allocation = 3460891332 bytes
129 Page faults
Calls to %EVAL 175946564
total / user / system
total gc activity = 1.860603 / 1.840037 / 0.020566
main promote ( 9 calls) = 0.002537 / 0.002454 / 0.000083
mark and sweep ( 2342 calls) = 1.858066 / 1.837583 / 0.020483
internal promote ( 0 calls) = 0.000000 / 0.000000 / 0.000000
promote ( 0 calls) = 0.000000 / 0.000000 / 0.000000
fixup ( 9 calls) = 0.001596 / 0.001570 / 0.000026
compact ( 0 calls) = 0.000000 / 0.000000 / 0.000000
NIL
CL-USER 11 > (room (cl-bench.gabriel::run-triangle))
Total Size 30144K, Allocated 28478K, Free 1277K
--
Dr. David Reitter
Carnegie Mellon University
http://www.david-reitter.com / http://aquamacs.org