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 7.45 692 910 29.11 93% 100% 100% 98%
1.0 Swift #3 7.46 7,512 1097 29.57 100% 98% 98% 100%
1.0 Rust #5 7.54 1,012 1016 29.62 95% 98% 100% 100%
1.0 Rust #3 7.69 1,012 1020 30.33 99% 95% 100% 100%
1.0 Rust #4 7.74 1,016 1020 30.37 94% 98% 100% 100%
1.1 C++ g++ #5 7.92 1,700 980 30.88 100% 99% 98% 93%
1.1 Julia #2 7.94 197,768 1067 29.99 94% 95% 94% 95%
1.1 C# .NET Core #9 8.26 30,568 1225 32.77 99% 99% 99% 99%
1.1 Go #3 8.28 2,432 969 33.06 100% 100% 100% 100%
1.1 Julia #3 8.38 191,832 886 32.00 96% 97% 94% 95%
1.1 OCaml #4 8.51 19,400 1004 33.97 100% 100% 100% 100%
1.2 Ada 2012 GNAT #3 8.63 4,360 2113 34.34 99% 99% 100% 99%
1.2 OCaml #3 8.69 22,296 1017 34.71 100% 100% 100% 100%
1.2 F# .NET Core #6 8.91 34,216 1097 34.78 98% 99% 99% 94%
1.3 Chapel #2 9.39 4,408 731 37.47 100% 100% 100% 100%
1.3 Lisp SBCL #4 9.57 32,328 1527 37.43 99% 95% 98% 99%
1.3 C# .NET Core #6 9.58 29,808 1068 38.06 99% 99% 100% 99%
1.3 Java  9.94 34,188 1282 39.21 99% 98% 99% 97%
1.3 Intel Fortran #3 10.05 10,972 1158 40.10 100% 100% 100% 100%
1.4 Rust #2 10.09 820 1191 39.41 99% 94% 100% 98%
1.4 Haskell GHC #6 10.22 4,148 1113 40.27 100% 99% 100% 95%
1.4 Free Pascal 10.57 1,840 1050 42.21 100% 100% 100% 100%
1.4 C++ g++ #4 10.64 1,900 1439 41.88 95% 100% 98% 100%
1.5 F# .NET Core #5 10.84 33,616 912 42.09 97% 97% 95% 99%
1.5 C++ g++ 10.87 1,780 1059 43.00 99% 97% 100% 100%
1.5 C gcc #2 10.87 764 1557 42.86 97% 100% 98% 99%
1.5 C++ g++ #2 11.01 1,884 1440 43.27 98% 95% 100% 100%
1.5 Go 11.26 3,432 900 45.01 100% 100% 100% 100%
1.5 Go #2 11.32 13,480 896 45.22 100% 100% 100% 100%
1.5 Node js #5 11.54 56,856 1313 45.73 99% 99% 99% 99%
1.6 Haskell GHC #5 12.02 4,344 842 47.65 100% 100% 97% 100%
1.9 C gcc #4 13.93 592 1183 14.35 1% 0% 100% 1%
1.9 C++ g++ #7 14.15 596 1150 14.54 1% 0% 1% 100%
4.1 Lisp SBCL #5 30.90 42,324 681 31.05 0% 0% 100% 0%
4.5 Julia 33.67 167,688 434 34.17 1% 0% 100% 0%
4.9 Lisp SBCL #3 36.31 32,040 826 36.46 100% 0% 0% 0%
5.3 Intel Fortran 39.12 1,904 599 39.23 0% 100% 0% 0%
5.3 Swift 39.77 6,840 451 40.82 1% 1% 1% 100%
5.4 C gcc #3 39.88 596 567 41.44 100% 1% 2% 2%
5.4 C++ g++ #3 40.54 596 593 41.84 100% 1% 1% 2%
5.5 Java #3 41.24 33,900 1257 43.17 1% 100% 2% 1%
5.5 OCaml #2 41.25 1,668 473 41.65 0% 100% 0% 0%
5.6 C gcc 42.01 592 508 42.19 0% 0% 100% 0%
6.2 Java #2 46.31 34,440 514 46.55 98% 0% 2% 0%
6.2 Haskell GHC #4 46.38 3,476 665 184.56 100% 99% 99% 99%
6.3 OCaml 46.66 2,764 524 47.84 1% 100% 1% 1%
6.5 Lisp SBCL #2 48.15 18,492 517 48.50 0% 0% 100% 0%
6.9 Racket #3 51.50 35,380 1101 203.69 99% 100% 100% 96%
7.0 Haskell GHC #2 51.85 9,872 808 151.04 74% 72% 72% 73%
7.7 Dart #2 57.47 115,900 495 57.90 1% 0% 100% 0%
8.0 Erlang HiPE 59.89 24,880 1038 234.88 99% 95% 99% 99%
17 PHP #3 129.48 22,468 1160 8 min 99% 99% 100% 99%
23 Racket #2 168.76 35,196 908 170.35 0% 0% 100% 0%
27 Racket 199.82 35,144 649 201.52 0% 0% 0% 100%
29 Ruby #2 217.08 25,628 1444 14 min 99% 99% 100% 91%
42 Haskell GHC 5 min 5,952 559 6 min 12% 10% 100% 6%
49 Python 3 #4 6 min 47,608 950 24 min 100% 99% 100% 97%
53 Perl #2 6 min 12,132 570 26 min 100% 99% 100% 100%
61 VW Smalltalk 7 min 54,408 916 7 min 1% 1% 1% 100%
62 PHP #2 7 min 7,864 441 8 min 1% 1% 1% 100%
96 Lua 11 min 1,144 462 11 min 0% 100% 0% 0%
103 PHP 12 min 7,868 482 13 min 1% 1% 1% 100%
163 Perl #3 20 min 5,016 427 21 min 1% 2% 2% 100%
165 Ruby 20 min 21,904 384 20 min 0% 100% 0% 0%
167 Python 3 #6 20 min 7,704 385 20 min 0% 0% 0% 100%
237 Perl 29 min 5,000 457 30 min 100% 1% 1% 2%
483 Matz's Ruby #2 59 min 16,720 1444 3h 51 min 95% 94% 100% 97%
  Matz's Ruby 2h 53 min 4,624 384 2h 54 min 100% 0% 0% 0%
Haskell GHC #3 Make Error