The Computer Language
Benchmarks Game

Node.js programs versus Java

by benchmark task performance

regex-dna
source secs KB gz cpu cpu load
Node.js 2.61 414,020 445 2.60 0% 1% 2% 100%
Java 11.41 699,176 1085 11.39 1% 1% 0% 100%
spectral-norm
source secs KB gz cpu cpu load
Node.js 15.78 22,216 425 15.77 0% 1% 0% 100%
Java 16.30 23,872 950 16.29 1% 0% 1% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Node.js 78.01 20,576 473 77.98 0% 3% 2% 100%
Java 67.56 23,480 1282 67.53 1% 1% 1% 100%
n-body
source secs KB gz cpu cpu load
Node.js 37.41 21,052 1297 37.40 0% 1% 1% 100%
Java 24.07 23,184 1430 24.06 1% 1% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Node.js 3.81 252,812 1088 3.80 0% 1% 1% 100%
Java 1.79 521,988 745 1.78 1% 2% 2% 100%
binary-trees
source secs KB gz cpu cpu load
Node.js 43.73 478,656 477 43.66 1% 1% 1% 100%
Java 16.53 511,692 584 16.51 1% 1% 0% 100%
fasta
source secs KB gz cpu cpu load
Node.js 13.72 24,300 1101 13.71 0% 1% 1% 100%
Java 4.77 23,400 1507 4.76 1% 1% 1% 100%
mandelbrot
source secs KB gz cpu cpu load
Node.js 98.73 800,816 778 98.65 0% 1% 1% 100%
Java 27.41 55,556 796 27.40 1% 0% 1% 100%
pidigits
source secs KB gz cpu cpu load
Node.js 21.08 1,315,104 464 21.04 0% 1% 1% 100%
Java 4.14 25,988 938 4.13 1% 1% 0% 100%
fasta-redux
source secs KB gz cpu cpu load
Node.js 10.10 24,604 1188 10.09 0% 1% 1% 100%
Java 1.89 23,120 1443 1.88 2% 2% 0% 100%
k-nucleotide
source secs KB gz cpu cpu load
Node.js 201.01 1,575,844 904 142.56 0% 1% 1% 100%
Java 36.57 512,948 1802 36.54 1% 0% 0% 100%
Node.js

v6.2.1

Java

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) Server VM (build 25.92-b14, mixed mode)