The Computer Language
25.02 Benchmarks Game

Dart aot versus Dart

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

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

fannkuch-redux      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #3 40.60 40.62 8,757 553 4.86
Dart #5 11.70 45.58—46.87 193,970 1227 3.14
Dart #3 45.20 45.44 188,518 553 1.96
Dart aot #5 11.93 47.42 10,613 1227 6.31
Dart aot #2 57.48 57.48 8,950 510 4.72
Dart aot #8 60.61 60.61 8,954 508 4.86
Dart #2 61.90 62.24—62.32 187,904 510 3.11
Dart #8 66.90 67.21 187,523 508 1.98
n-body      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #6 6.79 6.79 8,950 1318 6.09
Dart aot #8 7.25 7.25 9,093 1268 6.09
Dart #6 7.37 7.59—7.65 191,238 1318 2.05
Dart #8 7.74 7.99 191,283 1268 1.99
Dart aot #2 8.63 8.64 8,950 1273 6.16
Dart aot #3 9.91 9.91 8,954 1413 4.71
Dart #2 11.01 11.24—11.30 191,996 1273 3.15
Dart #3 11.52 11.81—12.07 189,915 1413 3.29
spectral-norm      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot 5.34 5.34 9,060 468 6.10
Dart aot #6 1.46 5.71 19,603 1202 5.03
Dart aot #2 1.54 5.72 20,505 1173 5.00
Dart 5.85 6.08 187,601 468 1.92
Dart #6 2.06 6.62—6.67 193,884 1202 3.18
Dart #2 2.20 9.37—10.85 197,677 1173 3.15
Dart aot #8 8.38 8.38 9,994 422 6.19
Dart #8 8.89 9.12 189,723 422 3.23
mandelbrot      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #3 15.69 15.70 17,887 620 6.13
Dart #3 16.31 16.56 192,242 620 3.18
Dart aot #4 4.29 16.82 45,175 988 4.94
Dart #4 4.88 17.67—17.74 215,974 988 2.03
Dart aot #2 30.25 30.26 11,768 494 4.84
Dart aot #6 11.74 31.45 84,529 914 6.27
Dart #6 12.39 32.52 257,597 914 1.94
Dart #2 32.55 32.79 193,303 494 1.99
Dart aot 119.40 122.73—125.51 11,932 462 4.83
Dart 120.84 122.39—125.27 194,003 462 3.16
Dart #8 121.07 122.67—126.80 195,174 471 3.17
Dart aot #8 178.87 181.69—186.69 11,768 471 4.82
fasta      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #4 3.99 4.10 417,403 1307 5.17
Dart aot 4.36 4.36 11,575 1407 6.04
Dart aot #3 4.38 4.41 331,346 1114 6.10
Dart aot #5 2.89 4.78 484,553 1489 5.13
Dart 5.54 5.81 193,491 1407 2.00
Dart #3 5.67 5.95—6.00 501,887 1114 3.17
Dart #4 5.63 6.00—6.10 654,610 1307 3.18
Dart #5 4.39 6.98—7.04 592,372 1489 3.14
Dart aot #2 15.22 15.48—16.06 11,731 1075 4.97
Dart #2 16.75 17.25—17.74 192,102 1075 2.06
Dart aot #8 28.31 28.61—29.04 11,747 824 6.20
Dart #8 30.02 30.52—30.89 190,636 824 2.18
k-nucleotide      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #3 14.76 41.19—41.69 221,225 1526 6.45
Dart #3 17.61 45.42—45.90 394,838 1526 3.35
Dart aot #8 561.70 565.05—569.06 536,519 676 6.13
Dart aot 568.53 570.96—573.66 479,850 628 4.96
Dart #8 578.51 582.42—587.20 675,566 676 3.12
Dart 579.34 581.83—588.06 621,564 628 2.10
reverse-complement      
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart #8 6.38 7.45—7.51 1,208,234 651 3.17
Dart #5 5.10 8.34—8.42 2,228,199 942 2.02
Dart aot #5 8.55 11.60—11.67 2,049,769 942 5.19
Dart aot #8 17.41 18.14 1,029,464 651 5.01
Dart #3 50.57 57.17—57.50 6,677,279 571 3.24
Dart aot #3 63.21 71.74—72.02 6,642,663 571 6.32
Dart #2 73.68 86.32—87.02 6,767,043 575 1.74
Dart aot #2 103.48 118.17—118.81 6,579,233 575 4.87
Dart aot #4   Bad Output  
Dart #4   Bad Output  
binary-trees      [ Contentious. Different approaches. ]
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #6 11.72 16.17—16.31 474,780 488 4.72
Dart #6 14.01 20.19—20.69 668,189 488 3.12
Dart aot #7 9.57 23.83—24.70 635,625 869 4.91
Dart aot #4 10.24 24.69—25.33 692,199 1394 4.94
Dart aot #5 12.17 30.07—30.48 524,239 1023 6.14
Dart #4 12.31 37.05—40.89 2,266,018 1394 0.71
Dart #7 13.04 39.21—45.69 2,902,909 869 3.09
Dart #5 13.96 46.40—52.81 1,523,491 1023 2.08
Dart aot #3 17.52 57.53—62.81 4,337,738 1219 6.15
Dart #3 18.77 59.33—66.12 2,890,433 1219 3.09
pidigits      [ Contentious. Different libraries. ]
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart aot #2 2.86 2.92 18,436 496 4.91
Dart aot #3 3.23 3.30 18,416 495 4.85
Dart #2 3.39 3.70 192,287 496 3.29
Dart #3 3.87 4.19 193,638 495 3.27
regex-redux      [ Contentious. Different libraries. ]
  elapsed Mean or 95% CI      
source secs cpu secs mem gz make
Dart #4 5.91 6.51—6.56 637,043 513 3.35
Dart #5 4.63 6.94—6.98 728,101 710 3.20
Dart #3 5.45 7.38—7.44 678,941 1061 1.94
Dart #2 6.84 8.09—8.23 590,086 667 1.98
Dart aot #4 14.55 15.13—15.93 404,128 513 5.00
Dart aot #5 9.56 15.50—16.33 484,794 710 6.27
Dart aot #3 10.05 17.68—17.95 509,993 1061 6.37
Dart aot #2 17.05 18.03—18.47 423,469 667 4.94
Dart aot

Dart SDK version: 3.7.0 (stable)
Wed Feb 5 04:53:58 2025

Dart

Dart SDK version: 3.7.0 (stable)
Wed Feb 5 04:53:58 2025