vs

 1 : Are the Racket programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Racket 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 Racket programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Racket program used compared to the fastest Python 3 program.

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

 Racket used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm1/41 
 mandelbrot1/23 ±
 binary-trees1/191/3±
 n-body1/18 ±
 fasta1/17 
 fannkuch-redux1/9 
 k-nucleotide1/2±
 reverse-complement±1/5
 pidigits± 
 regex-dna±
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/411/411/191/12±

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

 3 : Are the Racket 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 Racket 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
 spectral-norm 
Racket23.0823.0919,560627  0% 0% 1% 100%
Python 3939.78940.065,004328  0% 1% 0% 100%
 mandelbrot 
Racket76.7676.7917,632797  0% 0% 1% 100%
Python 31,735.671,736.3952,196777  1% 1% 1% 100%
 binary-trees 
Racket27.1427.18218,080640  1% 1% 1% 100%
Python 3506.90507.35688,448626  1% 1% 1% 100%
 n-body 
Racket56.0256.0517,7081689  0% 0% 1% 100%
Python 31,006.751,007.024,2521181  1% 0% 0% 100%
 fasta 
Racket13.8913.8917,6561276  1% 0% 0% 100%
Python 3234.62237.784,316792  1% 1% 1% 100%
 fannkuch-redux 
Racket302.66302.7416,856903  0% 1% 1% 100%
Python 32,649.782,655.584,192385  0% 0% 0% 100%
 k-nucleotide 
Racket208.22208.501,419,664542  0% 1% 1% 100%
Python 3490.63492.77431,792647  0% 1% 1% 100%
 reverse-complement 
Racket4.504.51171,8001026  1% 1% 1% 100%
Python 36.546.56781,140325  1% 0% 1% 100%
 pidigits 
Racket3.083.0918,4601122  0% 2% 1% 100%
Python 33.043.055,312256  1% 0% 0% 100%
 regex-dna 
Racket39.8839.91642,384527  0% 0% 1% 100%
Python 323.9223.94247,788424  0% 1% 1% 100%
 fasta-redux
   No programs

 4 : Are there other Racket programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Racket 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.

 Racket : statically-scoped properly tail-recursive dialect of lisp 

Welcome to Racket v6.0.

Home Page: Racket

Download: Racket v6.0 (February 2014)

Revised BSD license

  Home   Conclusions   License   Play