vs

 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± ±
 spectral-norm± ±
 binary-trees †±1/2±
 n-body ±
 reverse-complement †±1/2
 regex-dna±
 mandelbrot 
 fasta † ±
 k-nucleotide †1/11±
 Lisp SBCL used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±

† possible mismatch - one-core program compared to multi-core program.

± 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.776,4761073  0% 2% 1% 100%
Java4.154.0418,352938  16% 84% 1% 1%
 fannkuch-redux 
Lisp SBCL61.2415.7926,2961518  92% 99% 100% 98%
Java68.0417.2515,6961282  99% 99% 97% 99%
 spectral-norm 
Lisp SBCL15.974.1919,208906  96% 95% 95% 97%
Java16.564.2916,460950  96% 96% 99% 96%
 binary-trees 
Lisp SBCL18.6518.68193,672649  1% 1% 1% 100% †
Java17.7512.78471,136584  77% 15% 15% 34% †
 n-body 
Lisp SBCL38.4338.445,7761398  1% 4% 2% 100%
Java24.5024.4815,6561424  0% 100% 1% 0%
 reverse-complement 
Lisp SBCL2.812.82251,104896  0% 1% 0% 100% †
Java3.161.63296,1361661  77% 24% 39% 58% †
 regex-dna 
Lisp SBCL42.5320.71826,9881948  40% 39% 88% 40%
Java26.449.20713,236929  80% 66% 77% 65%
 mandelbrot 
Lisp SBCL93.2626.0751,9402459  99% 100% 80% 80%
Java27.176.9573,488796  97% 97% 99% 98%
 fasta 
Lisp SBCL8.018.025,7801751  1% 1% 0% 100% †
Java5.341.7229,4842457  69% 75% 73% 96% †
 k-nucleotide 
Lisp SBCL65.4165.47109,2082272  0% 1% 1% 100% †
Java35.1710.411,200,4801844  82% 90% 89% 78% †
 fasta-redux 
Lisp SBCLBad Output
Java0.210.18?1443  6% 0% 17% 94%

† possible mismatch - one-core program compared to multi-core program.

 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.0, an implementation of ANSI Common Lisp.

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

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

Revised BSD license

  Home   Conclusions   License   Play