
LISP:
faster than C?
Didier Verna
Introduction
Experiments
The case of C
Raw LISP
Typed LISP
Typing mechanisms
Optimization
Results
Type inference
Conclusion
Results
And here comes a little surprise. . .
C and LISP comparative performance
Integer Image Float Image
Algorithm
C LISP C LISP
Assignment 0.29 0.29 0.29 0.29
Addition 0.48 0.48 0.47 0.46
Multiplication 0.48 0.48 0.46 0.45
Division 0.58 1.80 1.93 1.72
Identical performances from C and LISP
C better at integer division
(no āconstant integer optimizationā in LISP compilers)
Surprise: LISP 10% faster at ļ¬oating-point division
18/24