The Q6600
Benchmarks Game

Ruby versus Python 3 fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

n-body
source secs mem gz busy cpu load
Ruby 376.42 25,112 1137 401.06 92% 2% 4% 9%
Python 3 891.12 8,416 1196 924.03 1% 53% 47% 2%
binary-trees
source secs mem gz busy cpu load
Ruby 44.67 531,624 1096 126.74 79% 60% 73% 72%
Python 3 80.82 448,104 589 288.23 91% 88% 91% 86%
fannkuch-redux
source secs mem gz busy cpu load
Ruby 307.68 26,776 1444 1,190.76 98% 95% 96% 98%
Python 3 494.58 47,432 950 1,956.79 98% 99% 98% 100%
fasta
source secs mem gz busy cpu load
Ruby 51.46 122,960 1069 57.67 20% 22% 47% 23%
Python 3 63.63 841,056 1947 127.80 58% 61% 44% 37%
spectral-norm
source secs mem gz busy cpu load
Ruby 154.65 26,296 839 603.60 98% 98% 97% 97%
Python 3 170.10 49,484 417 670.83 99% 98% 98% 99%
mandelbrot
source secs mem gz busy cpu load
Ruby 340.43 65,964 931 1,353.94 100% 99% 99% 99%
Python 3 263.87 48,268 688 1,054.07 100% 100% 100% 100%
pidigits
source secs mem gz busy cpu load
Ruby 3.21 369,020 485 5.35 21% 31% 15% 100%
Python 3 2.39 12,200 567 2.55 64% 37% 5% 1%
k-nucleotide
source secs mem gz busy cpu load
Ruby 106.07 145,640 644 387.67 92% 93% 87% 93%
Python 3 72.58 183,484 1967 276.33 95% 95% 94% 97%
reverse-complement
source secs mem gz busy cpu load
Ruby 31.78 511,692 264 34.71 5% 54% 47% 4%
Python 3 16.41 1,772,696 434 17.57 1% 78% 28% 0%
regex-redux
source secs mem gz busy cpu load
Ruby 15.85 277,116 724 35.00 93% 39% 41% 48%
Python 3 2.67 111,864 1403 4.86 87% 30% 29% 35%
Ruby

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
--jit

Python 3

Python 3.8.0