The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ #6 1.64 27,636 1002 6.51 100% 99% 100% 99%
1.0 C gcc #6 1.64 29,424 1135 6.53 99% 100% 100% 100%
1.2 Rust #6 2.02 33,572 1332 8.00 99% 100% 99% 99%
1.3 Rust #3 2.10 13,288 1007 8.37 100% 100% 100% 100%
2.0 Swift #3 3.31 39,544 1136 13.09 99% 99% 100% 99%
3.0 C gcc #8 4.89 31,100 782 18.96 100% 96% 97% 96%
3.2 C++ g++ #9 5.18 34,380 726 19.95 99% 95% 95% 96%
3.3 Rust 5.38 40,336 868 21.36 100% 99% 99% 99%
3.3 Chapel #2 5.47 35,756 620 21.66 100% 99% 99% 99%
3.3 Go #4 5.48 30,704 905 21.74 100% 100% 99% 100%
3.3 Go #3 5.49 30,416 894 21.76 99% 99% 99% 100%
3.4 Ada 2005 GNAT #3 5.59 32,376 1819 22.17 100% 100% 98% 99%
3.6 C# .NET Core #8 5.83 65,344 794 22.93 99% 98% 98% 99%
3.6 C gcc #9 5.84 32,912 694 22.53 96% 96% 96% 100%
3.6 C gcc #3 5.90 32,516 763 23.47 100% 99% 100% 100%
3.6 C gcc #4 5.91 32,728 799 23.43 99% 99% 99% 100%
3.7 Java  #2 6.04 76,528 796 23.34 98% 97% 97% 97%
3.7 C++ g++ #7 6.09 34,264 1017 24.24 100% 100% 100% 100%
3.7 C gcc #7 6.10 33,060 994 24.24 100% 100% 100% 100%
3.8 Fortran Intel #6 6.16 59,724 661 20.76 79% 80% 79% 100%
3.9 C gcc 6.42 27,892 822 25.58 100% 100% 100% 100%
4.0 C# .NET Core #7 6.51 64,924 923 25.63 98% 100% 98% 98%
4.1 F# .NET Core 6.66 67,124 877 26.20 98% 100% 99% 98%
4.1 C# .NET Core #4 6.76 64,264 672 26.67 99% 99% 98% 100%
4.1 C# .NET Core #6 6.79 65,088 755 26.83 98% 99% 100% 99%
4.3 C++ g++ #4 7.13 33,068 1035 28.40 100% 100% 100% 100%
4.4 Java #6 7.18 76,016 802 28.00 97% 99% 97% 97%
4.5 C# .NET Core #5 7.33 62,212 839 28.91 100% 99% 99% 98%
4.7 Lisp SBCL 7.74 50,540 2473 28.53 99% 85% 86% 100%
4.9 C++ g++ #8 8.00 34,384 742 21.72 96% 41% 37% 100%
5.1 F# .NET Core #4 8.30 66,916 886 32.77 100% 99% 99% 99%
5.4 Java #4 8.88 66,740 660 27.30 56% 76% 97% 79%
6.4 Go 10.49 33,264 823 41.89 100% 100% 100% 100%
6.9 Java #3 11.37 78,144 903 43.04 98% 99% 98% 98%
6.9 C# .NET Core #3 11.40 65,652 701 45.04 100% 99% 99% 99%
7.1 C# .NET Core 11.59 65,784 798 45.94 100% 99% 99% 99%
7.1 Haskell GHC #2 11.69 38,472 782 46.64 100% 100% 100% 100%
7.3 Chapel 11.99 35,576 455 47.76 100% 99% 99% 100%
7.6 F# .NET Core #3 12.40 68,952 800 49.11 100% 99% 99% 99%
7.6 Go #2 12.46 32,864 837 49.54 100% 100% 100% 100%
7.8 Go #6 12.74 32,164 700 50.73 100% 100% 100% 100%
8.4 F# .NET Core #2 13.83 39,964 1043 54.66 99% 99% 99% 99%
8.9 Pascal Free Pascal #5 14.62 30,016 845 58.40 100% 100% 100% 100%
10 Pascal Free Pascal #4 16.59 30,112 774 66.32 100% 100% 100% 100%
10 Lisp SBCL #3 16.85 50,360 894 45.26 42% 92% 35% 100%
11 Node.js 17.74 588,212 748 63.65 83% 97% 81% 98%
11 Fortran Intel #4 18.83 62,360 618 48.70 84% 50% 93% 33%
12 Racket #4 19.53 130,172 796 74.29 96% 96% 95% 95%
12 Dart 20.50 97,796 920 55.98 46% 38% 99% 91%
14 Pascal Free Pascal 23.30 33,144 846 61.86 93% 37% 93% 43%
14 Pascal Free Pascal #2 23.30 33,144 846 61.87 36% 43% 94% 93%
15 C++ g++ #5 23.84 33,544 590 23.83 0% 0% 0% 100%
18 C++ g++ #2 29.02 34,084 692 29.01 4% 5% 3% 100%
26 Hack #3 42.45 99,020 877 166.87 98% 99% 99% 99%
27 Java 44.08 33,388 665 44.18 10% 1% 1% 90%
29 C gcc #2 47.28 896 400 47.27 0% 0% 1% 100%
30 Swift 49.04 7,504 394 49.03 0% 1% 0% 100%
32 Ada 2005 GNAT #2 51.74 2,068 577 51.73 100% 0% 0% 1%
34 OCaml #6 55.18 2,900 444 55.17 0% 1% 0% 100%
34 Pascal Free Pascal #3 56.32 8 526 56.31 55% 0% 1% 45%
37 Fortran Intel #5 60.31 34,036 520 60.30 0% 52% 49% 0%
44 Racket #3 72.72 27,512 797 72.70 0% 1% 1% 100%
51 C++ g++ #3 83.91 1,904 414 83.88 1% 100% 0% 0%
53 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%
72 PHP #3 118.07 137,452 875 7 min 100% 100% 100% 100%
73 Erlang HiPE #2 119.91 749,356 613 7 min 99% 99% 99% 99%
76 Erlang HiPE 124.90 1,635,360 534 8 min 97% 97% 97% 97%
83 C# .NET Core #2 136.67 62,236 484 136.72 0% 52% 49% 0%
107 Hack 176.19 86,192 449 176.03 8% 1% 1% 92%
131 Smalltalk VW #2 214.93 ? 940 ? 28% 75% 68% 98%
137 Python 3 #7 225.24 15,736 688 14 min 100% 100% 100% 100%
152 Lua #6 250.10 22,652 623 12 min 100% 72% 74% 67%
237 Python 3 #2 6 min 15,680 783 25 min 97% 97% 100% 97%
246 Python 3 #5 6 min 15,696 458 26 min 100% 100% 100% 100%
283 Ruby #5 7 min 69,656 1019 30 min 100% 100% 100% 100%
285 PHP 7 min 8,964 449 7 min 2% 0% 0% 98%
344 Ruby #2 9 min 138,736 925 37 min 100% 100% 100% 100%
355 Ruby #6 9 min 148,668 885 36 min 95% 95% 95% 95%
356 Lua #3 9 min 2,828 358 9 min 0% 97% 4% 0%
356 Smalltalk VW 9 min 54,500 627 9 min 39% 62% 27% 17%
366 Lua 9 min 2,856 359 9 min 0% 89% 12% 0%
423 Hack #2 11 min 86,044 467 11 min 0% 2% 5% 96%
439 Lua #2 12 min 1,576 367 12 min 49% 1% 1% 51%
444 Perl 12 min 42,964 586 48 min 100% 100% 100% 100%
520 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%
  Ruby MRI #2 1h 13 min 68,012 925 4h 51 min 100% 100% 100% 100%
  Matz's Interpreter #6 1h 23 min 262,872 918 5h 26 min 98% 98% 98% 99%
Fortran Intel #3 Bad Output
Fortran Intel #7 Bad Output
Fortran Intel Bad Output
Fortran Intel #2 Bad Output
OCaml Make Error
Matz's Interpreter #5 Failed
Ruby JRuby #5 Bad Output
Rust #4 Make Error
TypeScript Timed Out