The Q6600
Benchmarks Game

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

regex-redux
source secs mem gz busy cpu load
Node js 9.53 756,856 668 12.74 71% 24% 13% 26%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
mandelbrot
source secs mem gz busy cpu load
Node js 6.84 88,016 1122 26.99 98% 98% 99% 98%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
spectral-norm
source secs mem gz busy cpu load
Node js 4.40 61,768 999 16.63 93% 97% 95% 93%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
n-body
source secs mem gz busy cpu load
Node js 26.28 35,412 1268 28.03 2% 0% 4% 100%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
fannkuch-redux
source secs mem gz busy cpu load
Node js 19.48 58,152 1313 77.05 99% 99% 99% 99%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
reverse-complement
source secs mem gz busy cpu load
Node js 4.10 1,340,368 1480 8.58 52% 56% 73% 28%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
pidigits
source secs mem gz busy cpu load
Node js 2.58 36,368 599 2.97 100% 6% 7% 2%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
fasta
source secs mem gz busy cpu load
Node js 3.62 67,488 2047 10.61 72% 75% 72% 74%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
binary-trees
source secs mem gz busy cpu load
Node js 19.22 1,000,628 711 61.94 80% 82% 82% 79%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
k-nucleotide
source secs mem gz busy cpu load
Node js 26.32 397,472 1812 77.28 74% 71% 62% 87%
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
Node js

v14.2.0

Java

openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)