Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby MRI program used compared to the fastest Perl program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest Ruby MRI program used compared to the fastest Perl program.
| Ruby MRI used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| binary-trees | ± | ± | ± | |
| reverse-complement | 2× | 2× | ± | |
| fasta | 2× | 116× | ± | |
| n-body | 2× | ± | ± | |
| regex-dna | 4× | 2× | 1/2 | |
| fannkuch | 6× | 1/3 | ± | |
| spectral-norm | 7× | 1/3 | 1/3 | |
| pidigits | 8× | 4× | ± | |
| mandelbrot | 8× | 1/186 | 1/2 | |
| k-nucleotide | 10× | 1/19 | 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.
For each named benchmark, measurements of the fastest Ruby MRI 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 | |||||
| Ruby MRI | 1,070.44 | 1,070.38 | 457,788 | 412 | 1% 100% 1% 1% |
| Perl | 1,292.44 | 1,292.38 | 643,488 | 541 | 0% 0% 100% 0% |
| reverse-complement | |||||
| Ruby MRI | 10.09 | 10.09 | 197,348 | 255 | 0% 98% 0% 0% |
| Perl | 5.78 | 5.79 | 124,036 | 237 | 0% 0% 0% 100% |
| fasta | |||||
| Ruby MRI | 630.13 | 630.12 | 245,868 | 732 | 0% 41% 1% 58% |
| Perl | 339.78 | 339.76 | 2,112 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Ruby MRI | 3,982.80 | 3,982.55 | 1,652 | 1137 | 0% 100% 0% 0% |
| Perl | 1,914.13 | 1,914.02 | 2,128 | 1140 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ruby MRI | 58.39 | 58.39 | 254,336 | 323 | 0% 0% 0% 100% |
| Perl | 39.07 | 14.23 | 153,584 | 527 | 55% 66% 58% 96% |
| fannkuch | |||||
| Ruby MRI | 6,779.96 | 6,779.55 | 1,888 | 340 | 0% 100% 0% 0% |
| Perl | 4,206.05 | 1,062.52 | 6,020 | 471 | 99% 99% 99% 100% |
| spectral-norm | |||||
| Ruby MRI | 2,251.47 | 2,251.33 | 2,676 | 292 | 0% 0% 0% 100% |
| Perl | 1,212.30 | 304.61 | 7,792 | 846 | 100% 100% 99% 100% |
| pidigits | |||||
| Ruby MRI | 53.81 | 53.81 | 13,924 | 518 | 0% 0% 0% 100% |
| Perl | 7.03 | 7.03 | 3,284 | 385 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ruby MRI | 11,695.70 | 11,694.96 | 1,568 | 313 | 0% 100% 0% 0% |
| Perl | 5,578.83 | 1,436.69 | 291,628 | 550 | 97% 97% 97% 97% |
| k-nucleotide | |||||
| Ruby MRI | 843.59 | 843.54 | 147,980 | 420 | 0% 0% 0% 100% |
| Perl | 281.57 | 88.72 | 2,774,904 | 648 | 78% 73% 88% 83% |
| chameneos-redux | |||||
| Ruby MRI | 131.29 | 131.28 | 1,956 | 928 | 100% 0% 0% 0% |
online book "Programming Ruby: The Pragmatic Programmer's Guide
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
Home Page: Ruby is
Download: Download Ruby