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 41.73 736 508 41.94 0% 0% 100% 0%
1.0 C++ g++ #3 40.46 740 593 40.72 0% 0% 0% 100%
1.1 C gcc #4 13.90 792 1183 14.18 100% 0% 1% 1%
1.1 C++ g++ #7 14.34 796 1150 14.68 100% 0% 1% 1%
1.1 C gcc #3 41.86 796 567 41.97 0% 0% 0% 100%
1.2 C gcc #5 7.53 892 910 29.41 99% 98% 100% 93%
1.2 C gcc #2 10.87 908 1557 42.68 98% 100% 95% 100%
1.3 Rust #2 9.97 980 1191 38.79 94% 98% 100% 97%
1.7 Rust #4 7.47 1,220 1020 29.41 95% 100% 99% 99%
1.7 Rust #3 7.47 1,220 1020 29.44 95% 100% 100% 99%
1.7 Rust #5 6.88 1,224 1016 26.99 94% 99% 99% 100%
1.7 Lua 11 min 1,224 462 12 min 0% 0% 0% 100%
2.4 OCaml #2 41.32 1,744 473 41.71 0% 0% 100% 0%
2.4 OCaml 46.74 1,748 524 47.62 1% 0% 100% 1%
2.5 Free Pascal 10.55 1,848 1050 42.14 100% 100% 100% 100%
2.5 C++ g++ #5 8.07 1,848 980 31.38 93% 98% 100% 98%
2.6 C++ g++ 11.16 1,920 1059 44.07 99% 96% 100% 100%
2.7 C++ g++ #2 10.35 2,004 1440 40.82 100% 100% 100% 95%
2.7 Intel Fortran 38.99 2,016 599 40.42 1% 2% 100% 1%
2.8 C++ g++ #4 10.17 2,056 1439 40.14 100% 100% 100% 95%
3.3 Go #3 8.28 2,428 969 33.10 100% 100% 100% 100%
4.5 Go 11.29 3,312 900 45.08 100% 100% 100% 100%
4.9 Haskell GHC #4 46.59 3,604 665 185.39 99% 99% 100% 99%
4.9 Haskell GHC #6 10.22 3,620 1113 40.23 100% 100% 95% 99%
5.8 Chapel #2 9.35 4,288 731 37.30 100% 100% 100% 100%
5.9 Haskell GHC #5 11.95 4,368 842 47.44 100% 100% 98% 100%
6.0 Ada 2012 GNAT #3 8.68 4,384 2113 34.48 99% 100% 99% 99%
6.3 Matz's Ruby 2h 53 min 4,624 384 2h 54 min 100% 0% 0% 0%
6.9 Perl 28 min 5,060 457 28 min 0% 100% 1% 1%
7.2 Perl #3 20 min 5,264 427 20 min 0% 100% 0% 0%
8.3 Haskell GHC 5 min 6,112 559 6 min 6% 72% 25% 15%
9.7 Swift 41.40 7,108 451 41.72 0% 0% 1% 100%
10 Swift #3 7.46 7,668 1097 29.52 98% 100% 99% 100%
11 PHP #2 7 min 7,864 441 8 min 1% 1% 1% 100%
11 PHP 12 min 7,868 482 13 min 1% 1% 1% 100%
11 Python 3 #6 21 min 7,928 385 21 min 100% 0% 0% 0%
13 Haskell GHC #2 50.61 9,648 808 147.69 73% 72% 73% 73%
15 Intel Fortran #3 10.16 11,048 1158 40.55 100% 100% 100% 100%
16 Perl #2 6 min 12,116 570 26 min 100% 100% 100% 100%
17 Python 3 #4 6 min 12,288 950 24 min 100% 98% 99% 98%
21 Go #2 11.36 15,116 896 45.38 100% 100% 100% 100%
23 Matz's Ruby #2 59 min 16,720 1444 3h 51 min 95% 94% 100% 97%
25 Lisp SBCL #2 48.15 18,492 517 48.50 0% 0% 100% 0%
26 OCaml #4 8.52 19,072 1004 34.08 100% 100% 100% 100%
31 PHP #3 129.48 22,468 1160 8 min 99% 99% 100% 99%
34 Erlang HiPE 59.89 24,880 1038 234.88 99% 95% 99% 99%
34 Ruby 20 min 25,200 384 21 min 100% 0% 0% 0%
36 OCaml #3 8.71 26,456 1017 34.80 100% 100% 100% 100%
41 C# .NET Core #6 9.58 29,808 1068 38.06 99% 99% 100% 99%
42 C# .NET Core #9 8.26 30,568 1225 32.77 99% 99% 99% 99%
44 Lisp SBCL #3 36.31 32,040 826 36.46 100% 0% 0% 0%
44 Lisp SBCL #4 9.57 32,328 1527 37.43 99% 95% 98% 99%
46 F# .NET Core #5 10.84 33,616 912 42.09 97% 97% 95% 99%
46 Java  #3 41.43 33,864 1257 42.06 1% 0% 100% 1%
46 Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
46 F# .NET Core #6 8.91 34,216 1097 34.78 98% 99% 99% 94%
47 Java #2 44.81 34,576 514 45.21 100% 0% 0% 0%
48 Racket 199.82 35,144 649 201.52 0% 0% 0% 100%
48 Racket #2 168.76 35,196 908 170.35 0% 0% 100% 0%
48 Racket #3 51.50 35,380 1101 203.69 99% 100% 100% 96%
58 Lisp SBCL #5 30.90 42,324 681 31.05 0% 0% 100% 0%
75 VW Smalltalk 7 min 54,936 916 7 min 0% 0% 0% 100%
83 Node js #5 11.92 61,268 1313 45.47 95% 94% 96% 96%
158 Dart #2 60.13 116,376 495 60.60 0% 1% 100% 0%
229 Julia 33.73 168,352 434 34.15 0% 100% 1% 0%
260 Julia #3 8.44 191,584 886 32.22 95% 96% 96% 94%
268 Julia #2 7.96 197,292 1067 30.06 94% 95% 94% 94%
Haskell GHC #3 Make Error
Ruby #2 Failed