The Computer Language
Benchmarks Game

Clojure programs versus Node.js

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
Clojure 13.81 615,132 750 45.65 85% 83% 88% 76%
Node.js 55.64 895,396 477 56.61 3% 52% 43% 5%
fannkuch-redux
source secs mem gz cpu cpu load
Clojure 19.84 72,936 1491 76.27 99% 96% 95% 95%
Node.js 78.41 27,192 473 78.39 1% 1% 100% 1%
spectral-norm
source secs mem gz cpu cpu load
Clojure 5.23 63,380 918 18.38 85% 87% 86% 95%
Node.js 15.77 28,804 425 15.77 1% 0% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Clojure 30.42 1,012,240 3030 98.48 84% 88% 76% 77%
Node.js 60.73 2,095,052 904 151.74 96% 84% 84% 83%
mandelbrot
source secs mem gz cpu cpu load
Clojure 8.94 156,448 1195 31.73 88% 88% 89% 91%
Node.js 17.49 564,704 778 62.77 84% 84% 96% 97%
fasta
source secs mem gz cpu cpu load
Clojure 6.49 71,088 1653 7.80 13% 88% 9% 13%
Node.js 9.45 31,892 1745 9.46 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Clojure 2.65 579,024 727 4.05 55% 20% 58% 23%
Node.js 3.68 245,496 1088 3.93 4% 4% 98% 2%
n-body
source secs mem gz cpu cpu load
Clojure 26.36 80,540 2162 27.52 2% 2% 97% 4%
Node.js 27.82 28,208 1297 27.81 1% 0% 1% 100%
regex-redux
source secs mem gz cpu cpu load
Clojure 25.10 933,524 719 45.68 55% 58% 24% 47%
Node.js 4.02 507,480 452 4.02 0% 1% 100% 0%
pidigits
source secs mem gz cpu cpu load
Clojure 1.63 133,968 1794 3.11 60% 64% 50% 20%
Node.js   Bad Output
Clojure

Clojure 1.8.0

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

Node.js

v7.6.0