x64 Ubuntu : Intel® Q6600® one 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 | ± | ± | ± | |
| regex-dna | ± | 2× | 1/2 | |
| reverse-complement | 2× | 1/2 | ± | |
| spectral-norm | 2× | 1/3 | 1/3 | |
| fasta | 2× | 78× | ± | |
| n-body | 2× | ± | ± | |
| fannkuch | 3× | ± | ± | |
| mandelbrot | 3× | 1/2 | ± | |
| pidigits | 4× | 4× | ± | |
| k-nucleotide | 4× | 1/5 | ± | |
± 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,259.73 | 1,259.66 | 781,212 | 412 | 0% 0% 0% 100% |
| Perl | 1,490.64 | 1,490.58 | 1,091,276 | 541 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ruby MRI | 52.97 | 52.97 | 350,232 | 323 | 0% 0% 0% 100% |
| Perl | 38.78 | 38.78 | 165,064 | 527 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ruby MRI | 8.51 | 8.50 | 246,708 | 255 | 0% 0% 0% 100% |
| Perl | 5.30 | 5.30 | 433,056 | 298 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Ruby MRI | 2,286.91 | 2,286.77 | 4,296 | 292 | 0% 0% 0% 100% |
| Perl | 1,094.72 | 1,094.65 | 11,060 | 846 | 0% 0% 0% 100% |
| fasta | |||||
| Ruby MRI | 658.83 | 658.82 | 197,640 | 732 | 0% 0% 1% 100% |
| Perl | 311.00 | 310.98 | 2,548 | 934 | 1% 1% 1% 100% |
| n-body | |||||
| Ruby MRI | 4,063.79 | 4,063.54 | 2,168 | 1137 | 0% 0% 0% 100% |
| Perl | 1,639.61 | 1,639.53 | 2,572 | 1140 | 0% 0% 0% 100% |
| fannkuch | |||||
| Ruby MRI | 6,768.90 | 6,768.52 | 2,588 | 340 | 0% 0% 0% 100% |
| Perl | 2,660.57 | 2,660.43 | 2,060 | 391 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ruby MRI | 12,230.60 | 12,229.87 | 2,056 | 313 | 0% 0% 0% 100% |
| Perl | 4,387.61 | 4,387.50 | 4,132 | 311 | 0% 0% 0% 100% |
| pidigits | |||||
| Ruby MRI | 27.61 | 27.61 | 14,216 | 518 | 0% 0% 0% 100% |
| Perl | 7.47 | 7.48 | 3,884 | 385 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Ruby MRI | 857.89 | 857.84 | 166,344 | 420 | 0% 0% 0% 100% |
| Perl | 225.09 | 228.97 | 780,228 | 359 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| Ruby MRI | 159.12 | 159.12 | 2,656 | 928 | 1% 0% 0% 100% |
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