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 manually vectorized SIMD programs.

× source secs mem gz busy cpu load
1.0 C++ g++ #6 3.29 1,892 1528 13.06 100% 100% 100% 97%
2.3 Rust #3 7.53 1,172 1020 29.57 99% 98% 100% 95%
2.3 Rust #4 7.54 1,172 1020 29.61 95% 100% 98% 100%
2.3 C gcc #5 7.58 872 910 29.61 100% 98% 99% 93%
2.3 Go #3 7.59 2,064 969 30.31 100% 100% 100% 100%
2.3 Julia #2 7.64 206,244 1067 28.95 95% 95% 94% 95%
2.4 Rust #5 7.76 1,172 1016 30.58 100% 96% 99% 99%
2.5 Ada 2012 GNAT #3 8.06 4,348 2113 32.11 99% 100% 100% 100%
2.5 Julia #3 8.08 198,556 886 30.70 92% 98% 95% 95%
2.5 C++ g++ #5 8.11 1,888 980 31.63 93% 99% 99% 100%
2.5 Swift #3 8.24 7,824 1097 32.69 98% 99% 100% 100%
2.6 C# .NET #9 8.40 30,848 1225 33.29 99% 100% 99% 99%
2.6 F# .NET #6 8.65 31,784 1097 33.57 98% 99% 94% 98%
2.6 OCaml #4 8.66 18,900 1004 34.60 100% 100% 100% 100%
2.7 OCaml #3 8.85 18,460 1017 35.38 100% 100% 100% 100%
2.9 Chapel #2 9.39 4,408 731 37.45 100% 100% 100% 100%
2.9 C# .NET #6 9.62 30,560 1068 38.22 99% 100% 99% 99%
2.9 Lisp SBCL #4 9.63 32,388 1527 37.69 98% 95% 99% 99%
3.0 Rust #2 9.87 976 1191 38.60 98% 100% 98% 94%
3.0 C++ g++ #2 9.93 2,016 1440 38.92 100% 94% 100% 98%
3.0 Haskell GHC #6 9.95 3,764 1113 39.18 95% 100% 99% 100%
3.1 C++ g++ #4 10.04 2,020 1439 39.51 100% 100% 99% 95%
3.1 Intel Fortran #3 10.16 11,048 1158 40.55 100% 100% 100% 100%
3.2 Free Pascal 10.55 1,848 1050 42.14 100% 100% 100% 100%
3.2 F# .NET #5 10.59 33,428 912 41.63 98% 98% 98% 98%
3.2 Java  10.64 35,192 1282 41.91 99% 98% 99% 97%
3.3 C gcc #2 10.85 928 1557 42.76 100% 100% 98% 96%
3.3 C++ g++ 10.87 1,956 1059 42.86 100% 95% 100% 99%
3.4 Go 11.28 3,492 900 45.06 100% 100% 100% 100%
3.4 Go #2 11.34 14,860 896 45.28 100% 100% 100% 100%
3.5 Node js #5 11.60 64,024 1313 45.89 99% 99% 99% 99%
3.9 Dart #5 12.70 15,288 1220 50.67 100% 100% 100% 100%
4.1 Haskell GHC #5 13.65 4,296 842 54.04 100% 100% 100% 97%
4.2 C gcc #4 13.95 768 1183 14.23 100% 1% 0% 1%
4.4 C++ g++ #7 14.38 764 1150 14.58 0% 1% 0% 100%
9.2 Lisp SBCL #5 30.40 42,428 681 30.57 0% 0% 100% 0%
9.4 Racket #3 31.07 68,492 1101 120.19 100% 91% 97% 99%
11 Lisp SBCL #3 36.09 31,860 826 36.30 0% 0% 0% 100%
11 Swift 36.16 7,608 451 36.35 0% 100% 0% 0%
12 Intel Fortran 38.99 2,016 599 40.42 1% 2% 100% 1%
12 Julia 39.81 174,792 434 40.33 1% 0% 100% 0%
12 C++ g++ #3 40.57 768 593 40.74 0% 0% 0% 100%
12 Dart #3 40.89 10,484 546 41.72 0% 1% 0% 100%
13 Java #3 41.43 34,952 1257 41.58 0% 0% 100% 0%
13 C gcc #3 42.04 768 567 42.24 0% 100% 0% 0%
13 C gcc 42.06 768 508 42.36 0% 0% 100% 0%
13 OCaml #2 43.73 1,796 473 44.00 0% 100% 0% 0%
14 Java #2 45.44 35,364 514 46.01 1% 1% 100% 0%
14 OCaml 46.27 1,740 524 46.66 0% 100% 1% 0%
14 Lisp SBCL #2 47.21 18,328 517 47.50 0% 0% 0% 100%
16 Haskell GHC #4 53.91 3,796 665 214.65 100% 99% 99% 99%
18 Dart #2 59.88 10,420 504 60.61 0% 100% 0% 0%
19 PHP #3 63.18 44,168 1160 250.98 99% 99% 100% 99%
22 Haskell GHC #2 71.18 8,756 808 217.06 76% 76% 76% 77%
22 Erlang 72.42 36,916 1038 288.18 99% 99% 100% 100%
34 Racket #2 113.30 67,556 908 115.03 1% 1% 0% 100%
43 Racket 142.79 67,588 649 143.60 100% 0% 0% 0%
55 Ruby #2 181.72 26,276 1455 11 min 99% 100% 99% 96%
65 PHP #2 213.70 12,008 441 226.84 2% 2% 100% 2%
78 PHP 255.57 12,104 482 271.74 80% 22% 2% 3%
96 Haskell GHC 5 min 5,880 559 6 min 43% 7% 24% 47%
107 Python 3 #4 5 min 12,232 950 23 min 97% 99% 100% 99%
119 Perl #2 6 min 12,116 570 26 min 100% 100% 100% 100%
138 VW Smalltalk 7 min 54,936 916 7 min 0% 0% 0% 100%
160 Lua 8 min 1,296 462 8 min 0% 0% 1% 100%
364 Ruby 19 min 23,164 384 20 min 0% 100% 0% 0%
379 Perl #3 20 min 5,264 427 20 min 0% 100% 0% 0%
386 Python 3 #6 21 min 7,812 385 21 min 100% 0% 0% 0%
512 Perl 28 min 5,060 457 28 min 0% 100% 1% 1%
  Matz's Ruby #2 1h 01 min 17,512 1455 3h 55 min 95% 96% 98% 98%
Haskell GHC #3 Make Error
Matz's Ruby Timed Out