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× | 2× | 1/2 | |
| reverse-complement | 2× | 2× | ± | |
| fasta | 2× | 116× | ± | |
| spectral-norm | 2× | 1/3 | 1/3 | |
| n-body | 2× | ± | ± | |
| fannkuch | 2× | ± | ± | |
| mandelbrot | 2× | 1/2 | ± | |
| k-nucleotide | 3× | 1/5 | ± | |
| pidigits | 8× | 4× | ± | |
± 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,069.74 | 1,069.68 | 457,796 | 412 | 0% 0% 0% 100% |
| Perl | 1,297.73 | 1,297.68 | 643,488 | 541 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ruby MRI | 58.64 | 58.64 | 254,336 | 323 | 2% 3% 0% 100% |
| Perl | 38.84 | 38.84 | 153,472 | 527 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ruby MRI | 9.95 | 9.96 | 197,352 | 255 | 0% 0% 0% 100% |
| Perl | 5.80 | 5.80 | 124,036 | 237 | 0% 0% 1% 100% |
| fasta | |||||
| Ruby MRI | 623.67 | 623.67 | 245,848 | 732 | 0% 0% 0% 100% |
| Perl | 349.59 | 349.57 | 2,112 | 934 | 0% 1% 0% 100% |
| spectral-norm | |||||
| Ruby MRI | 2,222.02 | 2,221.89 | 2,676 | 292 | 0% 0% 0% 100% |
| Perl | 1,184.33 | 1,184.26 | 7,792 | 846 | 0% 0% 0% 100% |
| n-body | |||||
| Ruby MRI | 3,997.42 | 3,997.17 | 1,648 | 1137 | 0% 0% 0% 100% |
| Perl | 1,911.92 | 1,911.80 | 2,128 | 1140 | 0% 0% 0% 100% |
| fannkuch | |||||
| Ruby MRI | 6,749.92 | 6,749.50 | 1,884 | 340 | 0% 0% 0% 100% |
| Perl | 3,160.50 | 3,160.31 | 1,692 | 391 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ruby MRI | 11,516.89 | 11,516.18 | 1,564 | 313 | 0% 0% 0% 100% |
| Perl | 5,268.13 | 5,267.81 | 3,032 | 311 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Ruby MRI | 850.30 | 850.25 | 147,984 | 420 | 0% 0% 0% 100% |
| Perl | 249.61 | 252.46 | 709,264 | 359 | 0% 0% 0% 100% |
| pidigits | |||||
| Ruby MRI | 53.84 | 53.84 | 13,924 | 518 | 0% 0% 0% 100% |
| Perl | 7.04 | 7.05 | 3,284 | 385 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| Ruby MRI | 130.64 | 130.63 | 1,944 | 928 | 0% 0% 0% 100% |
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