The Computer Language
Benchmarks Game

Go 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.

k-nucleotide
source secs mem gz busy cpu load
Go 12.67 150,584 1722 47.44 95% 90% 93% 96%
Node js 26.32 397,472 1812 77.28 74% 71% 62% 87%
fasta
source secs mem gz busy cpu load
Go 2.11 4,228 1358 5.66 69% 65% 64% 70%
Node js 3.62 67,488 2047 10.61 72% 75% 72% 74%
regex-redux
source secs mem gz busy cpu load
Go 7.21 326,552 810 10.19 22% 18% 87% 14%
Node js 9.53 756,856 668 12.74 71% 24% 13% 26%
fannkuch-redux
source secs mem gz busy cpu load
Go 14.93 3,484 969 59.67 100% 100% 100% 100%
Node js 19.48 58,152 1313 77.05 99% 99% 99% 99%
pidigits
source secs mem gz busy cpu load
Go 2.04 8,724 603 2.36 20% 32% 33% 31%
Node js 2.58 36,368 599 2.97 100% 6% 7% 2%
n-body
source secs mem gz busy cpu load
Go 21.26 1,888 1310 22.28 3% 0% 100% 2%
Node js 26.28 35,412 1268 28.03 2% 0% 4% 100%
mandelbrot
source secs mem gz busy cpu load
Go 5.55 30,300 894 22.11 99% 99% 99% 100%
Node js 6.84 88,016 1122 26.99 98% 98% 99% 98%
reverse-complement
source secs mem gz busy cpu load
Go 3.73 826,488 611 4.10 88% 6% 2% 14%
Node js 4.10 1,340,368 1480 8.58 52% 56% 73% 28%
spectral-norm
source secs mem gz busy cpu load
Go 4.12 2,704 548 15.93 96% 98% 97% 96%
Node js 4.40 61,768 999 16.63 93% 97% 95% 93%
binary-trees
source secs mem gz busy cpu load
Go 25.19 397,116 1007 86.01 88% 86% 84% 83%
Node js 19.22 1,000,628 711 61.94 80% 82% 82% 79%
Go

go version go1.14 linux/amd64

Node js

v14.2.0