The Computer Language
Benchmarks Game

Node.js programs versus Java

by benchmark task performance

spectral-norm
secs KB gz cpu cpu load
Node.js 15.78 22,836 368 15.77 1% 0% 1% 100%
Java 16.37 26,876 950 16.36 1% 1% 0% 100%
fannkuch-redux
secs KB gz cpu cpu load
Node.js 86.82 21,052 471 86.80 1% 1% 0% 100%
Java 67.66 26,644 1282 67.63 1% 1% 0% 100%
n-body
secs KB gz cpu cpu load
Node.js 38.42 21,380 1537 38.40 0% 0% 1% 100%
Java 24.33 24,036 1424 24.32 1% 0% 0% 100%
binary-trees
secs KB gz cpu cpu load
Node.js 43.82 478,896 477 43.74 1% 1% 1% 100%
Java 16.35 526,588 584 16.33 1% 1% 0% 100%
mandelbrot
secs KB gz cpu cpu load
Node.js 99.47 904,684 778 99.39 0% 0% 1% 100%
Java 27.19 88,448 796 27.18 1% 0% 1% 100%
fasta
secs KB gz cpu cpu load
Node.js 32.86 170,556 965 32.83 1% 1% 1% 100%
Java 4.81 24,836 1507 4.80 1% 1% 0% 100%
pidigits
secs KB gz cpu cpu load
Node.js 1,940.02 77,372 435 1,937.49 1% 1% 0% 100%
Java 1.61 25,376 938 1.61 3% 0% 0% 100%
fasta-redux
secs KB gz cpu cpu load
  No program contribute your program
Java 0.22 476 1443 0.21 0% 5% 0% 100%
k-nucleotide
secs KB gz cpu cpu load
Node.js   Failed
Java 1.46 49,744 2568 0.90 1% 5% 3% 99%
reverse-complement
secs KB gz cpu cpu load
Node.js   Failed
Java 0.25 472 745 0.25 0% 4% 8% 100%
regex-dna
secs KB gz cpu cpu load
Node.js   Failed
Java 0.73 28,324 1284 0.72 0% 0% 0% 97%
Node.js

v6.0.0

Java

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