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.1 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%
2.0 Swift #3 3.32 41,532 1136 13.18 100% 99% 99% 100%
3.0 C gcc #8 4.88 32,824 782 18.94 96% 96% 96% 100%
3.0 Rust 4.93 71,144 868 19.48 99% 98% 100% 100%
3.1 Chapel #2 5.04 83,820 620 19.92 100% 99% 99% 99%
3.2 C++ g++ #9 5.33 34,008 726 20.53 100% 95% 95% 96%
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.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.6 C gcc #9 6.00 32,552 694 23.14 100% 95% 95% 96%
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.7 Fortran Intel #6 6.12 61,792 655 20.81 81% 81% 81% 100%
3.9 C gcc 6.41 27,636 822 25.54 100% 100% 100% 100%
4.1 C# .NET Core #4 6.76 73,848 672 26.66 99% 99% 100% 98%
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.5 C# .NET Core #5 7.33 69,880 839 28.90 98% 99% 99% 98%
4.8 Lisp SBCL 7.87 70,880 2459 28.53 85% 97% 100% 82%
4.8 C++ g++ #8 7.88 33,976 742 21.41 100% 37% 100% 36%
5.8 Go 9.53 33,708 823 37.96 100% 100% 100% 100%
6.6 Java #3 10.89 90,812 903 43.01 99% 99% 99% 99%
6.7 Go #6 11.07 32,508 700 44.10 100% 100% 100% 100%
6.9 C# .NET Core #3 11.37 85,536 701 44.99 99% 100% 99% 99%
7.1 C# .NET Core 11.61 83,672 798 45.94 99% 99% 99% 100%
7.3 Haskell GHC #2 11.95 42,008 782 47.64 100% 100% 100% 100%
7.3 Chapel 12.01 85,780 455 47.69 100% 100% 100% 100%
7.6 F# .NET Core #3 12.46 88,788 800 49.15 99% 100% 99% 99%
8.4 OCaml 13.78 8,300 710 54.76 100% 100% 100% 100%
8.4 F# .NET Core #2 13.86 47,700 1043 54.70 99% 100% 99% 99%
8.9 Pascal Free Pascal #5 14.68 31,560 820 58.59 100% 100% 100% 100%
10 Go #2 16.57 34,168 837 50.04 100% 68% 68% 68%
10 Pascal Free Pascal #4 16.61 30,492 748 66.32 100% 100% 100% 100%
10 Lisp SBCL #3 16.86 61,252 888 45.26 39% 94% 100% 37%
11 Node.js 17.95 567,152 778 64.66 83% 84% 98% 97%
11 Fortran Intel #4 18.90 62,864 611 48.78 92% 33% 92% 42%
12 Dart 20.54 101,064 901 56.00 99% 39% 99% 38%
14 Pascal Free Pascal #2 23.31 32,912 820 61.87 88% 100% 42% 37%
14 Pascal Free Pascal 23.32 32,928 820 61.87 93% 43% 93% 37%
15 C++ g++ #5 23.88 33,624 590 23.86 1% 0% 100% 0%
18 C++ g++ #2 29.35 34,060 687 29.34 1% 100% 1% 0%
19 Hack #3 31.24 125,920 864 122.48 98% 98% 98% 99%
26 Java 42.92 27,108 665 42.96 1% 100% 1% 0%
29 C gcc #2 47.32 808 400 47.31 100% 0% 0% 1%
31 Ada 2005 GNAT #2 51.16 1,936 572 51.14 1% 1% 0% 100%
31 Swift 51.79 7,420 394 51.78 0% 1% 1% 100%
33 OCaml #6 55.11 2,636 444 55.10 0% 1% 1% 100%
34 Pascal Free Pascal #3 56.31 8 520 56.30 0% 0% 100% 1%
35 Fortran Intel #5 57.03 34,100 508 57.02 0% 0% 100% 1%
45 Racket #3 74.46 27,392 797 74.44 100% 0% 1% 0%
51 C++ g++ #3 83.90 1,744 414 83.88 0% 1% 100% 1%
52 Racket #2 86.09 29,928 585 86.06 100% 0% 1% 0%
73 Racket 120.68 25,892 517 120.64 32% 33% 1% 36%
75 C# .NET Core #2 124.23 71,072 484 124.26 23% 5% 21% 52%
76 PHP #3 125.17 136,776 863 8 min 100% 100% 100% 100%
76 Hack 125.28 116,064 441 125.22 44% 32% 25% 1%
77 Erlang HiPE #2 127.17 1,303,564 613 8 min 98% 99% 99% 99%
80 Erlang HiPE 131.23 1,711,344 534 8 min 99% 97% 97% 97%
123 Lua #6 201.89 23,560 623 11 min 84% 94% 85% 83%
131 Smalltalk VW #2 214.93 ? 940 ? 28% 75% 68% 98%
166 Python 3 #7 273.43 53,416 686 18 min 100% 100% 100% 100%
270 Python 3 #2 7 min 13,748 777 29 min 100% 100% 100% 100%
272 Hack #2 7 min 116,556 458 7 min 50% 16% 3% 33%
274 Python 3 #5 7 min 52,000 449 29 min 100% 100% 100% 100%
282 Ruby #5 7 min 69,656 1019 30 min 100% 100% 100% 100%
309 PHP 8 min 8,688 443 8 min 65% 12% 2% 23%
309 Erlang #2 8 min 1,285,708 613 33 min 100% 100% 100% 100%
314 Erlang 8 min 1,649,380 534 34 min 99% 99% 100% 99%
343 Ruby #2 9 min 138,736 925 37 min 100% 100% 100% 100%
343 Lua 9 min 2,792 359 9 min 1% 1% 100% 1%
343 Lua #3 9 min 2,656 358 9 min 1% 2% 16% 84%
354 Ruby #6 9 min 148,668 885 36 min 95% 95% 95% 95%
355 Smalltalk VW 9 min 54,500 627 9 min 39% 62% 27% 17%
419 Lua #2 11 min 1,148 367 11 min 1% 6% 95% 1%
469 Perl 12 min 45,540 579 51 min 100% 100% 100% 100%
522 Ruby JRuby #4 14 min 2,290,948 849 55 min 98% 98% 98% 98%
598 Ruby JRuby #5 16 min 1,811,060 1019 1h 03 min 98% 98% 98% 98%
687 Ruby JRuby #3 18 min 684,340 307 19 min 33% 25% 18% 28%
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Racket #4 Timed Out
Rust #3 Make Error
Rust #4 Make Error
TypeScript Failed