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

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

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 ±
 n-body1/16 ±
 mandelbrot1/13 ±
 fannkuch-redux1/6 ±
 fasta1/6 ±
 binary-trees †1/31/2±
 pidigits± 
 k-nucleotide †±1/2
 reverse-complement †±±±
 regex-dna †±
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/391/391/131/4±

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

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

 3 : Measurements - Are the Racket 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 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.605.3932,832627  95% 95% 98% 95%
Python 3837.25211.8543,784437  99% 99% 99% 99%
 n-body 
Racket53.8253.8433,2201689  1% 0% 100% 1%
Python 3876.05876.277,8481228  0% 1% 100% 1%
 mandelbrot 
Racket73.7018.6569,588796  99% 99% 100% 99%
Python 3956.49239.6042,456686  100% 100% 100% 100%
 fannkuch-redux 
Racket305.0485.9626,5761096  86% 84% 86% 99%
Python 31,981.89505.4239,992944  99% 97% 100% 97%
 fasta 
Racket17.0417.0434,3201276  1% 0% 100% 0%
Python 396.3096.335,628977  1% 100% 0% 0%
 binary-trees 
Racket40.4640.51412,592640  1% 0% 100% 1% †
Python 3488.80129.60835,824596  93% 94% 98% 93% †
 pidigits 
Racket2.322.3230,4481122  1% 1% 100% 0%
Python 32.212.216,744335  1% 100% 0% 1%
 k-nucleotide 
Racket84.6384.63405,832881  0% 1% 1% 100% †
Python 3272.6073.07226,1441937  92% 93% 94% 97% †
 reverse-complement 
Racket4.354.36182,3601026  1% 1% 100% 1% †
Python 34.402.95262,292800  21% 81% 2% 48% †
 regex-dna 
Racket39.8539.85731,168527  1% 59% 1% 42% †
Python 322.8910.29259,568478  71% 38% 39% 75% †
 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.1.1.

Home Page: Racket

Download: Version 6.1.1 (November 2014)

Revised BSD license

  Home   Conclusions   License   Play