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/39 ±
 mandelbrot1/26 ±
 n-body1/17 ±
 fannkuch-redux1/13 ±
 fasta1/10 
 binary-trees †1/41/3±
 reverse-complement±1/6
 k-nucleotide †±±±
 pidigits± 
 regex-dna †±
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/391/391/171/5±

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

± 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 
Racket20.665.4126,372627  95% 95% 98% 95%
Python 3821.48209.7643,728437  98% 98% 98% 98%
 mandelbrot 
Racket71.6118.1160,436796  99% 99% 100% 99%
Python 31,760.17475.3710,556777  90% 100% 90% 90%
 n-body 
Racket53.7753.7925,7321689  0% 0% 100% 0%
Python 3939.20939.505,5641181  1% 0% 0% 100%
 fannkuch-redux 
Racket286.8072.7320,6761096  100% 95% 100% 100%
Python 33,587.04915.3640,096797  98% 97% 100% 97%
 fasta 
Racket17.2217.2224,5841276  0% 0% 1% 100%
Python 3161.75166.415,576788  25% 27% 16% 34%
 binary-trees 
Racket39.7339.78396,888640  1% 0% 100% 1% †
Python 3531.55140.741,123,020626  98% 94% 94% 94% †
 reverse-complement 
Racket4.364.36171,3081026  0% 1% 100% 1%
Python 35.925.941,008,592325  1% 1% 1% 100%
 k-nucleotide 
Racket106.84106.83387,480881  0% 0% 1% 100% †
Python 3374.51124.40498,756647  59% 58% 87% 98% †
 pidigits 
Racket2.342.3425,6481122  0% 1% 0% 100%
Python 32.402.416,600256  1% 2% 0% 100%
 regex-dna 
Racket40.0740.07720,060527  0% 1% 100% 0% †
Python 322.9810.42269,120478  40% 48% 83% 55% †
 fasta-redux
   No programs

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

 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