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 Python 3 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 Python 3 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
 mandelbrot1/59 
 spectral-norm1/47 
 fannkuch-redux1/40 
 n-body1/35 ±
 fasta1/21 
 binary-trees1/201/4±
 k-nucleotide1/111/3
 reverse-complement1/31/3
 pidigits± 
 regex-dna
 Lisp SBCL used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/591/591/401/201/3±

± 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 Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 mandelbrot 
Lisp SBCL28.5328.5459,8482459  1% 1% 0% 100%
Python 31,671.631,672.33110,552777  0% 1% 1% 100%
 spectral-norm 
Lisp SBCL15.8715.8823,060906  0% 1% 1% 100%
Python 3746.94747.206,468328  1% 0% 0% 100%
 fannkuch-redux 
Lisp SBCL58.1858.1932,160674  1% 0% 0% 100%
Python 32,333.002,333.785,416385  1% 0% 0% 100%
 n-body 
Lisp SBCL26.9926.9910,6681398  1% 0% 0% 100%
Python 3932.49932.795,5721181  1% 0% 0% 100%
 fasta 
Lisp SBCL7.797.808,8641751  1% 1% 0% 100%
Python 3156.10160.135,572792  1% 0% 0% 100%
 binary-trees 
Lisp SBCL23.9724.01287,440649  0% 1% 1% 100%
Python 3479.82480.361,123,040626  0% 1% 1% 100%
 k-nucleotide 
Lisp SBCL33.0933.13152,1842272  0% 1% 1% 100%
Python 3372.03374.89456,532647  0% 1% 1% 100%
 reverse-complement 
Lisp SBCL2.262.26291,560896  1% 0% 1% 100%
Python 35.986.001,008,592325  0% 1% 1% 100%
 pidigits 
Lisp SBCL2.362.3611,0281073  1% 0% 1% 100%
Python 32.392.396,612256  2% 0% 1% 100%
 regex-dna 
Lisp SBCL43.7943.82566,7841948  1% 1% 1% 100%
Python 323.0823.19257,976478  0% 1% 1% 100%
 fasta-redux 
Lisp SBCL0.080.08?2005  0% 0% 11% 100%
No program

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

Remember - those are just the fastest Lisp SBCL and Python 3 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 Python 3 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