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± ±
 spectral-norm± ±
 fannkuch-redux± ±
 mandelbrot± 
 n-body± ±
 binary-trees †±±
 reverse-complement †±1/2
 regex-dna±
 k-nucleotide †1/7±
 fasta † ±
 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.372.379,1881073  0% 2% 2% 100%
Java3.173.0323,504938  19% 80% 5% 3%
 spectral-norm 
Lisp SBCL15.914.1223,184906  96% 97% 97% 97%
Java17.804.5921,132950  97% 96% 99% 96%
 fannkuch-redux 
Lisp SBCL65.1216.7534,0041518  98% 99% 100% 92%
Java70.0617.7319,7201282  99% 99% 98% 99%
 mandelbrot 
Lisp SBCL28.567.8460,3322459  95% 87% 99% 85%
Java27.847.1162,344796  98% 97% 98% 100%
 n-body 
Lisp SBCL26.6926.708,6561398  1% 0% 100% 0%
Java22.9022.8719,5721424  99% 1% 1% 1%
 binary-trees 
Lisp SBCL23.7523.79310,176649  1% 100% 1% 1% †
Java24.8914.48390,708584  34% 73% 38% 30% †
 reverse-complement 
Lisp SBCL2.412.42396,200896  0% 0% 0% 100% †
Java2.971.47300,7121661  47% 37% 78% 43% †
 regex-dna 
Lisp SBCL42.5120.18920,2761948  85% 43% 43% 41%
Java24.528.59707,744929  80% 64% 79% 64%
 k-nucleotide 
Lisp SBCL32.9532.99152,3442301  0% 1% 0% 100% †
Java34.4410.221,096,5401844  79% 83% 82% 94% †
 fasta 
Lisp SBCL7.847.848,8841751  1% 100% 1% 0% †
Java5.782.2032,6202457  62% 75% 63% 65% †
 fasta-redux 
Lisp SBCLBad Output
Java0.210.17?1443  11% 6% 89% 17%

† 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