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 32,308 1332 6.69 98% 98% 99% 98%
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,224 1007 7.85 99% 100% 99% 99%
1.3 Rust #5 1.98 31,884 719 7.78 98% 98% 98% 99%
1.9 Julia #5 2.90 260,696 571 10.67 89% 89% 91% 99%
2.1 Swift #3 3.19 39,412 1138 12.68 99% 100% 99% 99%
2.1 Julia #3 3.24 260,048 579 11.83 99% 89% 89% 88%
2.4 Intel Fortran #8 3.64 35,480 957 14.47 99% 99% 99% 100%
2.4 Julia #6 3.70 244,236 562 9.29 58% 37% 78% 78%
2.7 Julia #4 4.12 232,628 574 10.21 79% 78% 35% 56%
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 Rust 5.17 38,992 868 20.40 98% 99% 100% 97%
3.4 C gcc #4 5.17 27,132 799 20.64 100% 100% 100% 100%
3.5 C++ g++ #9 5.33 34,464 726 20.51 95% 95% 99% 95%
3.6 Go #4 5.47 31,088 905 21.77 100% 99% 99% 99%
3.6 Go #3 5.48 30,844 894 21.77 99% 99% 100% 99%
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 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 C# .NET Core #8 5.84 65,992 794 22.95 97% 98% 99% 97%
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.1 C# .NET Core #7 6.26 65,828 923 24.63 98% 98% 98% 99%
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 87,356 1122 26.51 98% 98% 98% 99%
4.5 Intel Fortran #6 6.76 64,604 661 23.27 82% 82% 82% 100%
4.5 C# .NET Core #4 6.80 65,812 672 26.77 98% 98% 98% 100%
4.5 Java  #2 6.83 79,108 796 26.86 97% 99% 99% 99%
4.5 C# .NET Core #6 6.84 65,804 755 26.94 98% 99% 99% 98%
4.5 C# .NET Core #5 6.86 60,720 839 27.00 98% 99% 99% 98%
5.2 F# .NET Core #4 7.86 66,704 886 31.02 99% 98% 98% 100%
5.3 C++ g++ #8 8.03 34,384 742 21.95 53% 85% 36% 100%
5.4 Java #6 8.16 79,076 802 32.16 99% 99% 98% 98%
5.6 Free Pascal #8 8.52 29,120 974 34.00 100% 100% 100% 100%
5.7 Java #4 8.69 68,124 660 27.08 80% 84% 50% 98%
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.1 Chapel 10.76 36,080 455 42.78 100% 99% 99% 99%
7.5 C# .NET Core #3 11.41 66,664 701 45.12 99% 99% 99% 99%
7.6 F# .NET Core #2 11.50 40,832 1043 45.47 98% 99% 100% 99%
7.6 Java #3 11.50 80,640 903 45.54 99% 99% 99% 100%
7.7 C# .NET Core 11.61 66,584 798 45.95 99% 99% 99% 99%
7.7 Haskell GHC #2 11.63 39,948 782 46.42 100% 100% 100% 100%
8.2 F# .NET Core #3 12.45 67,596 800 49.26 99% 99% 99% 100%
8.3 Go #2 12.47 33,064 837 49.78 100% 100% 100% 100%
8.5 Go #6 12.80 32,720 700 51.11 100% 100% 100% 100%
9.1 OCaml 13.82 5,024 717 55.17 100% 100% 100% 100%
9.3 TypeScript #2 14.11 96,492 1034 50.70 81% 81% 98% 99%
9.4 Free Pascal #6 14.13 35,832 802 56.48 100% 100% 100% 100%
11 Node js 16.39 631,872 748 59.70 91% 91% 96% 86%
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 Go 20.88 34,272 823 42.29 35% 0% 100% 67%
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.87 35,732 665 44.31 100% 1% 0% 0%
29 Julia 44.17 190,980 373 45.09 40% 1% 1% 60%
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%
114 C# .NET Core #2 172.87 45,108 484 176.11 31% 44% 26% 1%
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%
222 TypeScript 5 min 38,148 396 5 min 19% 18% 27% 37%
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