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.2 Rust #6 2.03 44,720 1332 8.00 99% 100% 99% 99%
1.3 Rust #3 2.12 30,280 1007 8.40 100% 100% 100% 100%
2.0 Swift #3 3.32 41,748 1136 13.19 100% 99% 99% 99%
2.8 Fortran Intel #7 4.60 34,204 698 18.28 100% 100% 100% 100%
3.0 C gcc #8 4.88 32,824 782 18.94 96% 96% 96% 100%
3.2 C++ g++ #9 5.33 34,008 726 20.53 100% 95% 95% 96%
3.3 Go #4 5.46 31,172 905 21.66 99% 100% 100% 99%
3.3 Go #3 5.48 31,180 894 21.74 99% 100% 99% 99%
3.4 Rust 5.53 79,420 868 21.78 98% 99% 99% 100%
3.4 Chapel #2 5.56 85,700 620 22.02 100% 99% 99% 99%
3.4 Ada 2005 GNAT #3 5.58 33,932 1805 22.09 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 Java  #2 6.08 77,056 796 23.61 97% 97% 99% 97%
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.0 C# .NET Core #7 6.51 78,616 923 25.62 99% 98% 100% 99%
4.1 C# .NET Core #4 6.78 74,348 672 26.69 100% 99% 98% 99%
4.1 C# .NET Core #6 6.81 73,972 755 26.83 98% 98% 99% 100%
4.2 C++ g++ #4 6.92 33,008 1035 27.57 100% 100% 100% 100%
4.4 Java #6 7.24 76,760 802 28.15 97% 98% 98% 97%
4.5 C# .NET Core #5 7.35 80,596 839 28.92 98% 99% 100% 99%
4.8 Lisp SBCL 7.85 72,308 2459 28.53 91% 93% 100% 83%
4.8 C++ g++ #8 7.88 33,976 742 21.41 100% 37% 100% 36%
5.4 Java #4 8.91 69,976 660 27.61 90% 84% 84% 54%
6.4 Go 10.52 34,028 823 41.86 100% 100% 100% 100%
6.9 C# .NET Core #3 11.37 86,032 701 45.00 99% 99% 100% 99%
7.1 C# .NET Core 11.64 85,852 798 45.99 99% 99% 99% 100%
7.3 Haskell GHC #2 11.95 42,008 782 47.64 100% 100% 100% 100%
7.3 Chapel 11.98 85,772 455 47.67 100% 100% 99% 100%
7.5 Java #3 12.37 78,524 903 48.79 100% 99% 99% 99%
7.6 F# .NET Core #3 12.43 89,108 800 49.11 99% 99% 99% 100%
7.7 Go #6 12.72 33,104 700 50.68 100% 100% 100% 100%
8.4 F# .NET Core #2 13.77 49,988 1043 54.41 100% 99% 99% 99%
8.4 OCaml 13.78 8,300 710 54.76 100% 100% 100% 100%
8.9 Pascal Free Pascal #5 14.68 31,560 820 58.59 100% 100% 100% 100%
9.5 Go #2 15.71 34,772 837 49.84 100% 73% 73% 73%
10 Pascal Free Pascal #4 16.61 30,492 748 66.32 100% 100% 100% 100%
10 Lisp SBCL #3 16.86 62,756 888 45.24 100% 100% 35% 35%
11 Fortran Intel #4 18.90 62,864 611 48.78 92% 33% 92% 42%
12 Node.js 19.04 311,404 778 67.84 82% 96% 83% 97%
12 Racket #4 19.53 130,172 796 74.29 96% 96% 95% 95%
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%
27 Java 44.08 33,728 665 44.18 1% 100% 1% 1%
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.76 7,416 394 51.75 1% 100% 0% 0%
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%
42 C# .NET Core #2 68.57 73,324 484 68.64 40% 3% 1% 58%
44 Racket #3 72.72 27,512 797 72.70 0% 1% 1% 100%
51 C++ g++ #3 83.90 1,744 414 83.88 0% 1% 100% 1%
52 Racket #2 86.21 26,396 585 86.20 0% 0% 1% 100%
72 Racket 117.73 25,880 517 117.72 0% 100% 1% 1%
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%
519 Ruby JRuby #4 14 min 835,516 849 55 min 99% 99% 99% 99%
  Ruby JRuby #3 35 min 747,248 307 35 min 25% 22% 26% 32%
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Ruby JRuby #5 Bad Output
Rust #4 Make Error
TypeScript Failed