[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] comp.lang.lisp floating arithmetic bench
From: |
Mike Thomas |
Subject: |
[Gcl-devel] comp.lang.lisp floating arithmetic bench |
Date: |
Wed, 10 Jul 2002 17:31:57 +1000 |
Hi all.
Today on c.l.l someone listed some floating point benchmarks in the thread
"Floating Point Performance of Lisp compared to C":
http://cox.iwr.uni-heidelberg.de/~neuss/misc/mflop.c
http://cox.iwr.uni-heidelberg.de/~neuss/misc/mflop.lisp
I thought I would share the raw data from my NT 2000 333 MHz PII for
interpreted anc compiled GCL, Mingw32 GCC and MS Visual C++ listed below.
Cheers
Mike Thomas.
=====================
INTERPRETED GCL
;$ ../../unixport/saved_gcl.exe
;GCL (GNU Common Lisp) Version(2.5.0) Wed Jul 10 15:12:15 2002
;Licensed under GNU Library General Public License
;Contains Enhancements by W. Schelter
;
;>(load "mflop.lisp")
;
;Loading mflop.lisp
;DDOT-long: 00.80 MFLOPS
;DDOT-short: 00.80 MFLOPS
;DAXPY-long: 00.20 MFLOPS
;DAXPY-short: 00.20 MFLOPS
;Finished loading mflop.lisp
;T
=====================
COMPILED GCL
;$ ../../unixport/saved_gcl.exe
;GCL (GNU Common Lisp) Version(2.5.0) Wed Jul 10 15:12:15 2002
;Licensed under GNU Library General Public License
;Contains Enhancements by W. Schelter
;
;>(compile-file "mflop.lisp")
;
;Compiling mflop.lisp.
;Warning: The OPTIMIZE quality DEBUG is unknown.
;Warning: The OPTIMIZE quality DEBUG is unknown.
;End of Pass 1.
;End of Pass 2.
;OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
;Finished compiling mflop.lisp.
;#p"mflop.o"
;
;>(load "mflop.o")
;
;Loading mflop.o
;DDOT-long: 13.81 MFLOPS
;DDOT-short: 54.78 MFLOPS
;DAXPY-long: 0.53 MFLOPS
;DAXPY-short: 0.60 MFLOPS
;start address -T 101d1824 Finished loading mflop.o
;1728
;
;>
=====================
MINGW GCC V 2.95
$ gcc -O3 mflop.c -o mflop.exe
$ ./mflop.exe
ddot-long 18.04 MFLOPS
ddot-short 155.48 MFLOPS
daxpy-long 12.08 MFLOPS
daxpy-short 124.94 MFLOPS
=====================
VISUAL C++ 6
$ cl /O2 mflop.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
mflop.c
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:mflop.exe
mflop.obj
$ ./mflop.exe
ddot-long 18.37 MFLOPS
ddot-short 173.10 MFLOPS
daxpy-long 12.68 MFLOPS
daxpy-short 147.45 MFLOPS
[Gcl-devel] comp.lang.lisp floating arithmetic bench,
Mike Thomas <=