The Computer Language
22.01 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. Choose which programs you want to compare.

× source secs mem gz busy cpu load
1.0 C++ g++ #6 3.26 1,992 1528 12.94 98% 100% 100% 100%
1.2 Rust #6 3.80 1,352 1253 15.13 100% 99% 99% 99%
2.3 Rust #4 7.38 1,292 1020 29.12 100% 95% 100% 100%
2.3 Rust #5 7.39 1,296 1016 29.10 95% 100% 100% 99%
2.3 Rust #3 7.41 1,296 1020 29.14 100% 94% 100% 100%
2.3 C++ g++ #5 7.56 1,992 980 29.48 100% 99% 98% 93%
2.3 C gcc #5 7.58 1,048 910 29.67 99% 100% 94% 99%
2.4 Julia #2 7.83 213,412 1067 29.69 97% 94% 95% 93%
2.5 Ada 2012 GNAT #3 8.06 4,308 2113 32.13 100% 100% 100% 100%
2.5 Swift #3 8.07 6,520 1097 31.99 98% 100% 98% 100%
2.5 Julia #3 8.20 206,856 886 31.41 97% 94% 97% 96%
2.5 Chapel #2 8.29 5,404 731 33.00 100% 100% 99% 99%
2.5 Go #3 8.31 2,272 969 33.19 100% 100% 100% 100%
2.7 F# .NET #6 8.71 32,084 1097 34.09 95% 99% 100% 98%
2.7 C# .NET #9 8.74 31,712 1225 34.71 99% 99% 100% 99%
2.7 OCaml #3 8.92 13,028 1017 35.63 100% 100% 100% 100%
2.8 OCaml #4 9.04 19,244 1004 36.14 100% 100% 100% 100%
2.9 Lisp SBCL #4 9.38 32,436 1527 36.89 99% 100% 99% 95%
3.0 C# .NET #6 9.87 31,492 1068 39.32 100% 100% 99% 99%
3.1 Classic Fortran #3 10.19 11,020 1158 40.68 100% 100% 100% 100%
3.1 Haskell GHC #6 10.25 5,536 1113 40.74 100% 99% 98% 100%
3.2 C++ g++ #4 10.36 2,192 1439 40.91 96% 99% 100% 100%
3.2 Java  10.48 35,264 1282 41.33 98% 99% 99% 98%
3.2 F# .NET #5 10.52 35,876 912 41.41 98% 99% 99% 98%
3.2 Haskell GHC #5 10.52 6,292 842 41.62 100% 100% 99% 96%
3.2 Free Pascal 10.56 1,740 1024 42.18 100% 100% 100% 100%
3.3 C++ g++ 10.83 2,096 1059 42.63 100% 95% 100% 99%
3.4 C++ g++ #2 11.03 2,184 1440 43.24 100% 99% 94% 99%
3.5 Node js #5 11.31 70,112 1313 44.69 98% 99% 99% 99%
3.5 C gcc #2 11.37 1,188 1557 44.83 96% 100% 98% 100%
3.6 Go 11.82 3,180 900 47.25 100% 100% 100% 100%
3.6 Go #2 11.87 8,236 896 47.44 100% 100% 100% 100%
4.0 Dart #5 12.88 10,516 1220 50.84 99% 99% 99% 99%
4.3 C gcc #4 13.88 1,044 1183 13.89 0% 100% 0% 0%
4.3 C++ g++ #7 13.90 1,040 1150 14.05 0% 0% 0% 100%
6.7 Rust #2 21.93 1,248 1191 86.78 100% 99% 96% 100%
9.3 Lisp SBCL #5 30.38 42,772 681 30.41 0% 100% 0% 0%
10 Racket #3 33.20 68,932 1101 121.69 100% 93% 81% 93%
11 Lisp SBCL #3 36.37 31,956 826 36.58 0% 0% 0% 100%
12 Swift 37.96 6,360 451 38.09 0% 0% 0% 100%
12 Haskell GHC #4 38.06 4,980 665 39.42 2% 100% 0% 2%
12 Classic Fortran 38.93 1,628 599 39.37 0% 0% 100% 1%
12 C++ g++ #3 40.39 1,040 593 41.12 0% 1% 100% 0%
12 Dart #3 40.72 10,600 546 40.96 0% 100% 0% 0%
13 Java #3 40.97 34,848 1257 41.36 0% 0% 100% 1%
13 C gcc #3 42.26 968 567 42.31 0% 100% 0% 0%
13 C gcc 43.07 1,044 508 43.65 1% 0% 100% 0%
13 Julia 43.71 183,016 434 44.25 1% 100% 0% 0%
14 OCaml #2 45.01 2,000 473 45.27 0% 100% 0% 0%
14 Java #2 46.08 35,896 514 46.47 0% 0% 100% 0%
14 Lisp SBCL #2 47.26 18,840 517 47.60 0% 0% 100% 0%
15 Haskell GHC #2 48.99 25,768 808 135.89 69% 69% 70% 70%
16 OCaml 51.87 1,988 524 52.39 1% 100% 0% 0%
18 PHP #4 57.71 46,568 1162 228.98 100% 99% 99% 99%
19 Dart #2 62.98 10,308 504 63.26 0% 0% 0% 100%
22 Erlang 73.26 37,572 1038 292.16 99% 100% 100% 100%
35 Racket #2 112.70 67,980 908 113.26 0% 0% 100% 0%
43 Racket 140.62 69,964 649 142.05 0% 100% 0% 0%
59 PHP #2 191.58 13,284 441 192.62 100% 0% 0% 0%
72 PHP 234.54 13,288 482 236.42 0% 0% 100% 0%
81 Ruby #2 262.56 289,076 1455 17 min 93% 100% 100% 100%
89 Haskell GHC 290.20 10,000 559 5 min 26% 18% 35% 25%
105 Python 3 #4 5 min 45,548 950 22 min 100% 99% 96% 99%
127 Perl #2 6 min 12,036 570 27 min 100% 100% 100% 100%
135 VW Smalltalk 7 min 54,452 916 7 min 8% 93% 0% 0%
214 Lua 11 min 1,500 462 11 min 100% 0% 0% 0%
336 Python 3 #6 18 min 7,700 385 18 min 0% 0% 0% 100%
376 Perl #3 20 min 5,276 427 20 min 0% 0% 100% 0%
534 Ruby 29 min 285,792 384 29 min 0% 0% 0% 100%
541 Perl 29 min 5,272 457 29 min 0% 0% 0% 100%
  Matz's Ruby #2 1h 01 min 17,512 1455 3h 55 min 95% 96% 98% 98%
Haskell GHC #3 Make Error
PHP #3 Bad Output
Matz's Ruby Timed Out