The Computer Language
Benchmarks Game

Node.js programs versus Ruby

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
Node.js 17.49 564,704 778 62.77 84% 84% 96% 97%
Ruby 463.95 69,656 1019 1,852.06 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
Node.js 27.82 28,208 1297 27.81 1% 0% 1% 100%
Ruby 723.69 8,916 1137 723.48 25% 86% 1% 9%
fasta
source secs mem gz cpu cpu load
Node.js 9.45 31,892 1745 9.46 1% 1% 1% 100%
Ruby 108.36 107,984 973 108.32 7% 10% 75% 10%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 78.41 27,192 473 78.39 1% 1% 100% 1%
Ruby 710.58 33,348 1426 2,761.73 99% 99% 95% 97%
spectral-norm
source secs mem gz cpu cpu load
Node.js 15.77 28,804 425 15.77 1% 0% 1% 100%
Ruby 141.49 50,156 835 544.76 96% 97% 96% 97%
regex-redux
source secs mem gz cpu cpu load
Node.js 4.02 507,480 452 4.02 0% 1% 100% 0%
Ruby 28.80 309,760 424 28.77 15% 48% 20% 19%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 60.73 2,095,052 904 151.74 96% 84% 84% 83%
Ruby 101.95 381,312 852 367.82 84% 98% 85% 95%
reverse-complement
source secs mem gz cpu cpu load
Node.js 3.68 245,496 1088 3.93 4% 4% 98% 2%
Ruby 4.03 505,656 509 7.14 51% 83% 37% 9%
binary-trees
source secs mem gz cpu cpu load
Node.js 55.64 895,396 477 56.61 3% 52% 43% 5%
Ruby 58.72 192,132 1123 166.36 67% 61% 68% 90%
pidigits
source secs mem gz cpu cpu load
Node.js   Bad Output
Ruby 0.20 ? 478 0.20 0% 0% 0% 100%
Node.js

v7.6.0

Ruby

ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]