The Computer Language
Benchmarks Game

Node.js programs versus Ruby

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Node.js 38.34 22,660 1297 38.32 1% 4% 1% 100%
Ruby 1,429.79 7,284 1137 1,429.24 1% 18% 83% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 78.68 22,304 473 78.65 0% 1% 1% 100%
Ruby 2,604.22 7,112 384 2,603.32 1% 17% 72% 100%
spectral-norm
source secs mem gz cpu cpu load
Node.js 15.79 24,392 413 15.78 0% 1% 0% 100%
Ruby 520.06 7,584 326 519.86 0% 1% 100% 100%
mandelbrot
source secs mem gz cpu cpu load
Node.js 8.01 240,216 778 7.98 1% 1% 1% 100%
Ruby 222.26 7,012 307 222.17 1% 0% 0% 100%
fasta
source secs mem gz cpu cpu load
Node.js 14.30 26,108 1101 14.29 1% 1% 0% 100%
Ruby 197.80 197,072 904 197.62 1% 1% 100% 100%
binary-trees
source secs mem gz cpu cpu load
Node.js 47.30 479,436 477 47.21 0% 1% 1% 100%
Ruby 179.60 117,640 402 179.49 1% 1% 100% 100%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 194.10 1,570,816 904 140.97 1% 1% 1% 100%
Ruby 672.83 160,276 420 672.50 0% 2% 99% 100%
reverse-complement
source secs mem gz cpu cpu load
Node.js 3.92 280,384 1088 3.91 1% 1% 1% 100%
Ruby 6.17 541,352 509 6.14 0% 1% 1% 100%
pidigits
source secs mem gz cpu cpu load
Node.js   Bad Output
Ruby 0.31 536 478 0.25 0% 0% 6% 100%
Node.js

v6.9.0

Ruby

ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]