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 Rust #5 6.87 1,016 1016 26.97 100% 99% 94% 100%
1.1 C gcc #5 7.45 692 910 29.11 93% 100% 100% 98%
1.1 Swift #3 7.46 7,512 1097 29.57 100% 98% 98% 100%
1.2 C++ g++ #5 7.92 1,700 980 30.88 100% 99% 98% 93%
1.2 Rust #4 8.18 1,012 1020 32.39 100% 100% 97% 100%
1.2 Rust #3 8.23 1,016 1020 32.38 100% 100% 95% 99%
1.2 C# .NET Core #9 8.27 30,316 1225 32.79 99% 99% 99% 99%
1.2 Julia #3 8.29 191,576 886 31.20 94% 95% 94% 93%
1.2 Julia #2 8.38 197,292 1067 31.74 93% 94% 94% 97%
1.2 Go #3 8.51 2,732 969 34.00 100% 100% 100% 100%
1.3 Ada 2012 GNAT #3 8.63 4,360 2113 34.34 99% 99% 100% 99%
1.3 OCaml #4 8.86 19,588 1004 35.42 100% 100% 100% 100%
1.3 F# .NET Core #6 8.91 34,216 1097 34.78 98% 99% 99% 94%
1.3 OCaml #3 9.01 22,384 1017 36.00 100% 100% 100% 100%
1.4 Chapel #2 9.39 4,408 731 37.47 100% 100% 100% 100%
1.4 C# .NET Core #6 9.59 28,640 1068 38.06 99% 99% 99% 99%
1.4 Lisp SBCL #4 9.64 32,580 1527 37.84 96% 98% 98% 99%
1.5 Intel Fortran #3 10.05 10,916 1158 40.14 100% 100% 100% 100%
1.5 Haskell GHC #6 10.22 4,148 1113 40.27 100% 99% 100% 95%
1.5 Rust #2 10.46 820 1191 40.96 100% 99% 100% 94%
1.5 Java  10.61 34,960 1282 42.06 99% 99% 99% 98%
1.5 Free Pascal 10.62 1,864 1050 42.41 100% 100% 100% 100%
1.5 C++ g++ #4 10.64 1,900 1439 41.88 95% 100% 98% 100%
1.6 F# .NET Core #5 10.84 33,616 912 42.09 97% 97% 95% 99%
1.6 C++ g++ 10.87 1,780 1059 43.00 99% 97% 100% 100%
1.6 C gcc #2 10.87 764 1557 42.86 97% 100% 98% 99%
1.6 C++ g++ #2 11.01 1,884 1440 43.27 98% 95% 100% 100%
1.7 Go 11.50 3,460 900 45.97 100% 100% 100% 100%
1.7 Go #2 11.50 14,780 896 45.98 100% 100% 100% 100%
1.8 Haskell GHC #5 12.02 4,344 842 47.65 100% 100% 97% 100%
1.8 Node js #5 12.10 57,164 1313 47.74 98% 98% 99% 99%
2.0 C gcc #4 13.93 592 1183 14.35 1% 0% 100% 1%
2.1 C++ g++ #7 14.15 596 1150 14.54 1% 0% 1% 100%
4.5 Lisp SBCL #5 30.63 41,816 681 30.74 0% 0% 100% 0%
4.6 Julia 31.83 169,144 434 32.33 1% 100% 1% 1%
5.3 Lisp SBCL #3 36.55 32,092 826 37.70 1% 1% 1% 100%
5.7 Intel Fortran 39.11 1,956 599 39.42 0% 0% 0% 100%
5.8 Swift 39.77 6,840 451 40.82 1% 1% 1% 100%
5.8 C gcc #3 39.88 596 567 41.44 100% 1% 2% 2%
5.8 Java #3 39.93 35,000 1257 41.46 97% 1% 4% 1%
5.9 C++ g++ #3 40.54 596 593 41.84 100% 1% 1% 2%
6.1 C gcc 42.01 592 508 42.19 0% 0% 100% 0%
6.1 OCaml #2 42.03 2,780 473 43.43 1% 0% 2% 100%
6.2 Java #2 42.86 35,544 514 44.46 100% 1% 1% 1%
6.7 OCaml 46.09 2,816 524 47.53 1% 0% 2% 100%
6.8 Haskell GHC #4 46.38 3,476 665 184.56 100% 99% 99% 99%
7.0 Lisp SBCL #2 48.35 18,808 517 48.96 0% 0% 1% 100%
7.5 Racket #3 51.83 35,272 1101 204.31 99% 96% 99% 100%
7.5 Haskell GHC #2 51.85 9,872 808 151.04 74% 72% 72% 73%
8.4 Dart #2 57.47 115,900 495 57.90 1% 0% 100% 0%
8.7 Erlang HiPE 59.89 24,880 1038 234.88 99% 95% 99% 99%
19 PHP #3 129.48 22,468 1160 8 min 99% 99% 100% 99%
24 Racket #2 165.33 34,996 908 170.74 73% 28% 1% 1%
29 Racket 196.15 34,988 649 202.58 100% 1% 1% 1%
32 Ruby #2 217.08 25,628 1444 14 min 99% 99% 100% 91%
46 Haskell GHC 5 min 5,952 559 6 min 12% 10% 100% 6%
53 Python 3 #4 6 min 47,608 950 24 min 100% 99% 100% 97%
58 Perl #2 6 min 12,132 570 26 min 100% 99% 100% 100%
66 VW Smalltalk 7 min 54,408 916 7 min 1% 1% 1% 100%
68 PHP #2 7 min 7,864 441 8 min 1% 1% 1% 100%
104 Lua 11 min 1,144 462 11 min 0% 100% 0% 0%
112 PHP 12 min 7,868 482 13 min 1% 1% 1% 100%
176 Perl #3 20 min 5,016 427 21 min 1% 2% 2% 100%
179 Ruby 20 min 21,904 384 20 min 0% 100% 0% 0%
181 Python 3 #6 20 min 7,704 385 20 min 0% 0% 0% 100%
257 Perl 29 min 5,000 457 30 min 100% 1% 1% 2%
524 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