The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ 1.51 25,704 1791 5.99 99% 100% 100% 100%
1.1 C++ g++ #6 1.64 27,636 1002 6.51 100% 99% 100% 99%
1.1 C gcc #6 1.64 29,424 1135 6.53 99% 100% 100% 100%
1.3 Rust #3 1.89 13,712 1007 7.51 100% 99% 100% 99%
2.2 Swift #3 3.29 39,664 1136 13.05 100% 99% 99% 99%
2.7 Rust 4.13 40,468 868 16.18 97% 98% 100% 100%
3.2 C gcc #8 4.89 31,100 782 18.96 100% 96% 97% 96%
3.4 C++ g++ #9 5.18 34,380 726 19.95 99% 95% 95% 96%
3.6 Chapel #2 5.47 35,756 620 21.66 100% 99% 99% 99%
3.6 Go #4 5.48 30,912 905 21.79 99% 99% 99% 100%
3.6 Go #3 5.49 30,372 894 21.76 99% 100% 99% 99%
3.7 Ada 2005 GNAT #3 5.59 32,376 1819 22.17 100% 100% 98% 99%
3.9 C# .NET Core #8 5.83 65,344 794 22.93 99% 98% 98% 99%
3.9 C gcc #9 5.84 32,912 694 22.53 96% 96% 96% 100%
3.9 C gcc #3 5.90 32,516 763 23.47 100% 99% 100% 100%
3.9 C gcc #4 5.91 32,728 799 23.43 99% 99% 99% 100%
4.0 C++ g++ #7 6.09 34,264 1017 24.24 100% 100% 100% 100%
4.0 C gcc #7 6.10 33,060 994 24.24 100% 100% 100% 100%
4.0 Java  #2 6.10 76,520 796 23.59 97% 98% 98% 96%
4.1 Fortran Intel #6 6.16 59,724 661 20.76 79% 80% 79% 100%
4.2 Java #6 6.37 76,684 802 24.68 97% 97% 97% 99%
4.2 C gcc 6.42 27,892 822 25.58 100% 100% 100% 100%
4.3 C# .NET Core #7 6.51 64,924 923 25.63 98% 100% 98% 98%
4.4 F# .NET Core 6.66 67,124 877 26.20 98% 100% 99% 98%
4.5 C# .NET Core #4 6.76 64,264 672 26.67 99% 99% 98% 100%
4.5 C# .NET Core #6 6.79 65,088 755 26.83 98% 99% 100% 99%
4.7 C++ g++ #4 7.13 33,068 1035 28.40 100% 100% 100% 100%
4.8 Java #4 7.32 66,784 660 22.50 80% 97% 52% 81%
4.8 C# .NET Core #5 7.33 62,212 839 28.91 100% 99% 99% 98%
5.2 Lisp SBCL 7.87 49,432 2473 28.68 84% 100% 83% 99%
5.3 C++ g++ #8 8.00 34,384 742 21.72 96% 41% 37% 100%
5.5 F# .NET Core #4 8.30 66,916 886 32.77 100% 99% 99% 99%
7.0 Go 10.58 32,436 823 42.00 99% 100% 100% 99%
7.5 C# .NET Core #3 11.40 65,652 701 45.04 100% 99% 99% 99%
7.6 Java #3 11.43 78,932 903 44.86 98% 98% 98% 99%
7.7 C# .NET Core 11.59 65,784 798 45.94 100% 99% 99% 99%
7.7 Haskell GHC #2 11.66 38,588 782 46.53 100% 100% 100% 100%
7.9 Chapel 11.99 35,576 455 47.76 100% 99% 99% 100%
8.2 Go #2 12.39 32,964 837 49.41 100% 100% 100% 100%
8.2 F# .NET Core #3 12.40 68,952 800 49.11 100% 99% 99% 99%
8.4 Go #6 12.72 30,864 700 50.74 100% 100% 100% 100%
9.2 F# .NET Core #2 13.83 39,964 1043 54.66 99% 99% 99% 99%
9.7 Free Pascal #5 14.62 30,016 845 58.40 100% 100% 100% 100%
11 Free Pascal #4 16.59 30,112 774 66.32 100% 100% 100% 100%
11 Lisp SBCL #3 16.86 49,284 894 45.27 100% 99% 35% 36%
12 Node js 17.72 613,608 748 63.70 85% 94% 99% 83%
12 Fortran Intel #4 18.83 62,360 618 48.70 84% 50% 93% 33%
13 Racket #4 19.60 114,768 801 74.76 95% 95% 96% 96%
14 Dart 20.50 97,796 920 55.98 46% 38% 99% 91%
15 Free Pascal 23.30 33,144 846 61.86 93% 37% 93% 43%
15 Free Pascal #2 23.30 33,144 846 61.87 36% 43% 94% 93%
16 C++ g++ #5 23.84 33,544 590 23.83 0% 0% 0% 100%
19 C++ g++ #2 29.02 34,084 692 29.01 4% 5% 3% 100%
28 Hack #3 42.45 99,020 877 166.87 98% 99% 99% 99%
29 Java 44.34 33,180 665 44.45 22% 1% 0% 79%
31 C gcc #2 47.28 896 400 47.27 0% 0% 1% 100%
32 Swift 49.04 7,532 394 49.03 100% 1% 0% 0%
34 Ada 2005 GNAT #2 51.74 2,068 577 51.73 100% 0% 0% 1%
37 OCaml #6 55.18 2,900 444 55.17 0% 1% 0% 100%
37 Free Pascal #3 56.32 8 526 56.31 55% 0% 1% 45%
40 Fortran Intel #5 60.31 34,036 520 60.30 0% 52% 49% 0%
49 Racket #3 73.57 26,064 802 73.57 0% 0% 0% 100%
56 C++ g++ #3 83.91 1,904 414 83.88 1% 100% 0% 0%
57 Racket #2 86.13 25,132 585 86.12 0% 1% 100% 0%
58 Truffle Ruby #3 88.30 475,924 307 122.08 40% 28% 31% 41%
78 PHP #3 118.07 137,452 875 7 min 100% 100% 100% 100%
78 Racket 118.15 26,836 517 118.15 54% 31% 18% 0%
79 Erlang HiPE #2 119.91 749,356 613 7 min 99% 99% 99% 99%
83 Erlang HiPE 124.90 1,635,360 534 8 min 97% 97% 97% 97%
90 C# .NET Core #2 136.67 62,236 484 136.72 0% 52% 49% 0%
117 Hack 176.19 86,192 449 176.03 8% 1% 1% 92%
142 VW Smalltalk #2 214.93 ? 940 ? 28% 75% 68% 98%
149 Python 3 #7 225.24 15,736 688 14 min 100% 100% 100% 100%
166 Lua #6 250.10 22,652 623 12 min 100% 72% 74% 67%
258 Python 3 #2 6 min 15,680 783 25 min 97% 97% 100% 97%
268 Python 3 #5 6 min 15,696 458 26 min 100% 100% 100% 100%
309 PHP 7 min 8,964 449 7 min 2% 0% 0% 98%
345 Ruby #2 8 min 127,152 925 34 min 100% 100% 100% 100%
359 Ruby #6 9 min 98,652 918 34 min 95% 95% 95% 95%
384 Ruby #7 9 min 45,584 973 36 min 95% 95% 95% 95%
386 Lua #3 9 min 2,828 358 9 min 0% 97% 4% 0%
387 VW Smalltalk 9 min 54,500 627 9 min 39% 62% 27% 17%
397 Lua 9 min 2,856 359 9 min 0% 89% 12% 0%
460 Hack #2 11 min 86,044 467 11 min 0% 2% 5% 96%
477 Lua #2 12 min 1,576 367 12 min 49% 1% 1% 51%
483 Perl 12 min 42,964 586 48 min 100% 100% 100% 100%
540 JRuby #7 13 min 838,956 973 52 min 98% 98% 98% 97%
562 JRuby #4 14 min 837,464 846 55 min 98% 98% 98% 98%
  JRuby #5 19 min 1,725,120 1023 1h 16 min 98% 98% 98% 98%
  JRuby #3 47 min 789,760 307 48 min 25% 41% 12% 24%
  Matz's Ruby #6 1h 24 min 262,592 918 5h 30 min 98% 98% 98% 98%
Fortran Intel #3 Bad Output
Fortran Intel #7 Bad Output
Fortran Intel Bad Output
Fortran Intel #2 Bad Output
OCaml Make Error
Ruby #5 Bad Output
Matz's Ruby #7 Failed
Matz's Ruby #2 Timed Out
Matz's Ruby #5 Failed
Truffle Ruby #5 Failed
Truffle Ruby #2 Failed
Truffle Ruby #7 Failed
Truffle Ruby #6 Failed
Truffle Ruby #4 Failed
Rust #4 Make Error
Rust #6 Make Error
TypeScript Timed Out