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 4.91 1,912 1482 19.45 100% 99% 97% 100%
1.5 Rust #4 7.15 1,172 1020 28.09 99% 95% 100% 99%
1.5 Rust #3 7.16 1,108 1020 28.09 100% 93% 100% 100%
1.5 Rust #5 7.26 1,240 1016 28.47 100% 98% 94% 99%
1.5 C gcc #5 7.52 836 910 29.37 99% 100% 93% 99%
1.5 Go #3 7.59 2,064 969 30.31 100% 100% 100% 100%
1.6 Julia #2 7.96 197,292 1067 30.06 94% 95% 94% 94%
1.6 Swift #3 8.01 7,576 1097 31.78 100% 100% 99% 98%
1.6 C++ g++ #5 8.08 1,900 980 31.45 98% 100% 98% 93%
1.7 C# .NET #9 8.40 30,788 1225 33.30 100% 99% 99% 99%
1.7 Julia #3 8.44 191,584 886 32.22 95% 96% 96% 94%
1.7 OCaml #4 8.52 19,072 1004 34.08 100% 100% 100% 100%
1.8 F# .NET #6 8.65 31,784 1097 33.57 98% 99% 94% 98%
1.8 Ada 2012 GNAT #3 8.68 4,384 2113 34.48 99% 100% 99% 99%
1.8 OCaml #3 8.71 26,456 1017 34.80 100% 100% 100% 100%
1.9 Chapel #2 9.35 4,288 731 37.30 100% 100% 100% 100%
2.0 C# .NET #6 9.62 30,444 1068 38.20 99% 99% 99% 100%
2.0 Lisp SBCL #4 9.63 32,388 1527 37.69 98% 95% 99% 99%
2.0 Rust #2 9.93 984 1191 38.67 97% 94% 98% 100%
2.0 Haskell GHC #6 9.95 3,764 1113 39.18 95% 100% 99% 100%
2.1 Intel Fortran #3 10.16 11,048 1158 40.55 100% 100% 100% 100%
2.1 C++ g++ #4 10.25 2,060 1439 40.46 100% 96% 99% 100%
2.1 C++ g++ #2 10.38 2,060 1440 40.93 100% 95% 100% 100%
2.1 Free Pascal 10.55 1,848 1050 42.14 100% 100% 100% 100%
2.2 F# .NET #5 10.59 33,428 912 41.63 98% 98% 98% 98%
2.2 C gcc #2 10.85 912 1557 42.64 98% 100% 95% 100%
2.2 Java  11.00 34,104 1282 43.42 99% 98% 98% 99%
2.3 C++ g++ 11.16 1,920 1059 44.04 99% 96% 100% 100%
2.3 Go 11.28 3,492 900 45.06 100% 100% 100% 100%
2.3 Go #2 11.34 14,860 896 45.28 100% 100% 100% 100%
2.4 Node js #5 11.97 62,956 1313 45.59 95% 94% 94% 97%
2.8 Haskell GHC #5 13.65 4,296 842 54.04 100% 100% 100% 97%
2.8 C gcc #4 13.90 792 1183 13.95 0% 100% 0% 0%
2.9 C++ g++ #7 14.33 792 1150 14.38 0% 0% 0% 100%
6.2 Lisp SBCL #5 30.40 42,428 681 30.57 0% 0% 100% 0%
6.6 Racket #3 32.59 68,152 1101 122.69 90% 93% 94% 100%
6.9 Julia 33.73 168,352 434 34.15 0% 100% 1% 0%
7.4 Lisp SBCL #3 36.09 31,860 826 36.30 0% 0% 0% 100%
7.4 Swift 36.25 7,092 451 36.50 0% 0% 100% 0%
7.9 Intel Fortran 38.99 2,016 599 40.42 1% 2% 100% 1%
8.2 C++ g++ #3 40.47 740 593 40.82 0% 0% 1% 100%
8.4 OCaml #2 41.32 1,744 473 41.71 0% 0% 100% 0%
8.4 Java #3 41.43 33,864 1257 42.06 1% 0% 100% 1%
8.5 C gcc 41.69 740 508 41.95 0% 0% 0% 100%
8.5 C gcc #3 41.90 740 567 42.10 0% 0% 100% 0%
9.1 Java #2 44.81 34,576 514 45.21 100% 0% 0% 0%
9.5 OCaml 46.74 1,748 524 47.62 1% 0% 100% 1%
9.6 Lisp SBCL #2 47.21 18,328 517 47.50 0% 0% 0% 100%
11 Haskell GHC #4 53.91 3,796 665 214.65 100% 99% 99% 99%
12 Dart #2 57.09 121,204 499 57.52 0% 100% 0% 0%
12 Erlang HiPE 59.08 24,856 1038 234.23 99% 99% 99% 99%
13 PHP #3 63.18 44,168 1160 250.98 99% 99% 100% 99%
14 Haskell GHC #2 71.18 8,756 808 217.06 76% 76% 76% 77%
25 Racket #2 121.98 68,304 908 122.95 0% 100% 0% 0%
30 Racket 147.62 68,360 649 148.49 0% 0% 100% 0%
37 Ruby #2 181.72 26,276 1455 11 min 99% 100% 99% 96%
44 PHP #2 213.70 12,008 441 226.84 2% 2% 100% 2%
52 PHP 255.57 12,104 482 271.74 80% 22% 2% 3%
64 Haskell GHC 5 min 5,880 559 6 min 43% 7% 24% 47%
75 Python 3 #4 6 min 12,288 950 24 min 100% 98% 99% 98%
80 Perl #2 6 min 12,116 570 26 min 100% 100% 100% 100%
92 VW Smalltalk 7 min 54,936 916 7 min 0% 0% 0% 100%
107 Lua 8 min 1,296 462 8 min 0% 0% 1% 100%
244 Ruby 19 min 23,164 384 20 min 0% 100% 0% 0%
254 Perl #3 20 min 5,264 427 20 min 0% 100% 0% 0%
261 Python 3 #6 21 min 7,928 385 21 min 100% 0% 0% 0%
343 Perl 28 min 5,060 457 28 min 0% 100% 1% 1%
747 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