by gshubert17 · 13y ago · 0 comments
(time (let ((sum 0)) (loop :for x :from 1 :to 1000000000 :do (incf sum x)) sum))
took about 3 seconds from his REPL with SBCL, with about 8.5 billion CPU cycles and 0 bytes consed.
Does anyone know why the same code on my version of SBCL (1.0.55.0-abb03f9) on a Mac took 156 billion cycles and consed 24 billion bytes?
* (log most-positive-fixnum 2) ;on 64-bit
62.0* (log most-positive-fixnum 2) 29.0
Thanks.