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.65 32,684 1135 6.53 99% 99% 100% 99%
1.0 C++ g++ #6 1.73 34,064 1002 6.80 98% 98% 98% 99%
1.1 C gcc #5 1.76 28,692 911 6.96 99% 99% 99% 100%
1.1 Rust #4 1.90 38,724 1160 7.48 98% 98% 99% 98%
1.2 Rust #3 1.94 26,380 1007 7.72 99% 100% 100% 99%
2.0 Swift #3 3.32 41,236 1136 13.17 99% 99% 99% 100%
2.9 C gcc #8 4.88 32,824 782 18.94 96% 96% 96% 100%
3.0 Rust 4.89 42,364 868 19.33 99% 100% 99% 99%
3.0 Chapel #2 5.04 83,820 620 19.92 100% 99% 99% 99%
3.1 C++ g++ #9 5.33 34,008 726 20.53 100% 95% 95% 96%
3.3 C++ g++ #8 7.88 33,976 742 21.41 100% 37% 100% 36%
3.4 Ada 2005 GNAT #3 5.58 33,932 1805 22.09 99% 100% 99% 99%
3.4 Go #3 5.64 31,312 894 22.41 99% 100% 99% 99%
3.5 C gcc #9 6.00 32,552 694 23.14 100% 95% 95% 96%
3.6 C gcc #4 5.88 30,224 799 23.40 100% 100% 100% 100%
3.6 C gcc #3 5.88 32,512 763 23.44 100% 100% 100% 100%
3.7 C++ g++ #5 23.88 33,624 590 23.86 1% 0% 100% 0%
3.7 C++ g++ #7 6.08 34,152 1017 24.20 100% 100% 100% 100%
3.7 C gcc #7 6.08 33,040 994 24.22 100% 100% 100% 100%
3.9 C gcc 6.41 27,636 822 25.54 100% 100% 100% 100%
4.2 C++ g++ #4 6.92 33,008 1035 27.57 100% 100% 100% 100%
4.3 Java  #2 7.10 90,588 796 27.92 99% 99% 98% 98%
4.3 Java #6 7.15 89,076 802 28.14 98% 98% 100% 98%
4.4 Lisp SBCL 7.87 70,880 2459 28.53 85% 97% 100% 82%
4.5 C++ g++ #2 29.35 34,060 687 29.34 1% 100% 1% 0%
5.0 C# .NET Core #5 8.27 80,888 839 32.68 99% 99% 100% 99%
5.8 Go 9.53 33,708 823 37.96 100% 100% 100% 100%
6.6 Java 42.92 27,108 665 42.96 1% 100% 1% 0%
6.6 Java #3 10.89 90,812 903 43.01 99% 99% 99% 99%
6.8 Go #6 11.07 32,508 700 44.10 100% 100% 100% 100%
6.9 C# .NET Core #3 11.38 84,512 701 45.03 99% 99% 100% 99%
6.9 Lisp SBCL #3 16.86 61,252 888 45.26 39% 94% 100% 37%
7.0 C# .NET Core 11.61 87,280 798 45.95 99% 99% 99% 100%
7.1 Haskell GHC #2 11.64 41,180 782 46.40 100% 100% 100% 100%
7.2 C gcc #2 47.32 808 400 47.31 100% 0% 0% 1%
7.3 Chapel 12.01 85,780 455 47.69 100% 100% 100% 100%
7.5 Fortran Intel #4 18.90 62,864 611 48.78 92% 33% 92% 42%
7.5 F# .NET Core #3 12.43 85,692 800 49.10 99% 99% 100% 99%
7.7 Go #2 16.57 34,168 837 50.04 100% 68% 68% 68%
7.8 Ada 2005 GNAT #2 51.16 1,936 572 51.14 1% 1% 0% 100%
7.9 Swift 51.74 7,280 394 51.73 1% 1% 100% 0%
8.3 F# .NET Core #2 13.74 50,584 1043 54.35 100% 99% 99% 99%
8.4 OCaml 13.76 8,240 710 54.76 100% 100% 100% 100%
8.5 OCaml #6 55.23 2,632 444 55.21 100% 1% 0% 0%
8.6 Dart 20.51 98,908 901 55.88 99% 39% 38% 99%
8.6 Pascal Free Pascal #3 56.31 8 520 56.30 0% 0% 100% 1%
8.7 Fortran Intel #5 57.03 34,100 508 57.02 0% 0% 100% 1%
9.0 Pascal Free Pascal #5 14.68 31,560 820 58.59 100% 100% 100% 100%
9.5 Pascal Free Pascal 23.32 32,928 820 61.87 93% 43% 93% 37%
9.5 Pascal Free Pascal #2 23.31 32,912 820 61.87 88% 100% 42% 37%
9.9 Node.js 17.95 641,352 778 64.47 98% 82% 86% 95%
10 Pascal Free Pascal #4 16.61 30,492 748 66.32 100% 100% 100% 100%
11 Racket #3 74.46 27,392 797 74.44 100% 0% 1% 0%
13 C++ g++ #3 83.90 1,744 414 83.88 0% 1% 100% 1%
13 Racket #2 86.09 29,928 585 86.06 100% 0% 1% 0%
18 Racket 120.68 25,892 517 120.64 32% 33% 1% 36%
19 Hack #3 31.24 125,920 864 122.48 98% 98% 98% 99%
19 Hack 125.28 116,064 441 125.22 44% 32% 25% 1%
69 Hack #2 7 min 116,556 458 7 min 50% 16% 3% 33%
76 PHP #3 125.17 136,776 863 8 min 100% 100% 100% 100%
77 Erlang HiPE #2 127.17 1,303,564 613 8 min 98% 99% 99% 99%
78 PHP 8 min 8,688 443 8 min 65% 12% 2% 23%
78 Erlang HiPE 131.23 1,711,344 534 8 min 99% 97% 97% 97%
86 Lua 9 min 2,792 359 9 min 1% 1% 100% 1%
87 Lua #3 9 min 2,656 358 9 min 1% 2% 16% 84%
89 Smalltalk VW #2 9 min 55,640 467 9 min 0% 100% 1% 1%
105 Lua #2 11 min 1,148 367 11 min 1% 6% 95% 1%
107 Lua #6 201.89 23,560 623 11 min 84% 94% 85% 83%
167 Python 3 #7 273.43 53,416 686 18 min 100% 100% 100% 100%
175 Ruby JRuby #3 18 min 684,340 307 19 min 33% 25% 18% 28%
270 Python 3 #2 7 min 13,748 777 29 min 100% 100% 100% 100%
274 Python 3 #5 7 min 52,000 449 29 min 100% 100% 100% 100%
284 Ruby #5 7 min 69,656 1019 30 min 100% 100% 100% 100%
310 Erlang #2 8 min 1,285,708 613 33 min 100% 100% 100% 100%
313 Erlang 8 min 1,649,380 534 34 min 99% 99% 100% 99%
332 Ruby #6 9 min 148,668 885 36 min 95% 95% 95% 95%
344 Ruby #2 9 min 138,736 925 37 min 100% 100% 100% 100%
472 Perl 12 min 45,540 579 51 min 100% 100% 100% 100%
513 Ruby JRuby #4 14 min 2,290,948 849 55 min 98% 98% 98% 98%
585 Ruby JRuby #5 16 min 1,811,060 1019 1h 03 min 98% 98% 98% 98%
C# .NET Core #2 Failed
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Racket #4 Timed Out
TypeScript Timed Out