OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 | ± | ± | ± | |
| recursive | ± | 4× | ± | |
| nsieve | 2× | ± | ± | |
| spectral-norm | 2× | ± | ± | 500 |
| fannkuch | 2× | 1/2 | ± | |
| n-body | 3× | ± | ± | |
| mandelbrot | 4× | ± | ± | |
| fasta | 4× | 75× | ± | |
| reverse-complement | 4× | 2× | ± | |
| partial-sums | 4× | 1/2 | ± | |
| sum-file | 5× | ± | ± | |
| nsieve-bits | 5× | 2× | ± | |
| k-nucleotide | 5× | ± | ± | |
| pidigits | 6× | 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 | 157.39 | 48,752 | 409 | ||
| Perl | 224.06 | 37,588 | 481 | ||
| regex-dna | |||||
| Ruby MRI | 10.79 | 31,756 | 323 | ||
| Perl | 13.66 | 25,048 | 449 | ||
| recursive | |||||
| Ruby MRI | 1,413.51 | 47,608 | 301 | ||
| Perl | 956.31 | 10,812 | 380 | ||
| nsieve | |||||
| Ruby MRI | 92.69 | 228,964 | 353 | ||
| Perl | 60.70 | 242,316 | 290 | ||
| spectral-norm N = 500 reduced workload | |||||
| Ruby MRI | 66.26 | 18,532 | 292 | ||
| Perl | 32.85 | 16,956 | 334 | ||
| fannkuch | |||||
| Ruby MRI | 1,816.41 | 1,864 | 326 | ||
| Perl | 728.50 | 3,144 | 348 | ||
| n-body | |||||
| Ruby MRI | 4,979.78 | 1,712 | 1137 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| mandelbrot | |||||
| Ruby MRI | 1,456.46 | 3,332 | 349 | ||
| Perl | 382.65 | 3,388 | 311 | ||
| fasta | |||||
| Ruby MRI | 3,297.26 | 238,200 | 744 | ||
| Perl | 850.67 | 3,156 | 934 | ||
| reverse-complement | |||||
| Ruby MRI | 8.35 | 58,348 | 266 | ||
| Perl | 1.99 | 38,356 | 298 | ||
| partial-sums | |||||
| Ruby MRI | 63.51 | 1,604 | 362 | ||
| Perl | 14.23 | 3,156 | 389 | ||
| sum-file | |||||
| Ruby MRI | 71.64 | 14,928 | 75 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| nsieve-bits | |||||
| Ruby MRI | 489.62 | 6,068 | 346 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| k-nucleotide | |||||
| Ruby MRI | 145.78 | 30,932 | 420 | ||
| Perl | 27.54 | 42,836 | 359 | ||
| pidigits | |||||
| Ruby MRI | 38.79 | 15,096 | 518 | ||
| Perl | 6.21 | 3,144 | 385 | ||
| chameneos-redux | |||||
online book "Programming Ruby: The Pragmatic Programmer's Guide
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
Home Page: Ruby is
Download: Download Ruby