The Computer Language
Benchmarks Game

Node js versus Java fastest programs

by faster benchmark performance

regex-redux
source secs mem gz cpu cpu load
Node js 11.85 884,848 408 12.70 71% 23% 12% 3%
Java 10.52 637,380 929 31.89 75% 80% 77% 72%
n-body
source secs mem gz cpu cpu load
Node js 26.35 33,228 1297 26.35 1% 0% 100% 0%
Java 22.00 32,496 1489 22.07 1% 100% 0% 1%
mandelbrot
source secs mem gz cpu cpu load
Node js 18.04 612,540 748 64.71 98% 84% 97% 80%
Java 6.96 76,748 796 27.07 98% 98% 96% 98%
binary-trees
source secs mem gz cpu cpu load
Node js 23.46 355,612 431 39.77 68% 33% 37% 33%
Java 8.28 982,224 835 27.19 79% 86% 83% 83%
spectral-norm
source secs mem gz cpu cpu load
Node js 15.80 31,296 381 15.80 1% 0% 0% 100%
Java 4.27 32,960 950 16.41 95% 97% 98% 96%
fasta
source secs mem gz cpu cpu load
Node js 9.43 36,744 1785 9.48 93% 8% 0% 0%
Java 2.32 42,556 2473 6.24 73% 85% 49% 63%
fannkuch-redux
source secs mem gz cpu cpu load
Node js 80.78 31,176 473 80.76 0% 0% 1% 100%
Java 17.91 31,560 1282 70.25 99% 98% 99% 97%
pidigits
source secs mem gz cpu cpu load
Node js 14.47 62,316 530 14.53 13% 1% 1% 87%
Java 3.13 37,324 938 3.35 98% 5% 3% 3%
reverse-complement
source secs mem gz cpu cpu load
Node js 16.92 707,536 1103 18.45 19% 41% 5% 45%
Java 3.31 626,956 2183 7.44 56% 60% 83% 45%
k-nucleotide
source secs mem gz cpu cpu load
Node js 62.94 1,858,960 935 133.33 84% 76% 78% 70%
Java 8.66 385,768 1812 26.52 76% 81% 74% 76%
Node js

v10.7.0

Java

openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)