The Computer Language
Benchmarks Game

Go versus Node js fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? 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 8.30 160,300 1607 31.96 96% 98% 96% 95%
Node js 15.68 397,548 1812 44.40 82% 95% 44% 62%
reverse-complement
source secs mem gz busy cpu load
Go 1.42 1,344,600 1338 2.66 57% 36% 71% 24%
Node js 2.17 1,535,512 1480 4.64 62% 53% 56% 42%
fannkuch-redux
source secs mem gz busy cpu load
Go 7.59 2,064 969 30.31 100% 100% 100% 100%
Node js 11.60 64,024 1313 45.89 99% 99% 99% 99%
fasta
source secs mem gz busy cpu load
Go 1.28 11,276 1404 3.78 65% 86% 81% 65%
Node js 1.89 71,820 2047 6.13 79% 79% 81% 85%
n-body
source secs mem gz busy cpu load
Go 6.38 1,896 1200 6.43 0% 100% 1% 0%
Node js 8.63 36,136 1268 8.67 0% 0% 100% 0%
pidigits
source secs mem gz busy cpu load
Go 1.00 8,952 683 1.04 0% 3% 99% 2%
Node js 1.29 37,068 599 1.36 1% 100% 2% 2%
regex-redux
source secs mem gz busy cpu load
Go 3.94 323,252 810 6.14 74% 30% 19% 33%
Node js 4.64 1,163,148 668 5.83 3% 14% 30% 79%
spectral-norm
source secs mem gz busy cpu load
Go 1.44 2,356 548 5.71 99% 99% 99% 99%
Node js 1.64 67,584 999 6.12 92% 92% 93% 95%
mandelbrot
source secs mem gz busy cpu load
Go 3.75 34,832 894 14.92 100% 99% 99% 100%
Node js 4.03 95,448 1122 15.91 99% 98% 99% 100%
binary-trees
source secs mem gz busy cpu load
Go 12.80 385,036 1017 43.87 85% 87% 85% 86%
Node js 7.52 1,343,968 744 22.37 73% 70% 85% 69%
Go

go version go1.16 linux/amd64

Node js

v16.3.0