1 Dec 2003 04:00
Re: Re: ABL and GCJ
Peter Graves <peter <at> armedbear.org>
2003-12-01 03:00:56 GMT
2003-12-01 03:00:56 GMT
On Wed, 26 Nov 2003 at 10:47:19 +0100, Eric Marsden wrote:
> To anwser the performance question: the gcj native build is
> considerably slower than running in a JVM with JIT, and maybe hundreds
> of times slower than CMUCL.
For the more quantitatively inclined:
(defun fib (n)
(declare (type integer n))
(if (< n 2) 1 (+ (fib (- n 1)) (fib (- n 2)))))
(defun bench-fib ()
(time (dotimes (i 50) (fib 25))))
#+armedbear (sys::%nodebug)
Real time reported for one run of BENCH-FIB:
ABL 0.0.3.3+ (GCJ 3.3.2) interpreted 191.058 seconds
ABL 0.0.3.3+ (Sun 1.4.2_02) interpreted 68.12
CLISP 2.31 interpreted 37.964466
ABL 0.0.3.3+ (GCJ 3.3.2) compiled 32.837
CLISP 2.31 compiled 7.116795
GCL 2.7.0 compiled 5.440
ABL 0.0.3.3+ (Sun 1.4.2_02) compiled 4.265
SBCL 0.8.5.44 compiled 1.887
CMUCL 18e compiled 1.35
Note that this example isn't particularly fair.
(Continue reading)
RSS Feed