The Computer Language
24.09 Benchmarks Game

fannkuch-redux

First a few simple programs.

Then optimisations, multicore parallelism, [pdf] vector parallelism.

Last hand-written vector instructions and "unsafe" programs.

  source secs mem gz    
  Swift 35.11 19,440 457    
  Classic Fortran 38.89 19,644 608    
  OCaml #2 45.76 19,676 478    
 
 
 
× source secs mem gz cpu secs cpu load
1.0 Rust #4 6.93 19,804 1026 27.20 100% 99% 94% 99%
1.0 C gcc #5 6.98 19,684 917 27.28 94% 100% 99% 99%
1.1 Rust #5 7.66 19,804 1023 29.90 99% 94% 98% 98%
1.2 C++ g++ #5 8.00 19,712 987 31.23 98% 93% 100% 98%
1.2 Go #3 8.34 19,808 975 33.31 100% 99% 100% 100%
1.2 Chapel #2 8.38 19,860 737 33.41 100% 99% 99% 99%
1.2 F# .NET #6 8.38 31,568 1103 32.60 97% 98% 99% 93%
1.3 C# .NET #6 8.67 30,968 1075 34.39 99% 99% 99% 99%
1.3 OCaml #3 8.80 19,676 1024 35.18 99% 99% 99% 100%
1.3 OCaml #4 9.13 19,676 1018 36.46 99% 99% 99% 100%
1.3 Ada 2012 GNAT #3 9.14 19,568 2120 36.40 99% 99% 99% 99%
1.3 Rust #2 9.15 19,804 1198 35.90 100% 94% 99% 98%
1.3 C++ g++ #4 9.26 19,688 1445 36.31 100% 98% 99% 94%
1.4 Lisp SBCL #4 9.39 32,256 1531 36.91 99% 98% 96% 98%
1.4 C++ g++ #2 9.55 19,712 1446 37.53 94% 99% 98% 100%
1.4 Haskell GHC #3 9.60 19,860 1184 37.63 98% 94% 99% 100%
1.4 F# .NET #5 9.75 36,612 927 38.38 97% 97% 99% 98%
1.4 Java  10.04 42,708 1289 39.47 97% 99% 99% 98%
1.5 Classic Fortran #3 10.34 19,644 1164 41.22 99% 99% 99% 100%
1.5 Free Pascal 10.62 19,604 1057 42.30 99% 99% 99% 99%
1.6 C++ g++ 10.87 19,712 1065 42.73 99% 99% 98% 96%
1.6 C# .NET #3 11.34 31,120 1117 44.67 98% 98% 98% 99%
1.7 Node.js #5 11.47 94,880 1320 45.57 99% 99% 99% 99%
1.8 Go 12.29 19,808 906 49.04 100% 99% 100% 99%
1.8 Go #2 12.35 19,808 903 49.32 99% 99% 100% 99%
1.8 Dart #5 12.55 19,808 1227 49.89 99% 99% 99% 99%
4.3 C# .NET #2 29.59 30,836 584 29.58 99% 0% 0% 0%
4.5 Lisp SBCL #5 30.84 52,736 689 30.83 0% 0% 0% 100%
5.1 Swift 35.11 19,440 457 35.11 0% 100% 0% 0%
5.2 Lisp SBCL #3 36.25 32,256 833 36.24 15% 84% 0% 0%
5.3 C++ g++ #3 36.90 19,688 600 36.90 0% 100% 0% 0%
5.6 Classic Fortran 38.89 19,644 608 38.88 100% 0% 0% 0%
5.6 Julia 38.97 244,240 441 39.05 0% 0% 100% 0%
5.7 C gcc #3 39.56 19,684 574 39.56 100% 0% 0% 0%
5.9 Java #3 40.81 42,920 1264 40.91 99% 0% 0% 0%
5.9 Dart #3 40.86 19,936 553 40.86 0% 100% 0% 0%
6.1 C gcc 42.31 19,684 514 42.31 100% 0% 0% 0%
6.4 Java #2 44.33 41,012 520 44.38 100% 0% 0% 0%
6.6 OCaml #2 45.76 19,676 478 45.76 5% 94% 0% 0%
6.9 Lisp SBCL #2 48.01 23,040 525 48.01 0% 0% 0% 100%
7.4 OCaml 51.25 19,676 529 51.25 0% 0% 100% 0%
8.1 PHP #3 56.00 19,804 1166 222.44 99% 99% 100% 99%
8.1 PHP #4 56.07 19,804 1168 222.96 98% 99% 99% 100%
8.4 Dart #2 57.88 19,808 510 57.88 100% 0% 0% 0%
9.5 Erlang 65.58 55,108 1044 258.75 99% 98% 99% 97%
14 F# .NET 93.67 49,764 558 99.25 2% 6% 60% 37%
20 Ruby yjit #2 139.05 21,120 1462 8 min 91% 99% 97% 85%
27 PHP #2 190.06 19,804 447 190.05 4% 95% 0% 0%
33 PHP 225.15 19,804 488 225.14 0% 0% 100% 0%
42 Python 3 #4 291.14 19,652 960 19 min 99% 97% 99% 99%
42 Haskell GHC 292.65 19,804 567 298.25 25% 16% 36% 23%
64 Perl #2 7 min 19,684 577 29 min 100% 99% 99% 99%
66 VW Smalltalk 7 min 55,040 916 7 min 0% 100% 0% 0%
87 Lua 10 min 19,652 469 10 min 100% 0% 0% 0%
129 Python 3 #6 14 min 19,652 391 14 min 100% 0% 0% 0%
195 Ruby yjit 22 min 20,864 391 22 min 100% 0% 0% 0%
197 Perl #3 22 min 19,684 433 22 min 0% 100% 0% 0%
261 Perl 30 min 19,684 463 30 min 0% 100% 0% 0%
627 Matz's Ruby #2 1h 12 min 19,856 1462 4h 38 min 99% 93% 94% 97%
  Matz's Ruby 3h 12 min 19,856 391 3h 12 min 0% 0% 100% 0%
