1 : Are the Lisp SBCL programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Lisp SBCL program used compared to the fastest Java program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Lisp SBCL programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Lisp SBCL program used compared to the fastest Java program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Lisp SBCL used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits± ±
 fannkuch-redux± 1/2
 spectral-norm± ±
 binary-trees±1/3±
 n-body ±
 fasta ±
 reverse-complement1/2±
 regex-dna±±
 k-nucleotide1/11±
 mandelbrot 
 fasta-redux ±
 Lisp SBCL used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±

± read the measurements and then read the program source code.

 3 : Are the Lisp SBCL programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Lisp SBCL program are shown for comparison against measurements of the fastest Java program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Lisp SBCL2.772.778,6041073  1% 0% 1% 100%
Java4.144.1421,844938  1% 0% 1% 100%
 fannkuch-redux 
Lisp SBCL59.0459.0522,576674  1% 0% 0% 100%
Java67.4867.5021,4481282  1% 1% 0% 100%
 spectral-norm 
Lisp SBCL15.8815.8920,208906  1% 0% 1% 100%
Java16.3116.3120,440950  1% 1% 0% 100%
 binary-trees 
Lisp SBCL17.5417.57162,904649  1% 1% 1% 100%
Java16.4116.44521,176584  0% 1% 1% 100%
 n-body 
Lisp SBCL38.2438.258,0081398  1% 0% 0% 100%
Java24.5024.5219,6361424  1% 0% 1% 100%
 fasta 
Lisp SBCL8.218.217,9801751  0% 0% 1% 100%
Java4.934.9327,6682457  0% 1% 0% 100%
 reverse-complement 
Lisp SBCL3.203.21212,144896  0% 1% 1% 100%
Java1.691.69519,612745  0% 1% 0% 100%
 regex-dna 
Lisp SBCL42.5842.60611,6681948  0% 0% 1% 100%
Java22.1222.13564,9521377  2% 1% 1% 100%
 k-nucleotide 
Lisp SBCL67.0767.13111,1882301  0% 0% 1% 100%
Java31.1831.211,189,8121844  1% 1% 0% 100%
 mandelbrot 
Lisp SBCL66.8766.8854,3122459  0% 0% 1% 100%
Java26.9626.9859,240796  1% 0% 0% 100%
 fasta-redux 
Lisp SBCL8.918.918,9802005  1% 0% 0% 100%
Java1.931.9321,6681443  3% 1% 1% 100%

 4 : Are there other Lisp SBCL programs for these benchmarks?

Remember - those are just the fastest Lisp SBCL and Java programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Lisp SBCL.

Maybe one of those other Lisp SBCL programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Lisp SBCL and Java programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Lisp SBCL : pioneering s-expression oriented programming 

online book Practical Common Lisp

This is SBCL 1.2.5, an implementation of ANSI Common Lisp.

Home Page: http://sbcl.sourceforge.net/

Download: http://sbcl.sourceforge.net/

Revised BSD license

  Home   Conclusions   License   Play