The Computer Language
Benchmarks Game

mandelbrot

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++ #4 0.84 34,780 3542 3.27 99% 98% 98% 96%
1.1 C++ g++ 0.89 32,592 1791 3.48 97% 98% 97% 99%
1.1 Rust #8 0.93 32,644 763 3.71 100% 100% 100% 100%
1.1 Rust #7 0.93 32,840 757 3.70 99% 99% 100% 100%
1.2 C++ g++ #6 0.97 32,876 1002 3.83 100% 99% 99% 99%
1.4 Rust #5 1.17 33,880 719 4.63 98% 98% 98% 100%
1.5 C gcc #6 1.27 31,792 1135 5.08 100% 100% 99% 100%
1.6 Julia #8 1.32 227,836 624 4.66 98% 86% 85% 85%
1.6 Rust #6 1.33 33,264 1332 5.25 99% 99% 100% 98%
1.7 Intel Fortran #8 1.42 36,184 957 5.63 99% 100% 99% 99%
1.8 Rust #3 1.50 12,428 1007 5.97 99% 100% 99% 99%
1.8 Haskell GHC #3 1.51 37,504 1975 5.98 99% 99% 99% 99%
2.2 Julia #7 1.81 228,368 619 6.67 90% 90% 90% 99%
2.2 Julia #5 1.84 271,872 571 6.85 91% 91% 99% 91%
2.5 Julia #3 2.11 267,304 579 7.86 91% 91% 90% 100%
2.8 Julia #6 2.36 258,096 562 6.80 49% 57% 92% 91%
3.3 Julia #4 2.74 263,472 574 7.74 46% 55% 91% 91%
3.6 Rust 3.01 38,744 868 11.82 96% 100% 98% 99%
3.8 C# .NET 3.14 64,940 1974 12.30 99% 98% 97% 97%
3.8 C# .NET #9 3.14 64,736 816 12.29 97% 99% 97% 97%
3.8 Intel Fortran #6 3.16 75,852 661 10.64 79% 79% 79% 100%
3.8 C gcc #8 3.17 33,084 782 12.15 100% 94% 96% 94%
4.0 Chapel #3 3.34 36,104 588 13.22 99% 99% 99% 99%
4.1 C gcc #4 3.46 32,552 799 13.82 100% 100% 100% 100%
4.1 C++ g++ #7 3.46 34,776 1017 13.81 100% 100% 100% 99%
4.2 C gcc #7 3.48 33,044 994 13.86 99% 100% 99% 100%
4.2 C gcc 3.49 29,024 822 13.94 100% 100% 100% 100%
4.2 C++ g++ #9 3.50 34,452 726 13.50 95% 95% 99% 96%
4.2 C gcc #3 3.51 32,400 763 14.00 100% 99% 99% 100%
4.5 Go #3 3.75 34,832 894 14.92 100% 99% 99% 100%
4.5 Go #4 3.75 33,700 905 14.96 100% 100% 99% 100%
4.5 F# .NET #6 3.77 64,912 933 14.73 99% 97% 98% 97%
4.6 Free Pascal #8 3.86 31,404 974 15.38 99% 99% 100% 99%
4.8 Ada 2012 GNAT #3 4.02 35,812 1819 15.96 100% 99% 99% 100%
4.8 F# .NET #5 4.02 65,040 897 15.76 98% 98% 97% 99%
4.8 Node js #3 4.03 95,448 1122 15.91 99% 98% 99% 100%
4.8 F# .NET 4.04 65,208 877 15.81 98% 97% 98% 99%
4.9 Lisp SBCL #4 4.09 46,684 2447 16.19 99% 99% 99% 99%
5.0 C# .NET #5 4.14 64,736 839 16.24 98% 99% 98% 98%
5.0 Java  #2 4.15 69,136 796 16.29 98% 99% 98% 99%
5.0 C gcc #9 4.16 33,116 694 16.05 95% 100% 95% 95%
5.1 Java #6 4.25 69,004 802 16.71 99% 99% 98% 98%
5.5 Lisp SBCL 4.58 46,644 2473 16.61 79% 99% 99% 85%
5.7 C++ g++ #8 4.81 34,424 742 13.31 39% 100% 38% 100%
5.8 Go 4.88 33,824 823 19.37 100% 99% 99% 100%
6.2 Java #4 5.22 67,840 660 16.17 99% 77% 84% 50%
7.8 Free Pascal #7 6.55 36,696 950 26.12 100% 100% 100% 100%
7.9 Haskell GHC #2 6.60 39,668 782 26.33 100% 100% 100% 100%
8.1 Chapel 6.77 35,928 460 26.90 100% 99% 99% 99%
8.1 Go #2 6.81 33,600 837 27.16 100% 100% 100% 100%
8.2 Go #6 6.84 32,832 700 27.26 100% 100% 100% 100%
8.8 Java #3 7.38 70,252 903 29.24 99% 99% 100% 99%
8.9 Free Pascal #6 7.45 35,876 802 29.77 100% 100% 100% 100%
9.0 OCaml 7.53 4,480 717 30.02 100% 100% 100% 100%
10 Dart #3 8.72 57,164 957 33.81 95% 100% 99% 95%
12 Intel Fortran #4 10.36 75,752 618 27.09 91% 91% 33% 46%
12 Racket #4 10.45 127,004 801 41.23 98% 98% 98% 100%
13 Free Pascal 10.96 32,992 846 29.48 94% 94% 44% 38%
13 Free Pascal #2 10.97 32,992 846 29.50 94% 44% 38% 94%
13 Lisp SBCL #3 11.08 50,352 894 29.66 34% 99% 100% 34%
14 Dart #2 11.80 88,664 907 31.85 35% 100% 36% 99%
16 C++ g++ #5 13.36 33,504 590 13.38 0% 0% 100% 0%
21 C++ g++ #2 17.46 34,164 692 17.51 0% 100% 0% 0%
30 PHP #3 24.89 135,480 875 99.12 100% 100% 99% 100%
30 C gcc #2 25.41 764 400 25.66 0% 0% 1% 100%
31 Swift 26.29 7,552 394 26.54 1% 0% 0% 100%
32 Free Pascal #3 26.52 8 526 26.74 0% 0% 100% 1%
32 Julia 26.73 203,668 373 27.41 100% 1% 1% 1%
33 Java 27.73 35,624 665 27.85 100% 0% 0% 0%
34 OCaml #6 28.22 3,096 444 28.32 0% 0% 0% 100%
34 Ada 2012 GNAT #2 28.42 1,984 577 28.73 1% 0% 100% 0%
34 C++ g++ #3 28.60 1,784 414 28.87 1% 0% 100% 0%
41 Racket #3 34.67 66,256 802 34.78 0% 0% 100% 0%
53 Intel Fortran #5 44.57 44,056 520 46.37 1% 2% 1% 100%
53 Erlang #3 44.66 67,152 792 178.29 100% 100% 100% 100%
54 Erlang #4 45.07 64,896 806 179.91 100% 100% 100% 100%
55 Erlang #2 46.05 765,680 613 182.90 99% 99% 99% 99%
57 Racket 47.90 66,508 517 48.14 0% 0% 100% 0%
58 Erlang 48.67 1,649,804 534 188.79 97% 97% 97% 97%
61 Racket #2 51.20 66,360 585 51.35 0% 0% 0% 100%
105 PHP 87.65 12,176 449 93.17 1% 2% 3% 100%
123 VW Smalltalk #2 102.47 177,424 929 5 min 85% 93% 88% 77%
135 Lua #6 113.06 18,572 623 6 min 86% 100% 77% 86%
195 Python 3 #7 163.32 12,080 688 10 min 98% 98% 98% 98%
283 Lua #3 236.48 2,584 358 238.72 100% 0% 0% 0%
289 Lua 241.77 2,564 359 243.65 0% 0% 0% 100%
314 Ruby #2 262.79 69,328 880 17 min 100% 100% 100% 100%
388 VW Smalltalk 5 min 54,968 603 5 min 0% 100% 0% 0%
445 Lua #2 6 min 1,236 367 6 min 0% 0% 0% 100%
464 Ruby #5 6 min 59,680 970 25 min 100% 100% 100% 100%
649 Perl 9 min 45,036 586 36 min 100% 100% 100% 100%
  Ruby #4 11 min 80,868 846 11 min 25% 25% 25% 25%
  Ruby #3 26 min 23,360 307 26 min 0% 0% 0% 100%
  Matz's Ruby #5 32 min 53,240 970 2h 10 min 100% 100% 100% 100%
  Matz's Ruby #2 39 min 64,428 880 2h 37 min 100% 100% 100% 100%
  Matz's Ruby #6 39 min 131,576 918 2h 32 min 96% 96% 95% 95%
Python 3 #5 Failed
Python 3 #2 Timed Out
Ruby #7 Failed
Ruby #6 Failed
Matz's Ruby #7 Failed
Matz's Ruby #4 Timed Out
Matz's Ruby #3 Timed Out
Swift #3 Bad Output