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.89 34,540 3542 3.47 98% 98% 97% 99%
1.0 C++ g++ 0.89 23,092 1791 3.49 97% 98% 98% 100%
1.0 Rust #7 0.92 26,112 757 3.67 100% 100% 100% 100%
1.0 Rust #8 0.92 26,060 763 3.66 99% 100% 100% 100%
1.1 C++ g++ #6 0.97 22,168 1002 3.85 99% 99% 99% 99%
1.3 Rust #5 1.19 28,964 719 4.72 99% 99% 98% 98%
1.4 C gcc #6 1.26 24,836 1135 5.00 99% 100% 100% 99%
1.5 Rust #6 1.30 28,768 1332 5.12 98% 98% 100% 98%
1.5 Julia #8 1.37 231,136 621 4.75 83% 98% 83% 83%
1.6 Intel Fortran #8 1.41 36,124 957 5.62 99% 99% 99% 100%
1.6 Haskell GHC #3 1.47 31,136 1975 5.83 99% 99% 99% 100%
2.0 Swift #3 1.77 39,044 1138 7.00 99% 100% 99% 99%
2.1 Julia #7 1.83 229,236 619 6.65 98% 88% 89% 89%
2.2 Julia #5 1.93 267,624 571 7.06 89% 98% 90% 89%
2.3 Julia #3 2.05 266,860 579 7.55 99% 90% 89% 89%
2.7 Julia #6 2.39 249,300 562 6.89 50% 58% 90% 90%
3.0 Julia #4 2.62 240,956 574 7.43 47% 56% 90% 90%
3.3 Rust 2.95 39,072 868 11.53 96% 99% 96% 99%
3.5 C gcc #8 3.15 29,148 782 12.10 100% 96% 94% 94%
3.6 C# .NET Core #9 3.17 61,812 816 12.41 97% 98% 97% 99%
3.6 C# .NET Core 3.18 61,780 1974 12.40 97% 97% 99% 97%
3.6 Intel Fortran #6 3.18 62,476 661 10.63 78% 78% 78% 100%
3.8 Chapel #3 3.35 36,108 588 13.25 99% 99% 99% 99%
3.9 C gcc #4 3.45 29,192 799 13.80 100% 100% 100% 100%
3.9 C++ g++ #7 3.47 34,680 1017 13.81 99% 100% 100% 100%
3.9 C gcc 3.49 24,968 822 13.95 100% 100% 100% 100%
3.9 C gcc #7 3.49 33,392 994 13.92 100% 100% 100% 100%
3.9 C gcc #3 3.50 32,444 763 13.93 99% 99% 100% 100%
3.9 C++ g++ #9 3.50 34,408 726 13.52 96% 100% 95% 95%
4.2 Go #4 3.75 33,820 905 14.95 100% 100% 100% 100%
4.2 Go #3 3.75 35,364 894 14.95 100% 99% 100% 100%
4.2 F# .NET Core #6 3.77 63,096 933 14.76 98% 97% 98% 98%
4.3 Free Pascal #8 3.86 27,196 974 15.37 99% 99% 99% 100%
4.4 C# .NET Core #5 3.92 55,808 839 15.34 98% 98% 98% 98%
4.4 Ada 2012 GNAT #3 3.92 32,424 1819 15.56 99% 99% 99% 99%
4.5 C gcc #9 4.02 31,784 694 15.55 96% 100% 96% 96%
4.6 Node js #3 4.04 87,468 1122 15.91 99% 98% 98% 98%
4.6 F# .NET Core #5 4.07 63,768 897 15.96 97% 98% 98% 99%
4.6 F# .NET Core 4.09 63,596 877 16.02 97% 98% 98% 99%
4.7 Lisp SBCL #4 4.14 46,808 2447 16.42 100% 99% 99% 99%
4.7 Java  #2 4.15 70,040 796 16.34 98% 98% 99% 98%
4.8 Java #6 4.24 67,696 802 16.75 99% 99% 98% 98%
5.2 Lisp SBCL 4.62 46,728 2473 16.54 77% 99% 97% 84%
5.4 Go 4.80 33,256 823 19.16 100% 100% 100% 100%
5.6 C++ g++ #8 4.94 34,472 742 13.58 38% 38% 100% 100%
5.8 Java #4 5.12 66,588 660 15.80 50% 97% 78% 83%
7.4 Free Pascal #7 6.54 36,244 950 26.10 100% 100% 100% 100%
7.4 Haskell GHC #2 6.59 35,900 782 26.30 100% 100% 100% 100%
7.6 Chapel 6.73 35,996 460 26.77 100% 99% 99% 99%
7.7 Go #2 6.80 33,280 837 27.11 100% 100% 100% 100%
7.7 Go #6 6.84 32,972 700 27.26 100% 100% 100% 100%
8.4 Free Pascal #6 7.45 35,696 802 29.72 100% 100% 99% 100%
8.4 Java #3 7.49 68,900 903 29.69 99% 99% 99% 99%
8.5 OCaml 7.55 4,944 717 30.12 100% 100% 100% 100%
12 Intel Fortran #4 10.23 62,332 618 26.39 91% 33% 92% 43%
12 Free Pascal 10.95 33,008 846 29.44 38% 94% 44% 94%
12 Free Pascal #2 10.97 33,008 846 29.56 44% 38% 94% 94%
12 Lisp SBCL #3 11.04 50,444 894 29.62 100% 34% 100% 34%
14 Dart #2 12.00 216,820 911 32.34 37% 36% 98% 98%
15 C++ g++ #5 13.32 33,572 590 13.33 0% 100% 0% 0%
15 Racket #4 13.69 122,236 801 52.31 95% 95% 96% 95%
19 C++ g++ #2 17.27 34,424 692 17.44 0% 100% 0% 0%
29 C gcc #2 25.32 592 400 25.67 0% 1% 100% 0%
30 Swift 26.29 6,940 394 26.53 100% 1% 0% 0%
30 Free Pascal #3 26.50 8 526 26.67 0% 0% 100% 0%
30 Ada 2012 GNAT #2 26.95 1,784 577 27.03 0% 0% 100% 0%
31 Julia 27.09 198,028 373 27.61 1% 1% 100% 1%
31 Java 27.71 34,588 665 27.78 0% 100% 0% 0%
32 OCaml #6 28.19 2,892 444 28.29 0% 0% 100% 0%
32 C++ g++ #3 28.41 1,608 414 28.71 0% 10% 0% 91%
51 Intel Fortran #5 44.85 44,012 520 45.10 0% 100% 0% 0%
55 Racket #3 48.83 38,000 802 49.16 0% 0% 0% 100%
58 Racket #2 51.35 36,784 585 51.85 0% 0% 100% 0%
83 Racket 73.27 36,472 517 73.71 0% 0% 100% 0%
83 PHP #3 73.71 123,856 875 294.40 100% 100% 100% 100%
96 Erlang HiPE #4 85.08 55,736 806 5 min 100% 100% 100% 100%
99 Lua #6 87.88 17,912 623 5 min 86% 84% 100% 77%
99 Erlang HiPE #3 88.04 51,732 792 5 min 100% 100% 100% 100%
114 Erlang HiPE #2 101.35 789,156 613 6 min 100% 100% 100% 100%
116 VW Smalltalk #2 102.77 177,904 929 5 min 79% 87% 80% 96%
133 Erlang HiPE 118.51 1,644,508 534 7 min 98% 98% 99% 99%
151 Matz's Ruby #6 133.76 33,612 918 8 min 96% 96% 96% 96%
192 Python 3 #7 170.25 47,568 688 11 min 100% 100% 100% 100%
266 Ruby #2 235.78 59,064 931 15 min 100% 100% 100% 100%
281 Lua #3 249.35 2,520 358 251.57 0% 1% 100% 0%
285 Lua 253.26 2,480 359 255.23 0% 0% 17% 84%
312 PHP 276.66 7,928 449 279.40 1% 100% 0% 0%
328 Lua #2 291.54 1,152 367 293.64 0% 0% 0% 100%
329 Python 3 #2 291.95 464,168 783 17 min 87% 87% 100% 87%
362 VW Smalltalk 5 min 54,292 603 5 min 1% 31% 0% 69%
412 Python 3 #5 6 min 48,500 458 24 min 100% 100% 100% 100%
452 Ruby #5 6 min 60,248 1037 26 min 100% 100% 100% 100%
600 Perl 8 min 43,996 586 35 min 100% 100% 100% 100%
  Ruby #4 12 min 80,396 846 12 min 25% 25% 25% 25%
  Ruby #3 25 min 21,856 307 25 min 1% 100% 0% 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%
Ruby #7 Failed
Ruby #6 Failed
Matz's Ruby #4 Timed Out
Matz's Ruby #7 Failed
Rust #3 Make Error