The Computer Language
Benchmarks Game

fannkuch-redux

Always look at the source code.

Look at the slower simple sequential programs, and  look at the parallel programs written for multicore, and  look at the low-level programs written for SIMD.

× source secs mem gz busy cpu load
1.0 C gcc #5 8.74 936 910 34.47 100% 95% 100% 100%
1.1 Swift #3 9.98 7,432 1097 39.57 98% 100% 98% 100%
1.2 Ada 2012 GNAT #3 10.26 4,504 2113 40.92 100% 100% 100% 100%
1.2 Julia #3 10.55 190,768 886 39.52 92% 97% 93% 93%
1.2 C++ g++ #5 10.70 1,864 980 42.31 96% 100% 100% 100%
1.3 Rust #5 11.08 872 1016 43.55 99% 94% 100% 100%
1.3 C# .NET Core #9 11.12 32,008 1225 44.12 99% 99% 99% 99%
1.3 Rust #4 11.20 940 1020 43.82 100% 100% 100% 92%
1.3 Rust #3 11.20 940 1020 43.81 100% 100% 100% 92%
1.3 Julia #2 11.66 196,568 1067 43.02 97% 92% 93% 87%
1.4 Lisp SBCL #4 12.12 33,328 1527 47.62 99% 99% 96% 98%
1.4 Intel Fortran #3 12.54 10,916 1158 50.04 100% 100% 100% 100%
1.5 Rust #2 13.32 1,008 1191 52.19 98% 99% 94% 100%
1.7 Go #3 14.75 3,484 969 58.94 100% 100% 100% 100%
1.7 Chapel 15.24 4,488 728 60.69 100% 99% 100% 99%
1.8 C gcc #2 15.55 920 1557 60.97 98% 99% 100% 95%
1.8 C++ g++ #4 16.05 2,040 1439 62.84 100% 93% 100% 98%
1.8 OCaml #4 16.12 19,552 1004 64.43 100% 100% 100% 100%
1.9 OCaml #3 16.33 29,052 1017 65.25 100% 100% 100% 100%
1.9 F# .NET Core #6 16.63 35,740 1097 64.45 93% 98% 97% 100%
2.0 Go 17.13 3,732 900 68.46 100% 100% 100% 100%
2.0 Go #2 17.22 14,508 896 68.79 100% 100% 100% 100%
2.0 C++ g++ #2 17.24 2,128 1440 67.47 99% 100% 99% 93%
2.0 C# .NET Core #6 17.48 31,464 1068 69.55 99% 100% 100% 99%
2.0 Node js #5 17.80 58,292 1313 70.33 99% 99% 99% 98%
2.0 Java  17.89 33,352 1282 70.90 98% 100% 100% 99%
2.1 Free Pascal 17.95 1,860 1050 71.73 100% 100% 100% 100%
2.1 C++ g++ 18.22 1,900 1059 71.04 99% 94% 97% 100%
2.1 Haskell GHC #5 18.37 4,352 842 72.54 96% 100% 100% 100%
2.1 Haskell GHC #6 18.58 4,336 1113 72.78 99% 96% 97% 100%
2.3 F# .NET Core #5 19.91 35,644 912 77.90 99% 95% 99% 98%
2.9 C gcc #4 25.62 840 1183 25.85 100% 0% 0% 1%
3.0 C++ g++ #7 26.55 824 1150 27.26 2% 100% 0% 1%
5.5 Lisp SBCL #5 48.05 50,080 681 48.56 100% 0% 1% 0%
5.7 Julia 49.55 169,616 434 50.41 100% 1% 0% 0%
6.3 Lisp SBCL #3 54.93 33,316 826 55.47 100% 0% 0% 1%
7.1 C gcc #3 62.41 776 567 63.06 0% 0% 42% 58%
7.2 Java #3 62.86 33,152 1257 63.51 100% 0% 1% 0%
7.4 Intel Fortran 64.51 1,924 599 65.31 39% 0% 0% 62%
7.8 Swift 68.48 6,708 451 69.17 1% 0% 0% 100%
8.0 C gcc 69.60 840 508 70.88 38% 49% 1% 14%
8.1 Haskell GHC #4 70.49 3,468 665 280.95 100% 100% 100% 100%
8.2 C++ g++ #3 71.91 780 593 72.40 76% 0% 0% 24%
8.7 Java #2 76.09 33,896 514 77.67 100% 0% 1% 1%
9.4 Racket #3 82.28 34,804 1101 5 min 99% 96% 100% 100%
9.8 Erlang HiPE 85.39 24,184 1038 5 min 97% 100% 100% 100%
9.8 OCaml #2 85.92 2,868 473 86.87 0% 32% 68% 1%
10 OCaml 90.12 2,824 524 91.03 0% 1% 100% 0%
11 Lisp SBCL #2 92.30 19,280 517 93.27 100% 0% 1% 0%
11 Dart #2 97.21 113,784 495 98.63 1% 0% 1% 100%
11 Haskell GHC #2 100.03 9,472 808 5 min 75% 75% 75% 76%
24 PHP #3 206.72 22,548 1160 13 min 99% 99% 99% 100%
34 Racket #2 293.56 34,564 908 298.83 47% 23% 31% 1%
35 Ruby #2 5 min 26,680 1444 19 min 100% 91% 98% 97%
37 Racket 5 min 34,740 649 5 min 43% 20% 26% 13%
52 Haskell GHC 7 min 6,080 559 9 min 56% 39% 9% 20%
61 Python 3 #4 8 min 47,236 950 35 min 99% 97% 99% 99%
64 Perl #2 9 min 11,872 570 37 min 100% 100% 100% 100%
82 VW Smalltalk 11 min 55,084 916 12 min 33% 13% 55% 0%
89 PHP #2 12 min 7,808 441 13 min 0% 35% 65% 1%
144 PHP 21 min 7,980 482 21 min 29% 39% 30% 3%
151 Lua 21 min 1,340 462 22 min 0% 100% 1% 1%
199 Ruby 28 min 25,520 384 29 min 26% 22% 52% 1%
200 Perl #3 29 min 4,948 427 29 min 95% 1% 1% 5%
230 Python 3 #6 33 min 7,552 385 33 min 17% 49% 32% 2%
261 Perl 38 min 4,896 457 38 min 67% 16% 13% 6%
  Matz's Ruby #2 1h 51 min 19,320 1444 7h 12 min 97% 99% 97% 96%
  Matz's Ruby 5h 30 min 4,736 384 5h 34 min 23% 8% 29% 40%
Haskell GHC #3 Make Error