C# .NET #7 Bad Output
 
 
  hand-written vector instructions | "unsafe"
 
× source secs mem gz cpu secs cpu load
0.3 C gcc #6 2.17 19,684 1582 8.56 97% 99% 99% 99%
0.3 C# .NET #8 2.22 31,568 1485 8.64 99% 96% 97% 97%
0.5 C++ g++ #6 3.26 19,712 1535 12.91 97% 100% 99% 99%
0.6 Rust #6 3.88 19,804 1260 15.27 100% 98% 97% 97%
1.2 Julia #3 8.07 259,604 896 30.57 93% 94% 96% 96%
1.2 Swift #3 8.32 19,440 1103 32.99 99% 100% 98% 98%
1.2 Julia #2 8.39 265,264 1077 31.43 94% 94% 94% 91%
1.3 C# .NET #9 9.08 32,348 1232 36.00 99% 99% 99% 99%
1.5 Haskell GHC #5 10.31 19,804 850 40.79 99% 96% 100% 99%
1.6 C gcc #2 10.85 19,684 1563 42.52 99% 94% 98% 100%
1.7 Haskell GHC #6 11.92 23,424 1123 44.44 91% 98% 92% 92%
2.0 C++ g++ #7 13.96 19,712 1156 13.96 0% 0% 100% 0%
2.1 C gcc #4 14.21 19,684 1190 14.21 100% 0% 0% 0%
4.3 Racket #3 29.58 77,848 1109 114.62 97% 99% 91% 99%
5.8 Haskell GHC #4 40.07 19,804 671 40.59 83% 0% 0% 16%
6.3 Haskell GHC #2 43.84 24,192 815 130.50 76% 75% 75% 74%
16 Racket #2 113.58 76,220 916 113.57 1% 2% 100% 0%
22 Racket 150.36 74,524 655 150.36 0% 0% 100% 0%