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

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 : Approximately - Are the Lisp SBCL programs faster?

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± ±
 n-body ±
 reverse-complement †±1/2
 regex-dna±
 binary-trees †1/3±
 mandelbrot 
 fasta † ±
 fasta-redux ±
 k-nucleotide †1/10±
 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 : Measurements - Are the Lisp SBCL programs faster?

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.788,4961073  2% 0% 0% 100%
Java4.174.0726,324938  3% 3% 4% 96%
 fannkuch-redux 
Lisp SBCL61.3815.7925,4961518  95% 98% 98% 99%
Java67.5617.1325,8041282  100% 98% 99% 98%
 spectral-norm 
Lisp SBCL15.944.1317,772906  96% 97% 97% 97%
Java16.534.3026,476950  99% 96% 95% 96%
 n-body 
Lisp SBCL38.4138.437,8521398  0% 1% 100% 0%
Java24.3424.3124,1561424  1% 1% 1% 100%
 reverse-complement 
Lisp SBCL3.223.23209,500896  1% 1% 100% 0% †
Java2.911.44308,0601661  47% 31% 85% 43% †
 regex-dna 
Lisp SBCL43.8220.93581,1641948  44% 41% 89% 37%
Java25.798.80729,244929  77% 80% 72% 66%
 binary-trees 
Lisp SBCL17.3417.37148,988649  0% 32% 1% 69% †
Java19.645.88513,180926  95% 79% 87% 76% †
 mandelbrot 
Lisp SBCL80.2522.2956,0002459  98% 82% 100% 82%
Java27.797.1287,832796  97% 99% 97% 97%
 fasta 
Lisp SBCL7.867.867,8361751  0% 0% 100% 1% †
Java5.901.8231,6002457  80% 83% 80% 82% †
 fasta-redux 
Lisp SBCL8.718.728,9002005  1% 0% 100% 1%
Java1.991.9324,5881443  98% 2% 4% 3%
 k-nucleotide 
Lisp SBCL67.3667.43114,5082272  0% 0% 100% 1% †
Java35.2710.611,199,1841844  79% 78% 90% 88% †

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

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

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

Revised BSD license

  Home   Conclusions   License   Play