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 8.74 936 910 34.47 100% 95% 100% 100%
1.1 Swift #3 9.98 7,432 1097 39.57 98% 100% 98% 100%
1.2 Ada 2012 GNAT #3 10.26 4,504 2113 40.92 100% 100% 100% 100%
1.2 Rust #5 10.42 876 1016 40.80 100% 93% 99% 99%
1.2 C++ g++ #5 10.70 1,864 980 42.31 96% 100% 100% 100%
1.3 C# .NET Core #9 11.12 32,008 1225 44.12 99% 99% 99% 99%
1.3 Rust #4 11.18 944 1020 43.85 100% 99% 100% 94%
1.3 Rust #3 11.19 944 1020 43.90 93% 99% 100% 100%
1.3 Julia #2 11.19 188,316 1067 41.43 91% 98% 93% 88%
1.4 Lisp SBCL #4 12.12 33,328 1527 47.62 99% 99% 96% 98%
1.4 Julia #3 12.42 181,716 886 46.48 93% 94% 95% 93%
1.4 Intel Fortran #3 12.54 10,916 1158 50.04 100% 100% 100% 100%
1.5 Rust #2 13.32 1,008 1191 52.16 100% 98% 94% 99%
1.6 Java  14.33 34,888 1282 56.56 99% 98% 99% 98%
1.7 Go #3 14.79 1,532 969 58.94 100% 100% 100% 100%
1.7 C# .NET Core #8 15.01 31,556 1243 59.64 99% 99% 99% 99%
1.7 Chapel 15.24 4,488 728 60.69 100% 99% 100% 99%
1.8 C gcc #2 15.55 920 1557 60.97 98% 99% 100% 95%
1.8 C++ g++ #4 16.05 2,040 1439 62.84 100% 93% 100% 98%
1.8 OCaml #4 16.12 19,552 1004 64.43 100% 100% 100% 100%
1.9 OCaml #3 16.33 29,052 1017 65.25 100% 100% 100% 100%
1.9 C# .NET Core #7 16.43 31,464 1189 65.32 99% 99% 99% 100%
1.9 F# .NET Core #6 16.63 35,740 1097 64.45 93% 98% 97% 100%
1.9 F# .NET Core #8 16.68 35,800 949 64.94 98% 95% 100% 97%
1.9 F# .NET Core #7 16.77 35,828 953 65.22 94% 99% 98% 98%
1.9 F# .NET Core #9 17.04 36,200 924 66.45 99% 98% 97% 95%
2.0 C++ g++ #2 17.24 2,128 1440 67.47 99% 100% 99% 93%
2.0 C# .NET Core #6 17.48 31,464 1068 69.55 99% 100% 100% 99%
2.0 Go 17.56 1,524 900 70.00 100% 100% 100% 100%
2.0 Go #2 17.57 11,420 896 70.06 100% 100% 100% 100%
2.0 Node js #5 17.75 58,932 1313 70.26 99% 99% 99% 99%
2.1 Free Pascal 17.95 1,860 1050 71.73 100% 100% 100% 100%
2.1 C++ g++ 18.22 1,900 1059 71.04 99% 94% 97% 100%
2.1 Haskell GHC #5 18.37 4,352 842 72.54 96% 100% 100% 100%
2.1 C# .NET Core #5 18.52 31,840 1049 71.75 99% 99% 98% 91%
2.1 Haskell GHC #6 18.58 4,336 1113 72.78 99% 96% 97% 100%
2.2 C# .NET Core #4 18.81 31,228 1172 74.41 99% 100% 99% 99%
2.3 F# .NET Core #5 19.91 35,644 912 77.90 99% 95% 99% 98%
2.3 C# .NET Core #3 20.42 31,120 1096 80.90 99% 100% 98% 99%
2.7 F# .NET Core #3 23.90 36,056 945 88.67 86% 89% 97% 100%
2.8 Node js #2 24.62 57,760 1316 97.72 99% 99% 99% 99%
2.9 C gcc #4 25.62 840 1183 25.85 100% 0% 0% 1%
3.0 C++ g++ #7 26.55 824 1150 27.26 2% 100% 0% 1%
5.5 Lisp SBCL #5 48.05 50,080 681 48.56 100% 0% 1% 0%
6.3 Lisp SBCL #3 54.93 33,316 826 55.47 100% 0% 0% 1%
6.3 Julia 55.19 161,100 434 56.08 1% 18% 82% 1%
7.1 Java #3 62.00 34,332 1257 63.04 100% 0% 0% 2%
7.1 C# .NET Core #2 62.31 31,272 564 63.15 0% 65% 35% 1%
7.1 C gcc #3 62.41 776 567 63.06 0% 0% 42% 58%
7.4 Intel Fortran 64.51 1,924 599 65.31 39% 0% 0% 62%
7.6 F# .NET Core #4 66.21 33,220 612 67.12 1% 0% 64% 37%
7.8 Swift 68.48 6,708 451 69.17 1% 0% 0% 100%
8.0 C gcc 69.60 840 508 70.88 38% 49% 1% 14%
8.1 Haskell GHC #4 70.49 3,468 665 280.95 100% 100% 100% 100%
8.2 C++ g++ #3 71.91 780 593 72.40 76% 0% 0% 24%
8.5 Java #2 74.36 35,036 514 75.02 1% 0% 100% 0%
9.0 C# .NET Core 78.86 31,220 520 80.43 38% 39% 25% 0%
9.1 Node js #4 79.26 32,884 473 88.77 2% 6% 45% 60%
9.1 TypeScript #4 79.26 33,332 495 80.11 70% 0% 0% 31%
9.4 Racket #3 82.28 34,804 1101 5 min 99% 96% 100% 100%
9.8 Erlang HiPE 85.39 24,184 1038 5 min 97% 100% 100% 100%
9.8 OCaml #2 85.92 2,868 473 86.87 0% 32% 68% 1%
10 F# .NET Core #2 87.00 34,576 548 88.82 100% 1% 0% 1%
10 OCaml 90.12 2,824 524 91.03 0% 1% 100% 0%
11 Lisp SBCL #2 92.30 19,280 517 93.27 100% 0% 1% 0%
11 Node js 94.60 33,024 471 96.31 22% 1% 1% 78%
11 Dart #2 97.21 113,784 495 98.63 1% 0% 1% 100%
11 Haskell GHC #2 100.03 9,472 808 5 min 75% 75% 75% 76%
14 TypeScript #3 126.53 33,044 454 127.96 100% 0% 0% 1%
16 TypeScript #2 141.23 33,140 445 143.55 85% 0% 0% 16%
24 PHP #3 206.72 22,548 1160 13 min 99% 99% 99% 100%
25 F# .NET Core 214.95 45,220 551 224.04 94% 4% 4% 2%
34 Racket #2 293.56 34,564 908 298.83 47% 23% 31% 1%
35 Ruby #2 5 min 26,680 1444 19 min 100% 91% 98% 97%
37 Racket 5 min 34,740 649 5 min 43% 20% 26% 13%
52 Haskell GHC 7 min 6,080 559 9 min 56% 39% 9% 20%
61 Python 3 #4 8 min 47,236 950 35 min 99% 97% 99% 99%
64 Perl #2 9 min 11,872 570 37 min 100% 100% 100% 100%
82 VW Smalltalk 11 min 55,084 916 12 min 33% 13% 55% 0%
89 PHP #2 12 min 7,808 441 13 min 0% 35% 65% 1%
144 PHP 21 min 7,980 482 21 min 29% 39% 30% 3%
151 Lua 21 min 1,340 462 22 min 0% 100% 1% 1%
199 Ruby 28 min 25,520 384 29 min 26% 22% 52% 1%
200 Perl #3 29 min 4,948 427 29 min 95% 1% 1% 5%
230 Python 3 #6 33 min 7,552 385 33 min 17% 49% 32% 2%
261 Perl 38 min 4,896 457 38 min 67% 16% 13% 6%
  Matz's Ruby #2 1h 51 min 19,320 1444 7h 12 min 97% 99% 97% 96%
  Matz's Ruby 5h 30 min 4,736 384 5h 34 min 23% 8% 29% 40%
Haskell GHC #3 Make Error