The Q6600
Benchmarks Game

Ruby versus Node js 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.

pidigits
source secs mem gz busy cpu load
Ruby 3.21 369,020 485 5.35 21% 31% 15% 100%
Node js 2.58 36,368 599 2.97 100% 6% 7% 2%
regex-redux
source secs mem gz busy cpu load
Ruby 15.85 277,116 724 35.00 93% 39% 41% 48%
Node js 9.53 756,856 668 12.74 71% 24% 13% 26%
binary-trees
source secs mem gz busy cpu load
Ruby 44.67 531,624 1096 126.74 79% 60% 73% 72%
Node js 19.22 1,000,628 711 61.94 80% 82% 82% 79%
k-nucleotide
source secs mem gz busy cpu load
Ruby 106.07 145,640 644 387.67 92% 93% 87% 93%
Node js 26.32 397,472 1812 77.28 74% 71% 62% 87%
reverse-complement
source secs mem gz busy cpu load
Ruby 31.78 511,692 264 34.71 5% 54% 47% 4%
Node js 4.10 1,340,368 1480 8.58 52% 56% 73% 28%
fasta
source secs mem gz busy cpu load
Ruby 51.46 122,960 1069 57.67 20% 22% 47% 23%
Node js 3.62 67,488 2047 10.61 72% 75% 72% 74%
n-body
source secs mem gz busy cpu load
Ruby 376.42 25,112 1137 401.06 92% 2% 4% 9%
Node js 26.28 35,412 1268 28.03 2% 0% 4% 100%
fannkuch-redux
source secs mem gz busy cpu load
Ruby 307.68 26,776 1444 1,190.76 98% 95% 96% 98%
Node js 19.48 58,152 1313 77.05 99% 99% 99% 99%
spectral-norm
source secs mem gz busy cpu load
Ruby 154.65 26,296 839 603.60 98% 98% 97% 97%
Node js 4.40 61,768 999 16.63 93% 97% 95% 93%
mandelbrot
source secs mem gz busy cpu load
Ruby 340.43 65,964 931 1,353.94 100% 99% 99% 99%
Node js 6.84 88,016 1122 26.99 98% 98% 99% 98%
Ruby

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

Node js

v14.2.0