The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Dart versus Node js

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 cpu seconds, less gz source code.

fannkuch-redux
source mem gz cpu
Dart #3 10,284 546 42.56
Node js #5 85,336 1313 44.58
Dart #5 10,628 1220 49.09
Dart #2 10,328 504 62.04
n-body
source mem gz cpu
Dart #6 9,996 1311 7.07
Node js #6 41,056 1268 8.43
Dart #2 10,280 1266 9.45
Dart #3 10,176 1407 11.70
spectral-norm
source mem gz cpu
Dart 9,164 461 5.32
Node js #7 41,524 414 5.38
Node js 41,668 319 5.45
Dart #6 22,384 1196 5.69
Node js #6 90,932 999 6.20
Dart #2 31,228 1168 12.58
mandelbrot
source mem gz cpu
Dart #3 18,684 614 15.59
Node js #3 118,180 1122 16.00
Dart #4 42,996 982 16.37
Node js #2 48,484 416 28.21
Dart #2 18,396 488 29.86
Dart #6 84,364 907 31.24
Node js 43,580 373 65.26
Dart 18,176 454 148.96
pidigits
source mem gz cpu
Node js #4 45,096 481 1.14
Dart #2 42,932 489 3.17
Dart #3 42,832 488 3.60
Node js #2 72,556 397 13.11
Node js #3 72,536 424 13.22
regex-redux
source mem gz cpu
Node js #3 1,045,556 668 5.97
Node js #4 985,940 463 6.24
Dart #4 465,960 511 16.37
Dart #5 491,284 706 16.41
Dart #3 522,196 1055 18.31
Dart #2 491,456 663 18.54
fasta
source mem gz cpu
Dart 17,616 1402 4.21
Node js #5 101,844 2047 6.38
Dart #3 180,480 1108 7.16
Dart #4 255,076 1303 7.42
Dart #5 250,648 1485 7.79
Dart #2 18,688 1068 15.33
Node js 50,304 809 37.60
k-nucleotide
source mem gz cpu
Node js #3 419,748 1812 43.70
Dart #3 237,896 1520 45.73
Node js #2 72,156 935 112.88
Node js 621,752 1008 115.69
Dart 346,172 623 556.53
reverse-complement
source mem gz cpu
Node js #7 1,556,168 1480 4.97
Dart #5 2,001,632 933 11.25
Node js #2 727,572 1221 16.87
Dart 1,008,688 642 18.36
Dart #3 6,467,208 563 56.61
Dart #4 1,037,088 880 91.27
Dart #2 6,468,920 568 95.63
binary-trees
source mem gz cpu
Dart #6 419,868 482 16.68
Node js #6 1,322,340 744 27.83
Dart #7 493,372 863 30.02
Dart #4 485,304 1387 30.02
Dart #5 479,012 1016 33.05
Node js 1,173,028 711 36.72
Node js #7 1,107,220 451 40.72
Dart #3 863,324 1212 44.18
Dart

Dart SDK version: 2.17.0 (stable)
Mon May 9 10:36:47 2022

Node js

v18.1.0