x64 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× | 1/2 | ± | |
| fasta | 2× | 78× | ± | |
| n-body | 2× | ± | ± | |
| mandelbrot | 3× | 1/2 | ± | |
| pidigits | 4× | 4× | ± | |
| regex-dna | 4× | 2× | 1/2 | |
| fannkuch | 7× | 1/3 | ± | |
| spectral-norm | 8× | 1/3 | 1/3 | |
| k-nucleotide | 11× | 1/17 | 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,253.73 | 1,253.65 | 781,228 | 412 | 0% 0% 100% 0% |
| Perl | 1,276.89 | 1,276.85 | 1,091,276 | 541 | 0% 0% 100% 0% |
| reverse-complement | |||||
| Ruby MRI | 8.50 | 8.50 | 246,712 | 255 | 0% 0% 100% 0% |
| Perl | 5.25 | 5.25 | 431,496 | 298 | 100% 0% 0% 0% |
| fasta | |||||
| Ruby MRI | 654.81 | 654.84 | 197,644 | 732 | 0% 1% 0% 100% |
| Perl | 314.46 | 314.46 | 2,548 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Ruby MRI | 4,058.30 | 4,058.05 | 2,168 | 1137 | 0% 0% 100% 0% |
| Perl | 1,665.13 | 1,665.14 | 2,568 | 1140 | 0% 0% 100% 0% |
| mandelbrot | |||||
| Ruby MRI | 12,196.28 | 12,195.56 | 2,064 | 313 | 26% 0% 39% 34% |
| Perl | 4,226.42 | 4,226.21 | 4,136 | 311 | 0% 0% 100% 0% |
| pidigits | |||||
| Ruby MRI | 27.60 | 27.60 | 14,324 | 518 | 0% 0% 100% 0% |
| Perl | 7.46 | 7.46 | 3,868 | 385 | 100% 0% 0% 0% |
| regex-dna | |||||
| Ruby MRI | 50.21 | 50.21 | 350,236 | 323 | 0% 100% 0% 0% |
| Perl | 38.61 | 12.84 | 167,208 | 527 | 78% 66% 76% 81% |
| fannkuch | |||||
| Ruby MRI | 6,738.69 | 6,738.27 | 2,584 | 340 | 0% 0% 0% 100% |
| Perl | 3,749.89 | 942.90 | 8,808 | 471 | 99% 100% 100% 100% |
| spectral-norm | |||||
| Ruby MRI | 2,247.44 | 2,247.31 | 4,288 | 292 | 0% 1% 0% 100% |
| Perl | 1,137.10 | 285.55 | 10,976 | 846 | 100% 100% 100% 100% |
| k-nucleotide | |||||
| Ruby MRI | 853.73 | 853.68 | 166,340 | 420 | 0% 0% 100% 0% |
| Perl | 256.15 | 78.58 | 2,883,780 | 648 | 81% 71% 88% 84% |
| chameneos-redux | |||||
| Ruby MRI | 158.27 | 158.26 | 2,656 | 928 | 0% 0% 100% 0% |
online book "Programming Ruby: The Pragmatic Programmer's Guide
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Home Page: Ruby is
Download: Download Ruby