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,604 3542 3.28 98% 99% 98% 95%
1.1 C++ g++ 0.90 31,724 1791 3.51 98% 100% 98% 97%
1.1 Rust #7 0.92 32,240 757 3.66 100% 99% 99% 100%
1.1 Rust #8 0.92 32,648 763 3.68 100% 99% 100% 100%
1.1 C++ g++ #6 0.97 32,236 1002 3.84 99% 100% 99% 99%
1.2 Rust #3 0.99 12,784 1007 3.94 100% 100% 99% 100%
1.4 Rust #5 1.16 33,640 719 4.58 98% 99% 99% 100%
1.5 C gcc #6 1.27 31,692 1135 5.08 100% 100% 100% 99%
1.6 Rust #6 1.33 33,452 1332 5.25 98% 98% 100% 98%
1.6 Julia #8 1.38 235,276 621 4.78 83% 83% 83% 99%
1.7 Intel Fortran #8 1.42 36,184 957 5.63 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.84 226,908 619 6.70 98% 89% 88% 89%
2.3 Julia #5 1.93 267,708 571 7.06 98% 90% 89% 89%
2.4 Julia #3 2.05 267,188 579 7.56 100% 90% 89% 89%
2.5 Swift #3 2.14 39,228 1138 8.52 99% 99% 100% 99%
2.8 Julia #6 2.40 240,848 562 6.91 59% 90% 90% 49%
3.1 Julia #4 2.63 256,060 574 7.46 90% 47% 57% 90%
3.3 Rust 2.77 38,744 868 10.92 98% 99% 98% 99%
3.7 C# .NET 3.14 64,716 1974 12.28 99% 97% 97% 97%
3.7 C# .NET #9 3.15 64,520 816 12.29 97% 97% 97% 99%
3.7 Intel Fortran #6 3.16 75,852 661 10.64 79% 79% 79% 100%
3.8 C gcc #8 3.17 33,104 782 12.19 100% 96% 94% 94%
3.9 Chapel #3 3.32 36,104 588 13.13 99% 98% 99% 99%
4.1 C gcc #4 3.46 32,832 799 13.85 100% 100% 100% 100%
4.1 C++ g++ #7 3.47 34,664 1017 13.85 100% 100% 99% 100%
4.1 C gcc #7 3.48 33,048 994 13.87 99% 100% 99% 99%
4.1 C gcc 3.48 28,740 822 13.93 100% 100% 100% 100%
4.1 C++ g++ #9 3.50 34,392 726 13.50 96% 95% 99% 95%
4.2 C gcc #3 3.51 32,440 763 14.00 99% 99% 100% 99%
4.4 Go #3 3.75 34,832 894 14.92 100% 99% 99% 100%
4.4 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.7 Ada 2012 GNAT #3 3.93 35,736 1819 15.59 99% 99% 99% 99%
4.8 F# .NET #5 4.02 65,040 897 15.76 98% 98% 97% 99%
4.8 F# .NET 4.04 65,208 877 15.81 98% 97% 98% 99%
4.8 Node js #3 4.04 92,960 1122 15.95 100% 98% 98% 98%
4.8 Lisp SBCL #4 4.09 46,684 2447 16.19 99% 99% 99% 99%
4.9 Java  #2 4.11 68,204 796 16.20 98% 99% 98% 99%
4.9 C# .NET #5 4.13 64,468 839 16.21 98% 98% 98% 99%
4.9 C gcc #9 4.16 32,800 694 16.21 96% 96% 98% 100%
5.0 Java #6 4.25 68,636 802 16.78 99% 99% 98% 98%
5.4 Lisp SBCL 4.58 46,644 2473 16.61 79% 99% 99% 85%
5.7 C++ g++ #8 4.82 34,420 742 13.23 100% 100% 38% 38%
5.8 Go 4.88 33,824 823 19.37 100% 99% 99% 100%
6.1 Java #4 5.14 67,456 660 15.96 84% 78% 98% 51%
7.8 Free Pascal #7 6.55 36,696 950 26.12 100% 100% 100% 100%
7.8 Haskell GHC #2 6.60 39,668 782 26.33 100% 100% 100% 100%
8.0 Chapel 6.75 36,064 460 26.81 100% 99% 99% 99%
8.1 Go #2 6.81 33,600 837 27.16 100% 100% 100% 100%
8.1 Go #6 6.84 32,832 700 27.26 100% 100% 100% 100%
8.7 Java #3 7.36 68,692 903 29.16 99% 99% 99% 99%
8.8 Free Pascal #6 7.45 35,876 802 29.77 100% 100% 100% 100%
9.0 OCaml 7.56 4,620 717 30.12 100% 100% 99% 100%
12 Intel Fortran #4 10.36 75,752 618 27.09 91% 91% 33% 46%
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.94 233,372 907 32.15 37% 98% 37% 97%
15 Racket #4 12.96 132,744 801 51.28 100% 99% 99% 99%
16 C++ g++ #5 13.32 33,556 590 13.38 0% 0% 100% 0%
21 C++ g++ #2 17.44 34,052 692 17.84 100% 1% 0% 1%
29 PHP #3 24.89 135,480 875 99.12 100% 100% 99% 100%
30 C gcc #2 25.32 796 400 25.38 0% 0% 0% 100%
31 Swift 26.34 7,088 394 26.42 0% 0% 100% 0%
31 Free Pascal #3 26.52 8 526 26.74 0% 0% 100% 1%
32 Ada 2012 GNAT #2 26.95 1,924 577 27.04 0% 0% 0% 100%
32 Julia 27.10 197,708 373 27.47 0% 1% 100% 1%
33 Java 27.74 34,536 665 28.10 1% 0% 0% 100%
33 OCaml #6 28.21 3,052 444 28.27 0% 0% 100% 0%
34 C++ g++ #3 28.55 1,748 414 28.68 0% 100% 0% 0%
41 Racket #3 34.25 68,068 802 34.61 1% 100% 0% 0%
53 Intel Fortran #5 44.57 44,056 520 46.37 1% 2% 1% 100%
57 Racket 48.02 68,192 517 48.24 0% 0% 0% 100%
62 Racket #2 52.05 68,612 585 52.41 0% 100% 0% 0%
101 Erlang HiPE #4 84.88 54,364 806 5 min 100% 100% 100% 100%
104 PHP 87.65 12,176 449 93.17 1% 2% 3% 100%
104 Erlang HiPE #3 87.79 54,572 792 5 min 100% 100% 100% 100%
120 Erlang HiPE #2 101.21 799,452 613 6 min 100% 100% 100% 100%
121 VW Smalltalk #2 102.47 177,424 929 5 min 85% 93% 88% 77%
134 Lua #6 113.06 18,572 623 6 min 86% 100% 77% 86%
141 Erlang HiPE 118.62 1,664,804 534 7 min 99% 98% 99% 99%
204 Python 3 #7 172.58 12,216 688 11 min 100% 100% 100% 100%
280 Lua #3 236.48 2,584 358 238.72 100% 0% 0% 0%
286 Lua 241.77 2,564 359 243.65 0% 0% 0% 100%
311 Ruby #2 262.79 69,328 880 17 min 100% 100% 100% 100%
385 VW Smalltalk 5 min 54,968 603 5 min 0% 100% 0% 0%
440 Lua #2 6 min 1,236 367 6 min 0% 0% 0% 100%
459 Ruby #5 6 min 59,680 970 25 min 100% 100% 100% 100%
643 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