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++ 0.88 34,608 3542 3.47 98% 100% 98% 97%
1.0 C++ g++ 0.89 23,092 1791 3.49 97% 98% 98% 100%
1.1 Rust #5 0.94 26,316 719 3.71 99% 98% 100% 98%
1.1 C++ g++ #4 0.95 34,620 3095 3.72 99% 100% 98% 97%
1.1 Rust #3 0.97 12,864 1007 3.86 99% 99% 100% 100%
1.1 C++ g++ #6 0.97 22,168 1002 3.85 99% 99% 99% 99%
1.4 C gcc #6 1.26 24,836 1135 5.00 99% 100% 100% 99%
1.5 Rust #6 1.28 28,940 1332 5.08 99% 100% 98% 98%
1.6 Intel Fortran #8 1.41 36,160 957 5.60 99% 99% 99% 100%
1.7 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.0 Julia #7 1.78 224,492 619 6.48 88% 88% 99% 88%
2.3 Julia #5 2.00 263,668 571 7.33 89% 90% 99% 89%
2.5 Julia #3 2.18 269,192 579 7.99 89% 89% 89% 99%
2.8 Julia #6 2.47 239,940 562 6.37 58% 81% 80% 39%
3.1 Julia #4 2.70 240,652 574 6.80 37% 80% 55% 80%
3.6 C gcc #8 3.15 29,148 782 12.10 100% 96% 94% 94%
3.6 C# .NET Core #9 3.19 61,264 816 12.41 97% 97% 98% 97%
3.6 Intel Fortran #6 3.20 62,300 661 10.58 77% 77% 77% 100%
3.6 Rust 3.22 38,980 868 12.58 96% 98% 100% 98%
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%
4.0 C gcc #3 3.50 32,444 763 13.93 99% 99% 100% 100%
4.0 C++ g++ #9 3.50 34,408 726 13.52 96% 100% 95% 95%
4.2 Go #4 3.73 28,764 905 14.88 100% 99% 99% 100%
4.2 Go #3 3.74 29,032 894 14.89 100% 99% 100% 99%
4.3 F# .NET Core #6 3.77 63,096 933 14.76 98% 97% 98% 98%
4.4 C# .NET Core #5 3.91 55,732 839 15.34 97% 97% 99% 98%
4.4 Ada 2012 GNAT #3 3.92 32,424 1819 15.56 99% 99% 99% 99%
4.5 Node js #3 4.01 86,468 1122 15.74 98% 98% 99% 98%
4.5 C gcc #9 4.02 31,784 694 15.55 96% 100% 96% 96%
4.6 Lisp SBCL #4 4.06 45,372 2447 16.15 100% 99% 100% 99%
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 Java  #2 4.14 71,012 796 16.29 99% 99% 98% 98%
4.8 Java #6 4.28 70,704 802 16.86 98% 99% 98% 98%
5.1 Lisp SBCL 4.49 46,468 2473 16.61 100% 99% 87% 84%
5.5 Free Pascal #8 4.84 28,228 974 19.33 100% 100% 100% 100%
5.6 C++ g++ #8 4.94 34,472 742 13.58 38% 38% 100% 100%
5.9 Go 5.24 31,272 823 20.92 100% 100% 100% 100%
6.0 Java #4 5.27 68,012 660 16.22 82% 51% 98% 76%
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 31,748 837 27.09 99% 99% 100% 100%
7.7 Free Pascal #7 6.82 36,684 950 26.84 97% 97% 100% 100%
7.7 Go #6 6.84 30,620 700 27.27 100% 100% 100% 100%
8.5 Java #3 7.49 72,220 903 29.69 99% 99% 99% 99%
8.5 OCaml 7.49 4,940 717 29.88 100% 100% 99% 100%
9.4 Free Pascal #6 8.29 35,536 802 32.98 100% 100% 99% 99%
12 Intel Fortran #4 10.34 62,332 618 26.61 91% 91% 33% 43%
12 Lisp SBCL #3 11.02 49,528 894 29.55 100% 100% 34% 34%
14 Dart #2 12.00 216,820 911 32.34 37% 36% 98% 98%
14 Free Pascal #2 12.43 32,980 846 33.50 95% 37% 95% 43%
14 Free Pascal 12.44 33,012 846 33.52 38% 95% 43% 95%
15 C++ g++ #5 13.32 33,572 590 13.33 0% 100% 0% 0%
16 Racket #4 13.75 130,240 801 52.28 95% 96% 95% 95%
20 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 Ada 2012 GNAT #2 26.95 1,784 577 27.03 0% 0% 100% 0%
31 Julia 27.06 199,164 373 27.59 1% 1% 1% 100%
31 Java 27.71 36,320 665 27.85 0% 0% 0% 100%
31 Free Pascal #3 27.84 8 526 27.92 100% 0% 0% 0%
32 OCaml #6 28.13 2,928 444 28.23 0% 100% 0% 0%
32 C++ g++ #3 28.41 1,608 414 28.71 0% 10% 0% 91%
50 Intel Fortran #5 44.50 44,052 520 44.63 0% 100% 0% 0%
55 Racket #3 48.87 36,680 802 49.15 0% 0% 0% 100%
58 Racket #2 51.29 36,716 585 51.66 100% 0% 0% 0%
83 Racket 73.21 36,320 517 73.70 30% 0% 0% 70%
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%
100 Erlang HiPE #3 88.04 51,732 792 5 min 100% 100% 100% 100%
115 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%
134 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%
193 Python 3 #7 170.25 47,568 688 11 min 100% 100% 100% 100%
267 Ruby #2 235.78 59,064 931 15 min 100% 100% 100% 100%
282 Lua #3 249.35 2,520 358 251.57 0% 1% 100% 0%
286 Lua 253.26 2,480 359 255.23 0% 0% 17% 84%
313 PHP 276.66 7,928 449 279.40 1% 100% 0% 0%
330 Lua #2 291.54 1,152 367 293.64 0% 0% 0% 100%
330 Python 3 #2 291.95 464,168 783 17 min 87% 87% 100% 87%
363 VW Smalltalk 5 min 54,292 603 5 min 1% 31% 0% 69%
414 Python 3 #5 6 min 48,500 458 24 min 100% 100% 100% 100%
454 Ruby #5 6 min 60,248 1037 26 min 100% 100% 100% 100%
603 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 #6 Failed
Ruby #7 Failed
Matz's Ruby #4 Timed Out
Matz's Ruby #7 Failed