The Computer Language
Benchmarks Game

Dart versus Node js fastest programs

Back in April 2010, Russ Cox charitably suggested that only fannkuch-redux, fasta, k-nucleotide, mandlebrot, nbody, reverse-complement and spectral-norm were close to fair comparisons. As someone who implemented programming languages, his interest was "measuring the quality of the generated code when both compilers are presented with what amounts to the same program."

Differences in approach - to memory management, parallel programming, regex, arbitrary precision arithmetic, implementation technique - don't fit in that kind-of fair comparison — but we still have to deal with them.

These are only the fastest programs. There may be additional measurements for programs which seem more-like a fair comparison to you. Always look at the source code.

binary-trees
source secs mem gz busy cpu load
Dart 16.27 935,556 1410 44.56 88% 64% 61% 61%
Node js 29.10 593,664 994 95.65 81% 85% 80% 82%
k-nucleotide
source secs mem gz busy cpu load
Dart 35.50 461,700 1502 93.65 85% 86% 45% 48%
Node js 61.19 1,675,796 935 194.31 97% 78% 71% 73%
pidigits
source secs mem gz busy cpu load
Dart 11.29 128,372 500 11.91 2% 2% 3% 98%
Node js 13.56 63,708 530 13.81 20% 0% 0% 81%
regex-redux
source secs mem gz busy cpu load
Dart 8.33 916,268 1041 13.60 24% 31% 87% 21%
Node js 9.98 819,516 668 12.17 8% 17% 42% 55%
n-body
source secs mem gz busy cpu load
Dart 28.20 126,116 1409 28.99 1% 99% 2% 1%
Node js 23.22 33,828 1268 23.54 1% 0% 0% 100%
fasta
source secs mem gz busy cpu load
Dart 8.63 128,924 1403 9.28 99% 2% 2% 5%
Node js 3.41 63,804 2047 9.91 74% 75% 81% 61%
mandelbrot
source secs mem gz busy cpu load
Dart 21.04 176,852 911 57.43 99% 99% 37% 38%
Node js 6.78 82,684 1122 26.65 98% 99% 98% 98%
spectral-norm
source secs mem gz busy cpu load
Dart 16.06 132,012 489 16.75 1% 3% 2% 99%
Node js 4.33 54,732 999 16.62 95% 97% 96% 96%
fannkuch-redux
source secs mem gz busy cpu load
Dart 97.09 130,492 495 98.18 1% 100% 0% 1%
Node js 24.23 53,204 1316 96.12 99% 99% 99% 99%
reverse-complement
source secs mem gz busy cpu load
Dart   Failed
Node js 4.72 1,098,408 1307 11.65 73% 61% 54% 60%
Dart

Dart VM version: 2.4.0 (Wed Jun 19 11:53:45 2019 +0200) on "linux_x64"

Node js

v12.7.0