The Computer Language
24.11 Benchmarks Game

Node.js versus Dart fastest performance

How the programs are written matters! Always look at the source code.

If the fastest programs are * hand-written vector instructions, does the host language matter? You might be more interested in the less optimised programs — more seconds, less gz source code.

fannkuch-redux
source secs mem gz cpu secs
Dart #3 40.88 19,620 553 40.88
Node.js #5 11.05 101,616 1320 43.85
Dart #5 12.55 19,620 1227 49.81
Dart #2 57.81 19,620 510 57.80
Node.js #8 58.06 51,484 452 58.05
Dart #8 70.09 19,620 508 70.09
n-body
source secs mem gz cpu secs
Dart #6 6.97 19,712 1318 6.97
Dart #8 7.49 19,712 1268 7.49
Node.js #6 8.55 54,100 1274 8.56
Dart #2 8.91 19,712 1273 8.91
Node.js #8 9.58 53,716 1173 9.59
Dart #3 11.08 19,712 1413 11.08
spectral-norm
source secs mem gz cpu secs
Dart 5.33 19,724 468 5.33
Node.js #7 5.36 53,724 420 5.37
Node.js 5.37 54,808 326 5.39
Dart #6 1.45 19,724 1202 5.70
Node.js #6 1.56 107,280 1002 5.99
Node.js #8 6.49 54,632 355 6.50
Dart #8 10.88 19,436 422 10.88
Dart #2 3.26 23,772 1173 12.61
mandelbrot
source secs mem gz cpu secs
Dart #3 15.64 19,712 620 15.64
Node.js #3 4.00 135,476 1128 15.83
Dart #4 4.19 71,752 988 16.29
Node.js #2 29.36 61,144 422 29.39
Dart #2 29.86 19,712 494 29.85
Dart #6 11.87 80,176 914 31.84
Node.js 70.55 55,900 380 70.64
Node.js #8 72.49 56,116 412 72.52
Dart 137.97 19,712 462 137.92
Dart #8 202.26 19,492 471 202.28
fasta
source secs mem gz cpu secs
Dart #3 4.17 490,192 1114 4.18
Dart #4 4.19 403,212 1307 4.30
Dart 4.44 19,620 1407 4.44
Dart #5 3.07 403,208 1489 4.90
* Node.js #5 2.52 112,392 2050 7.08
Dart #2 14.46 19,620 1075 14.46
Node.js #8 18.42 61,784 742 18.61
Dart #8 36.03 19,780 824 36.09
Node.js 38.40 58,880 815 38.77
k-nucleotide
source secs mem gz cpu secs
Node.js #3 16.48 436,784 1817 44.54
Dart #3 18.50 221,428 1526 55.76
Node.js #2 38.24 486,844 941 112.58
Node.js 39.98 356,716 1011 117.63
Dart 551.78 464,108 628 551.97
Dart #8 555.11 524,768 676 555.57
Node.js #8   Bad Output  
reverse-complement
source secs mem gz cpu secs
Dart #5 8.95 1,994,744 942 12.12
* Node.js #2 15.44 731,804 1228 16.09
Dart 19.20 1,001,112 651 20.10
Dart #3 58.10 6,394,552 571 64.47
Dart #2 91.20 6,406,136 575 99.37
* Node.js #7   Bad Output  
Dart #4   Bad Output  
binary-trees
source secs mem gz cpu secs
Dart #6 11.70 445,528 488 15.84
Dart #8 14.10 432,452 536 18.56
Dart #4 11.56 562,668 1394 24.55
Dart #7 10.93 674,712 869 24.84
Node.js #7 16.02 1,070,260 458 28.26
Dart #5 12.60 474,784 1023 28.93
Node.js #6 8.60 1,250,816 752 30.68
Node.js #8 19.86 1,334,104 521 32.74
Node.js 8.92 1,405,276 717 33.60
Dart #3 21.25 5,400,800 1219 53.12
pidigits
source secs mem gz cpu secs
Node.js #4 1.11 59,620 487 1.14
Dart #2 2.85 19,780 496 2.89
Dart #3 3.23 19,780 495 3.27
Node.js #2 12.16 87,228 405 12.19
Node.js #3 12.25 87,708 431 12.28
regex-redux
source secs mem gz cpu secs
Node.js #3 4.27 796,080 675 5.30
Node.js #4 5.41 978,952 471 5.56
Dart #4 13.48 472,972 513 13.62
Dart #5 8.62 521,032 710 13.85
Dart #3 9.96 563,160 1061 17.39
Dart #2 17.14 515,328 667 17.70
Node.js

v23.0.0

Dart

Dart SDK version: 3.5.4 (stable)
Wed Oct 16 16:18:51 2024