OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest Perl program used compared to the fastest Ruby MRI program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest Perl program used compared to the fastest Ruby MRI program.
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 1/6 | 1/2 | ± | |
| nsieve-bits | 1/6 | ± | ± | |
| fasta | 1/5 | 1/128 | ± | |
| k-nucleotide | 1/5 | 1/2 | ± | |
| reverse-complement | 1/4 | 1/2 | ± | |
| mandelbrot | 1/4 | ± | ± | |
| partial-sums | 1/3 | ± | ± | |
| n-body | 1/3 | ± | ± | |
| spectral-norm | 1/2 | ± | ± | |
| fannkuch | 1/2 | 1/2 | ± | |
| nsieve | 1/2 | 4× | ± | |
| recursive | ± | 1/2 | ± | |
| binary-trees | ± | ± | ± | |
| pidigits | 2× | 1/3 | 1/2 | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest Perl program are shown for comparison against measurements of the fastest Ruby MRI program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Perl | 1.23 | 22,120 | 471 | ||
| Ruby MRI | 7.62 | 42,824 | 396 | ||
| nsieve-bits | |||||
| Perl | 24.21 | 2,132 | 253 | ||
| Ruby MRI | 139.66 | 2,740 | 346 | ||
| fasta | |||||
| Perl | 773.42 | 1,856 | 791 | ||
| Ruby MRI | 4,202.98 | 238,156 | 744 | ||
| k-nucleotide | |||||
| Perl | 32.07 | 42,816 | 359 | ||
| Ruby MRI | 160.09 | 84,616 | 420 | ||
| reverse-complement | |||||
| Perl | 1.99 | 38,360 | 298 | ||
| Ruby MRI | 8.08 | 86,340 | 266 | ||
| mandelbrot | |||||
| Perl | 15.93 | 1,532 | 311 | ||
| Ruby MRI | 59.32 | 1,652 | 349 | ||
| partial-sums | |||||
| Perl | 17.41 | 1,476 | 389 | ||
| Ruby MRI | 59.61 | 1,640 | 362 | ||
| n-body | |||||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| Ruby MRI | 4,847.57 | 1,712 | 1137 | ||
| spectral-norm | |||||
| Perl | 4,089.08 | 2,468 | 334 | ||
| Ruby MRI | 9,862.17 | 2,732 | 292 | ||
| fannkuch | |||||
| Perl | 5.81 | 1,492 | 348 | ||
| Ruby MRI | 12.42 | 2,864 | 326 | ||
| nsieve | |||||
| Perl | 25.45 | 121,904 | 290 | ||
| Ruby MRI | 41.51 | 30,408 | 270 | ||
| recursive | |||||
| Perl | 36.28 | 2,080 | 380 | ||
| Ruby MRI | 45.76 | 4,492 | 301 | ||
| binary-trees | |||||
| Perl | 239.36 | 47,936 | 541 | ||
| Ruby MRI | 172.31 | 48,756 | 409 | ||
| pidigits | |||||
| Perl | 0.54 | 2,404 | 385 | ||
| Ruby MRI | 0.30 | 6,032 | 653 | ||
| chameneos-redux | |||||
Remember - those are just the fastest Perl and Ruby MRI programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Perl.
Maybe one of those other Perl programs is fastest on a different OS/machine.
Remember - those are just the fastest Perl and Ruby MRI 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.
This is perl, v5.8.8 built for i686-linux-thread-multi
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/