The Computer Language
Benchmarks Game

Node js programs versus Java

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Node js 11.18 847,584 408 11.90 11% 9% 76% 12%
Java 10.51 573,972 929 31.30 70% 73% 70% 86%
n-body
source secs mem gz cpu cpu load
Node js 26.35 34,068 1297 26.35 100% 0% 0% 0%
Java 22.17 33,040 1489 22.27 100% 1% 0% 1%
mandelbrot
source secs mem gz cpu cpu load
Node js 17.88 620,584 748 64.33 99% 98% 82% 82%
Java 6.10 76,520 796 23.59 97% 98% 98% 96%
spectral-norm
source secs mem gz cpu cpu load
Node js 15.81 31,964 381 15.81 100% 1% 0% 0%
Java 4.38 35,388 950 16.80 96% 96% 95% 97%
fasta
source secs mem gz cpu cpu load
Node js 9.28 37,104 1785 9.33 0% 100% 1% 0%
Java 2.27 43,628 2473 5.93 51% 75% 57% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Node js 80.68 31,488 473 80.66 0% 57% 43% 0%
Java 18.27 31,820 1282 72.06 99% 99% 98% 98%
binary-trees
source secs mem gz cpu cpu load
Node js 45.41 663,104 440 95.93 43% 80% 45% 45%
Java 8.39 933,808 835 28.28 82% 86% 84% 88%
reverse-complement
source secs mem gz cpu cpu load
Node js 17.37 708,968 1103 18.90 23% 24% 56% 7%
Java 3.15 680,424 2183 7.07 52% 70% 43% 63%
k-nucleotide
source secs mem gz cpu cpu load
Node js 66.72 1,790,732 935 148.98 71% 98% 80% 73%
Java 8.75 385,056 1812 27.09 85% 72% 70% 85%
pidigits
source secs mem gz cpu cpu load
Node js   Failed
Java 0.28 1,028 938 0.36 43% 11% 19% 66%
Node js

v10.0.0

Java

java 10 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)