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 low-level programs written for SIMD.

× 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 #8 0.93 32,788 763 3.69 100% 100% 99% 100%
1.1 Rust #7 0.93 32,644 757 3.71 100% 100% 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,920 1007 3.94 99% 100% 100% 100%
1.4 Rust #5 1.16 33,608 719 4.56 98% 98% 98% 99%
1.5 C gcc #6 1.27 31,692 1135 5.08 100% 100% 100% 99%
1.6 Rust #6 1.33 33,768 1332 5.28 100% 98% 98% 99%
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.7 Haskell GHC #3 1.47 38,268 1975 5.82 99% 100% 99% 99%
2.2 Julia #7 1.84 226,908 619 6.70 98% 89% 88% 89%
2.2 Swift #3 1.87 39,072 1138 7.44 100% 99% 98% 99%
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.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.78 38,744 868 10.92 98% 98% 99% 98%
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,848 894 14.94 99% 100% 99% 99%
4.5 Go #4 3.76 35,096 905 14.97 100% 99% 100% 99%
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 Node js #3 4.03 89,888 1122 15.89 99% 98% 98% 99%
4.8 F# .NET 4.04 65,208 877 15.81 98% 97% 98% 99%
4.8 Lisp SBCL #4 4.08 46,744 2447 16.19 100% 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.59 46,752 2473 16.57 85% 80% 97% 99%
5.7 Go 4.80 33,996 823 19.17 100% 100% 100% 100%
5.7 C++ g++ #8 4.82 34,420 742 13.23 100% 100% 38% 38%
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.59 40,808 782 26.31 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,044 837 27.17 100% 99% 100% 100%
8.1 Go #6 6.85 32,464 700 27.31 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.04 49,796 894 29.59 34% 34% 100% 100%
14 Dart #2 11.92 228,252 911 31.89 97% 37% 36% 98%
16 C++ g++ #5 13.32 33,556 590 13.38 0% 0% 100% 0%
16 Racket #4 13.74 120,776 801 52.59 96% 96% 96% 95%
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.35 7,108 394 26.44 0% 100% 0% 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%
53 Intel Fortran #5 44.57 44,056 520 46.37 1% 2% 1% 100%
58 Racket #3 48.88 37,828 802 50.03 1% 1% 100% 1%
61 Racket #2 51.35 36,920 585 52.48 0% 1% 1% 100%
87 Racket 73.28 36,600 517 75.03 0% 1% 1% 100%
101 Erlang HiPE #4 84.88 54,364 806 5 min 100% 100% 100% 100%
102 Lua #6 86.29 18,496 623 5 min 86% 88% 100% 80%
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%
141 Erlang HiPE 118.62 1,664,804 534 7 min 99% 98% 99% 99%
158 Matz's Ruby #6 133.76 33,612 918 8 min 96% 96% 96% 96%
204 Python 3 #7 172.58 12,216 688 11 min 100% 100% 100% 100%
291 Lua #3 245.61 2,476 358 247.88 0% 0% 100% 0%
291 Lua 245.64 2,440 359 247.54 0% 0% 100% 0%
307 Ruby #2 259.25 72,264 931 16 min 97% 97% 100% 97%
340 Lua #2 286.66 1,160 367 288.79 0% 47% 54% 0%
385 VW Smalltalk 5 min 54,968 603 5 min 0% 100% 0% 0%
643 Perl 9 min 45,036 586 36 min 100% 100% 100% 100%
  Ruby #4 11 min 84,284 846 11 min 25% 25% 25% 25%
  Ruby #3 23 min 25,140 307 24 min 0% 0% 100% 0%
  Matz's Ruby #2 40 min 63,752 931 2h 41 min 100% 100% 100% 100%
  Matz's Ruby #5 1h 12 min 52,496 1037 4h 48 min 100% 100% 100% 100%
  Matz's Ruby #3 2h 00 min 3,704 307 2h 01 min 0% 8% 92% 0%
Python 3 #5 Failed
Python 3 #2 Timed Out
Ruby #7 Failed
Ruby #5 Failed
Ruby #6 Failed
Matz's Ruby #4 Timed Out
Matz's Ruby #7 Failed