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 Perl 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 Perl 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
 binary-trees1/22±±
 n-body1/20 ±
 spectral-norm1/9 
 fannkuch-redux1/8 
 fasta1/7 
 pidigits1/2 
 k-nucleotide±
 regex-dna±±
 reverse-complement±1/2
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/221/221/91/7±±±

± 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 Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
Racket27.1427.18218,080640  1% 1% 1% 100%
Perl602.63603.14289,324448  0% 0% 0% 100%
 n-body 
Racket56.0256.0517,7081689  0% 0% 1% 100%
Perl1,137.101,137.561,9921401  0% 0% 0% 100%
 spectral-norm 
Racket23.0823.0919,560627  0% 0% 1% 100%
Perl216.22216.313,640333  0% 0% 0% 100%
 fannkuch-redux 
Racket302.66302.7416,856903  0% 1% 1% 100%
Perl2,428.622,429.611,464457  0% 0% 0% 100%
 fasta 
Racket13.8913.8917,6561276  1% 0% 0% 100%
Perl92.5592.5999,672838  0% 0% 0% 100%
 pidigits 
Racket3.083.0918,4601122  0% 2% 1% 100%
Perl5.235.243,296261  1% 0% 0% 100%
 k-nucleotide 
Racket208.22208.501,419,664542  0% 1% 1% 100%
Perl206.30209.52707,940359  0% 0% 0% 100%
 regex-dna 
Racket39.8839.91642,384527  0% 0% 1% 100%
Perl30.8830.92140,068527  0% 0% 0% 100%
 reverse-complement 
Racket4.504.51171,8001026  1% 1% 1% 100%
Perl3.023.03374,264284  1% 0% 0% 100%
 fasta-redux 
No program
Perl0.741.201,948854  41% 45% 1% 99%
 mandelbrot 
Racket0.450.4517,624797  0% 0% 2% 100%
PerlFailed

 4 : Are there other Racket programs for these benchmarks?

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