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 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 : 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 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/21 ±
 fannkuch-redux1/8 
 spectral-norm1/8 
 fasta1/7 
 pidigits± 
 k-nucleotide±
 regex-dna±
 reverse-complement1/2
 Racket used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/221/221/81/7±

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
Racket27.2127.25258,680640  1% 1% 1% 100%
Perl589.65590.05330,760448  1% 1% 0% 100%
 n-body 
Racket55.5255.5422,1681689  1% 1% 1% 100%
Perl1,158.931,159.262,2641401  0% 1% 1% 100%
 fannkuch-redux 
Racket302.97303.0618,376903  0% 1% 0% 100%
Perl2,509.292,510.031,468457  0% 1% 1% 100%
 spectral-norm 
Racket22.9022.9121,800627  0% 1% 0% 100%
Perl183.01183.065,292340  1% 0% 1% 100%
 fasta 
Racket13.4113.4222,1761276  1% 14% 2% 100%
Perl99.6899.7251,388838  1% 0% 0% 100%
 pidigits 
Racket3.053.0620,0921122  0% 1% 0% 100%
Perl4.344.353,360261  1% 0% 1% 100%
 k-nucleotide 
Racket205.82206.071,422,360542  0% 1% 1% 100%
Perl211.38214.42465,444359  0% 1% 1% 100%
 regex-dna 
Racket39.5139.53669,096527  0% 1% 0% 100%
Perl25.5725.60139,096527  0% 1% 1% 100%
 reverse-complement 
Racket4.504.51172,1561026  0% 1% 1% 100%
Perl2.782.79358,204284  3% 1% 1% 100%
 fasta-redux 
No program
Perl0.810.832,528854  1% 0% 0% 99%
 mandelbrot 
Racket0.460.4718,228797  2% 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.1.1.

Home Page: Racket

Download: Version 6.1.1 (November 2014)

Revised BSD license

  Home   Conclusions   License   Play