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.98 849,192 408 12.82 17% 37% 3% 52%
Java 10.50 571,736 929 31.63 71% 73% 66% 92%
n-body
source secs mem gz cpu cpu load
Node js 26.28 33,292 1297 26.28 0% 0% 100% 0%
Java 22.00 32,272 1489 22.07 1% 0% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Node js 18.18 632,008 748 65.32 88% 94% 95% 83%
Java 6.96 76,316 796 27.06 97% 97% 97% 97%
binary-trees
source secs mem gz cpu cpu load
Node js 23.78 346,456 431 39.43 46% 35% 28% 58%
Java 8.39 960,056 835 27.39 81% 85% 74% 90%
spectral-norm
source secs mem gz cpu cpu load
Node js 15.81 31,788 381 15.80 0% 1% 100% 0%
Java 4.26 33,572 950 16.39 96% 96% 98% 95%
fasta
source secs mem gz cpu cpu load
Node js 9.24 36,192 1785 9.28 0% 0% 1% 100%
Java 2.32 42,212 2473 6.30 65% 85% 47% 76%
fannkuch-redux
source secs mem gz cpu cpu load
Node js 80.72 30,912 473 80.70 49% 0% 1% 51%
Java 17.98 31,180 1282 70.57 97% 99% 97% 99%
pidigits
source secs mem gz cpu cpu load
Node js 14.27 63,108 530 14.34 65% 1% 1% 36%
Java 3.13 37,376 938 3.35 1% 98% 4% 6%
reverse-complement
source secs mem gz cpu cpu load
Node js 16.41 709,792 1103 17.86 34% 8% 38% 29%
Java 3.32 609,712 2183 7.54 64% 44% 44% 76%
k-nucleotide
source secs mem gz cpu cpu load
Node js 64.78 1,822,300 935 137.52 95% 70% 78% 69%
Java 8.74 470,116 1812 27.12 71% 73% 93% 74%
Node js

v11.3.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)