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/41 
 n-body1/18 ±
 binary-trees1/171/2±
 mandelbrot1/14 ±
 fannkuch-redux1/8 ±
 fasta1/8 ±
 k-nucleotide±1/4
 reverse-complement±1/2±
 pidigits± 
 regex-dna±
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/411/411/171/8±

± 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 
Racket22.9022.9121,800627  0% 1% 0% 100%
Python 3950.08950.334,972328  0% 0% 1% 100%
 n-body 
Racket55.5255.5422,1681689  1% 1% 1% 100%
Python 3991.99992.224,2321181  1% 0% 1% 100%
 binary-trees 
Racket27.2127.25258,680640  1% 1% 1% 100%
Python 3456.23456.60470,132596  1% 1% 0% 100%
 mandelbrot 
Racket76.7676.7921,388797  0% 1% 1% 100%
Python 31,090.301,090.6728,612686  1% 1% 0% 100%
 fannkuch-redux 
Racket302.97303.0618,376903  0% 1% 0% 100%
Python 32,467.602,468.3128,000944  1% 1% 0% 100%
 fasta 
Racket13.4113.4222,1761276  1% 14% 2% 100%
Python 3108.42108.464,328977  0% 0% 1% 100%
 k-nucleotide 
Racket205.82206.071,422,360542  0% 1% 1% 100%
Python 3295.95296.24152,2961937  1% 1% 1% 100%
 reverse-complement 
Racket4.504.51172,1561026  0% 1% 1% 100%
Python 35.235.25258,596800  0% 2% 1% 100%
 pidigits 
Racket3.053.0620,0921122  0% 1% 0% 100%
Python 32.732.745,452335  0% 2% 1% 100%
 regex-dna 
Racket39.5139.53669,096527  0% 1% 0% 100%
Python 323.5623.68234,048478  1% 1% 0% 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.1.1.

Home Page: Racket

Download: Version 6.1.1 (November 2014)

Revised BSD license

  Home   Conclusions   License   Play