The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C gcc #6 1.64 26,188 1135 6.54 100% 100% 100% 99%
1.1 Rust #6 1.74 33,712 1332 6.86 98% 100% 98% 98%
1.1 C++ g++ #6 1.82 29,092 1002 7.11 98% 97% 97% 100%
1.2 Rust #3 1.94 13,912 1007 7.72 99% 100% 99% 100%
2.0 Swift #3 3.30 38,896 1136 13.09 99% 99% 99% 100%
2.5 Rust 4.06 40,492 868 16.03 98% 99% 100% 100%
3.2 C++ g++ #9 5.32 34,396 726 20.46 95% 100% 95% 95%
3.3 Go #4 5.47 31,040 905 21.73 99% 99% 100% 99%
3.3 Go #3 5.47 31,040 894 21.75 100% 99% 99% 99%
3.4 Ada 2012 GNAT #3 5.60 32,388 1819 22.18 99% 99% 99% 99%
3.4 C gcc #3 5.61 32,492 763 22.32 100% 100% 100% 99%
3.4 Chapel #2 5.65 36,264 620 22.34 100% 99% 99% 99%
3.6 C# .NET Core #8 5.86 66,856 794 22.99 99% 98% 98% 99%
3.6 C++ g++ 5.97 29,080 1791 5.96 0% 1% 100% 0%
3.7 C gcc 6.08 26,976 822 24.27 100% 100% 100% 100%
3.7 C++ g++ #7 6.08 34,688 1017 24.22 100% 100% 100% 100%
4.0 C# .NET Core #7 6.52 66,352 923 25.64 98% 100% 98% 98%
4.0 Fortran Intel #6 6.53 64,332 661 22.52 82% 82% 82% 100%
4.1 F# .NET Core 6.67 67,060 877 26.23 99% 98% 98% 99%
4.1 F# .NET Core #5 6.67 66,828 897 26.23 98% 98% 98% 100%
4.1 C# .NET Core #4 6.79 66,436 672 26.73 98% 99% 99% 98%
4.2 C# .NET Core #6 6.84 67,096 755 26.93 98% 100% 98% 98%
4.2 Java  #2 6.96 76,748 796 27.07 98% 98% 96% 98%
4.3 C++ g++ #4 7.14 33,060 1035 28.46 100% 100% 100% 100%
4.5 C# .NET Core #5 7.36 64,580 839 28.95 100% 98% 98% 98%
4.5 Java #6 7.40 76,888 802 28.75 97% 97% 97% 97%
4.9 C++ g++ #8 8.03 34,388 742 21.77 36% 100% 100% 37%
4.9 Java AOT #2 8.12 38,412 796 32.28 99% 100% 100% 99%
5.0 Java AOT #6 8.18 38,424 802 32.51 100% 99% 99% 100%
5.0 F# .NET Core #4 8.29 67,080 886 32.69 98% 99% 99% 98%
5.3 Java AOT #4 8.68 37,756 660 32.33 97% 100% 89% 87%
5.4 Java #4 8.88 64,788 660 26.77 59% 97% 65% 82%
5.4 Lisp SBCL 8.95 49,812 2473 32.39 95% 88% 100% 80%
6.4 Go 10.45 34,128 823 41.74 100% 100% 100% 100%
6.7 Java #3 10.95 78,456 903 42.88 99% 98% 97% 98%
6.9 C# .NET Core #3 11.41 67,784 701 45.06 99% 100% 99% 99%
7.1 Haskell GHC #2 11.60 38,744 782 46.30 100% 100% 100% 100%
7.1 C# .NET Core 11.66 67,848 798 46.07 98% 99% 99% 98%
7.5 Chapel 12.39 35,984 455 49.28 100% 99% 99% 99%
7.6 F# .NET Core #3 12.44 68,076 800 49.16 98% 100% 99% 98%
7.7 Go #6 12.70 31,164 700 50.66 100% 100% 100% 100%
8.2 Java AOT #3 13.52 38,596 903 53.90 100% 100% 100% 100%
8.3 F# .NET Core #2 13.71 40,752 1043 54.27 99% 99% 100% 99%
8.4 OCaml 13.77 4,864 717 54.87 100% 100% 100% 100%
8.9 Free Pascal #5 14.67 29,632 845 58.61 100% 100% 100% 100%
8.9 TypeScript #2 14.69 110,220 1034 51.64 85% 90% 98% 79%
10 Free Pascal #4 16.60 29,764 774 66.35 100% 100% 100% 100%
11 Node js 18.05 620,096 748 64.84 87% 92% 97% 84%
11 Lisp SBCL #3 18.13 49,116 894 48.68 40% 95% 36% 100%
11 Go #2 18.36 33,064 837 55.46 89% 67% 67% 79%
12 Fortran Intel #4 19.02 63,920 618 48.98 50% 33% 92% 84%
12 C gcc #8 19.18 30,536 782 19.18 100% 0% 2% 0%
12 Racket #4 19.55 124,160 801 74.53 95% 95% 95% 96%
13 Dart #2 21.45 270,444 911 57.88 96% 40% 37% 98%
13 C gcc #4 21.77 30,280 799 21.76 100% 0% 0% 1%
14 C gcc #9 22.42 31,320 694 22.41 0% 1% 100% 0%
14 Free Pascal 23.38 33,060 846 61.96 36% 93% 43% 93%
14 Free Pascal #2 23.39 33,060 846 61.94 36% 100% 37% 93%
14 C++ g++ #5 23.69 33,620 590 23.68 100% 1% 0% 0%
18 C++ g++ #2 29.63 34,384 692 29.62 100% 0% 1% 0%
27 Java 43.80 32,932 665 43.88 1% 0% 0% 100%
29 C gcc #2 47.29 824 400 47.27 88% 0% 1% 13%
30 Swift 49.43 7,176 394 49.42 0% 100% 1% 0%
32 Ada 2012 GNAT #2 51.79 2,008 577 51.77 100% 0% 0% 1%
32 Java AOT 52.41 5,568 665 52.40 0% 1% 100% 0%
34 OCaml #6 55.15 2,840 444 55.13 0% 100% 1% 0%
34 Free Pascal #3 56.34 8 526 56.33 100% 1% 1% 0%
34 Fortran Intel #5 56.50 33,416 520 56.49 0% 0% 1% 100%
35 Truffle Ruby #2 57.29 573,872 954 220.18 97% 96% 96% 96%
46 Racket #3 74.91 30,992 802 74.91 100% 0% 1% 0%
53 Racket #2 86.91 30,944 585 86.90 10% 45% 0% 46%
54 Truffle Ruby #3 88.30 475,924 307 122.08 40% 28% 31% 41%
56 C++ g++ #3 91.61 1,708 414 91.58 1% 45% 0% 55%
70 Erlang HiPE #4 115.08 49,176 806 7 min 100% 100% 100% 100%
72 Racket 118.07 30,772 517 118.07 0% 77% 24% 0%
72 PHP #3 118.07 137,452 875 7 min 100% 100% 100% 100%
82 Erlang HiPE #3 134.75 47,640 792 8 min 100% 100% 100% 100%
84 Erlang HiPE 137.88 1,637,068 534 8 min 99% 98% 97% 98%
89 Erlang HiPE #2 146.06 822,788 613 9 min 100% 99% 99% 99%
99 VW Smalltalk #2 163.32 ? 958 ? 92% 96% 85% 82%
101 Hack 165.57 130,400 449 165.46 1% 35% 65% 1%
113 C# .NET Core #2 185.62 62,956 484 185.60 96% 0% 0% 4%
159 Lua #6 260.80 22,556 623 14 min 82% 83% 84% 96%
170 Python 3 #7 279.68 49,344 688 18 min 100% 100% 100% 100%
264 Python 3 #2 7 min 171,604 783 27 min 97% 93% 93% 96%
271 Python 3 #5 7 min 48,716 458 29 min 100% 100% 100% 100%
284 PHP 7 min 8,964 449 7 min 2% 0% 0% 98%
293 Ruby #5 8 min 96,460 1044 31 min 100% 100% 100% 100%
314 Ruby #2 8 min 181,644 954 34 min 100% 100% 100% 100%
337 Ruby #6 9 min 118,148 918 34 min 95% 94% 94% 95%
349 Ruby #7 9 min 121,712 973 36 min 95% 95% 94% 95%
356 VW Smalltalk 9 min 54,656 639 9 min 79% 21% 0% 0%
420 Hack #2 11 min 130,888 467 11 min 72% 10% 12% 8%
432 Lua #3 11 min 2,940 358 11 min 0% 100% 1% 0%
432 Lua 11 min 2,884 359 11 min 0% 100% 1% 0%
444 Perl 12 min 42,964 586 48 min 100% 100% 100% 100%
493 JRuby #7 13 min 833,092 973 52 min 98% 98% 98% 98%
516 JRuby #4 14 min 852,612 846 55 min 98% 98% 98% 98%
516 Ruby #4 14 min 75,456 846 14 min 29% 23% 24% 31%
538 Lua #2 14 min 1,364 367 14 min 0% 1% 100% 0%
  Ruby #3 28 min 15,968 307 28 min 3% 81% 17% 1%
  JRuby #3 42 min 765,116 307 42 min 9% 7% 69% 18%
  Matz's Ruby #6 1h 24 min 262,592 918 5h 30 min 98% 98% 98% 98%
  Matz's Ruby #3 3h 56 min 3,432 307 3h 56 min 41% 21% 24% 16%
C gcc #7 Make Error
Dart Failed
Fortran Intel #3 Bad Output
Fortran Intel #7 Timed Out
Fortran Intel Bad Output
Fortran Intel #2 Bad Output
Hack #3 Bad Output
Matz's Ruby #7 Failed
Matz's Ruby #2 Timed Out
Matz's Ruby #5 Failed
Matz's Ruby #4 Timed Out
JRuby #5 Bad Output
Truffle Ruby #5 Bad Output
Truffle Ruby #7 Failed
Truffle Ruby #6 Failed
Truffle Ruby #4 Failed
Rust #4 Make Error
TypeScript Failed