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++ 1.51 25,708 1791 6.01 99% 99% 99% 100%
1.1 C gcc #6 1.64 27,016 1135 6.54 100% 99% 100% 100%
1.1 Rust #6 1.70 30,560 1332 6.69 98% 98% 98% 99%
1.2 C++ g++ #4 1.78 34,656 3095 6.98 97% 98% 98% 99%
1.2 C++ g++ #6 1.82 28,996 1002 7.18 100% 98% 98% 98%
1.3 Rust #3 1.97 12,400 1007 7.85 99% 100% 99% 99%
1.3 Rust #5 1.98 32,136 719 7.80 98% 100% 98% 98%
1.7 Julia #7 2.64 224,604 619 9.33 98% 85% 85% 85%
2.0 Julia #5 2.95 264,236 571 10.65 99% 87% 87% 87%
2.1 Swift #3 3.19 39,412 1138 12.68 99% 100% 99% 99%
2.3 Julia #3 3.51 268,608 579 12.76 88% 88% 88% 99%
2.4 Intel Fortran #8 3.64 35,480 957 14.47 99% 99% 99% 100%
2.5 Julia #6 3.72 240,172 562 9.33 78% 78% 37% 58%
3.0 Julia #4 4.51 241,056 574 11.21 80% 79% 35% 55%
3.2 Haskell GHC #3 4.87 36,328 1975 19.39 99% 100% 100% 99%
3.3 C gcc #8 4.98 32,220 782 19.46 97% 97% 97% 100%
3.4 C gcc #4 5.17 27,132 799 20.64 100% 100% 100% 100%
3.4 Rust 5.18 39,000 868 20.39 97% 100% 99% 98%
3.5 C++ g++ #9 5.33 34,464 726 20.51 95% 95% 99% 95%
3.6 Go #3 5.48 31,196 894 21.83 100% 100% 99% 99%
3.6 Go #4 5.50 30,920 905 21.87 99% 99% 99% 100%
3.7 C# .NET Core #9 5.54 65,288 816 21.79 98% 100% 98% 98%
3.7 Ada 2012 GNAT #3 5.59 36,056 1819 22.24 100% 100% 99% 99%
3.8 F# .NET Core #6 5.72 65,996 933 22.47 98% 98% 97% 99%
3.8 C gcc #9 5.80 32,676 694 22.38 95% 100% 95% 95%
3.8 Chapel #2 5.80 36,344 620 22.96 99% 99% 99% 99%
3.9 Java  #2 5.93 76,272 796 23.28 97% 99% 98% 98%
4.0 C gcc #7 6.08 33,372 994 24.25 100% 100% 100% 100%
4.0 C++ g++ #7 6.09 34,604 1017 24.26 100% 100% 100% 100%
4.1 C gcc 6.16 27,384 822 24.61 100% 100% 100% 100%
4.2 F# .NET Core #5 6.35 65,712 897 24.98 98% 98% 98% 100%
4.2 C gcc #3 6.36 32,524 763 25.36 100% 100% 100% 100%
4.2 F# .NET Core 6.42 66,628 877 25.22 99% 98% 98% 98%
4.4 Node js #3 6.72 88,548 1122 26.50 98% 99% 99% 98%
4.5 Intel Fortran #6 6.76 64,604 661 23.27 82% 82% 82% 100%
4.5 C# .NET Core #5 6.86 60,720 839 27.00 98% 99% 99% 98%
4.7 Java #6 7.15 76,416 802 28.18 98% 99% 99% 98%
5.3 C++ g++ #8 8.03 34,384 742 21.95 53% 85% 36% 100%
5.6 Free Pascal #8 8.52 29,120 974 34.00 100% 100% 100% 100%
5.7 Java #4 8.67 67,336 660 26.95 93% 79% 55% 83%
5.9 Lisp SBCL 8.90 50,644 2473 33.52 99% 100% 85% 93%
6.5 Free Pascal #7 9.88 36,628 950 39.44 100% 100% 100% 100%
7.0 Go 10.58 32,844 823 42.28 100% 100% 100% 100%
7.1 Java #3 10.75 77,776 903 42.52 99% 99% 99% 99%
7.1 Chapel 10.76 36,080 455 42.78 100% 99% 99% 99%
7.7 Haskell GHC #2 11.63 39,948 782 46.42 100% 100% 100% 100%
8.2 Go #2 12.43 32,552 837 49.61 100% 100% 100% 100%
8.5 Go #6 12.81 34,144 700 51.13 100% 100% 100% 100%
9.1 OCaml 13.82 5,024 717 55.17 100% 100% 100% 100%
9.4 Free Pascal #6 14.13 35,832 802 56.48 100% 100% 100% 100%
12 Lisp SBCL #3 18.01 50,264 894 48.64 100% 35% 100% 35%
13 Intel Fortran #4 19.04 64,320 618 49.24 85% 39% 92% 42%
13 Racket #4 19.59 127,920 801 74.73 95% 96% 95% 95%
14 Dart #2 20.98 173,508 911 57.16 83% 49% 99% 42%
15 Free Pascal 22.69 33,128 846 61.42 96% 41% 96% 38%
15 Free Pascal #2 22.69 33,128 846 61.43 37% 41% 96% 96%
15 C++ g++ #5 23.36 33,616 590 23.63 100% 0% 1% 0%
20 C++ g++ #2 29.58 34,480 692 29.95 1% 1% 0% 100%
29 Java 43.70 34,524 665 44.25 0% 1% 100% 0%
31 Julia 46.59 199,380 373 47.38 100% 1% 0% 0%
31 C gcc #2 47.40 840 400 47.98 0% 1% 0% 100%
33 Swift 49.63 6,776 394 50.17 25% 0% 0% 76%
34 Ada 2012 GNAT #2 51.57 2,036 577 52.12 1% 0% 100% 1%
36 C++ g++ #3 54.02 1,752 414 55.50 0% 1% 2% 100%
37 OCaml #6 55.33 2,988 444 55.88 100% 0% 0% 1%
37 Free Pascal #3 56.11 8 526 56.73 0% 100% 1% 0%
37 Intel Fortran #5 56.53 33,420 520 57.16 1% 0% 0% 100%
49 Racket #3 73.48 39,996 802 74.21 100% 0% 0% 1%
57 Racket #2 86.63 38,016 585 87.44 100% 0% 0% 0%
70 PHP #3 105.89 125,020 875 7 min 100% 100% 100% 100%
73 Erlang HiPE #3 110.22 52,080 792 7 min 100% 100% 100% 100%
73 Erlang HiPE #2 110.64 738,676 613 7 min 99% 100% 99% 99%
75 Erlang HiPE #4 114.00 48,104 806 7 min 100% 100% 100% 100%
78 Racket 118.10 36,724 517 119.53 1% 0% 0% 100%
78 Erlang HiPE 118.29 1,635,892 534 7 min 97% 98% 97% 98%
111 VW Smalltalk #2 167.01 176,972 929 9 min 89% 96% 75% 88%
170 Lua #6 256.77 22,712 623 14 min 99% 86% 87% 78%
172 Python 3 #7 259.50 48,192 688 17 min 100% 100% 100% 100%
222 Ruby #2 5 min 66,188 931 22 min 100% 100% 100% 100%
279 PHP 7 min 7,956 449 7 min 8% 39% 56% 1%
281 Python 3 #2 7 min 92,956 783 28 min 99% 99% 99% 100%
292 Python 3 #5 7 min 47,948 458 29 min 100% 100% 100% 100%
347 Ruby #5 8 min 60,080 1037 34 min 100% 100% 100% 100%
388 VW Smalltalk 9 min 54,816 603 10 min 48% 6% 5% 45%
455 Perl 11 min 44,096 586 45 min 100% 100% 100% 100%
472 Lua 11 min 2,848 359 12 min 0% 0% 52% 49%
475 Lua #3 11 min 3,016 358 12 min 100% 1% 0% 0%
585 Lua #2 14 min 1,336 367 14 min 0% 0% 53% 48%
  Ruby #4 20 min 79,152 846 20 min 21% 28% 30% 22%
  Ruby #3 34 min 25,912 307 35 min 16% 32% 35% 19%
  Matz's Ruby #2 1h 11 min 68,672 931 4h 46 min 100% 100% 100% 100%
  Matz's Ruby #6 1h 23 min 783,136 918 5h 28 min 99% 98% 98% 98%
  Matz's Ruby #3 3h 54 min 3,880 307 3h 57 min 43% 39% 10% 10%
Ruby #7 Failed
Ruby #6 Failed
Matz's Ruby #7 Failed
Matz's Ruby #5 Failed
Matz's Ruby #4 Timed Out