/mobile Handheld Friendly website

÷

 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.


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.

 Racket used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm1/44
 mandelbrot1/25±
 n-body1/20±
 fasta1/19
 binary-trees1/191/3±
 fannkuch-redux1/10
 k-nucleotide1/2±
 reverse-complement±1/4
 pidigits±
 regex-dna±
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/441/441/201/13±

± 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 
Racket22.8822.8918,540627  0% 0% 0% 100%
Python 31,018.201,018.445,208328  0% 0% 0% 100%
 mandelbrot 
Racket78.2778.3050,748796  0% 0% 0% 100%
Python 31,845.311,968.406,748777  1% 0% 0% 100%
 n-body 
Racket55.2255.2517,2641689  0% 0% 0% 100%
Python 31,098.651,098.894,7001181  0% 0% 0% 100%
 fasta 
Racket13.7513.7617,2521276  0% 0% 0% 100%
Python 3259.48262.344,672788  0% 1% 1% 100%
 binary-trees 
Racket26.8326.87226,564640  1% 0% 0% 100%
Python 3504.56504.93685,724626  0% 0% 0% 100%
 fannkuch-redux 
Racket314.07314.1815,332649  0% 0% 0% 100%
Python 32,903.203,204.314,564385  0% 0% 0% 100%
 k-nucleotide 
Racket225.97226.511,419,356542  0% 0% 0% 100%
Python 3474.71474.95426,212647  1% 0% 0% 100%
 reverse-complement 
Racket4.514.51174,6001026  0% 0% 1% 100%
Python 36.506.51616,588325  0% 0% 0% 100%
 pidigits 
Racket3.063.0618,0281122  0% 1% 1% 100%
Python 33.063.065,408255  1% 0% 1% 100%
 regex-dna 
Racket40.7640.79598,772527  0% 0% 0% 100%
Python 321.1321.14194,612424  0% 0% 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 v5.3.4.

Home Page: Racket

Download: Download Racket v5.3.3 (February 2013)

Revised BSD license

  Home   Conclusions   License   Play