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,640 1791 5.99 100% 100% 99% 99%
1.1 C gcc #6 1.64 26,512 1135 6.54 99% 100% 99% 100%
1.2 Rust #6 1.75 33,800 1332 6.86 98% 98% 100% 98%
1.2 C++ g++ #6 1.81 29,072 1002 7.10 98% 98% 98% 100%
1.3 Rust #3 1.98 13,568 1007 7.87 100% 99% 99% 100%
2.2 Swift #3 3.30 38,896 1136 13.09 99% 99% 99% 100%
2.7 Rust 4.07 40,412 868 16.02 100% 97% 98% 99%
3.3 C gcc #8 4.95 29,992 782 19.26 97% 97% 100% 97%
3.5 C++ g++ #9 5.32 34,364 726 20.46 95% 100% 95% 95%
3.6 Go #4 5.47 31,004 905 21.73 100% 99% 99% 99%
3.6 Go #3 5.47 30,492 894 21.74 99% 99% 100% 99%
3.6 C gcc #4 5.49 28,380 799 21.82 100% 100% 99% 100%
3.7 C# .NET Core #9 5.54 66,356 816 21.64 98% 98% 100% 98%
3.7 C gcc #3 5.61 32,540 763 22.32 99% 100% 99% 99%
3.7 Ada 2012 GNAT #3 5.63 32,188 1819 22.26 99% 98% 99% 99%
3.7 Chapel #2 5.66 35,976 620 22.35 99% 99% 99% 99%
3.9 C gcc #9 5.82 32,844 694 22.49 96% 96% 100% 96%
3.9 C# .NET Core #8 5.85 66,680 794 22.98 98% 98% 98% 100%
4.0 C gcc 6.08 26,780 822 24.28 100% 100% 100% 100%
4.0 C gcc #7 6.08 33,056 994 24.23 100% 100% 100% 100%
4.0 C++ g++ #7 6.08 34,544 1017 24.23 100% 100% 100% 100%
4.3 Fortran Intel #6 6.51 61,460 661 22.49 82% 82% 82% 100%
4.3 C# .NET Core #7 6.53 66,508 923 25.67 98% 100% 98% 98%
4.4 F# .NET Core #5 6.65 66,804 897 26.16 98% 98% 98% 100%
4.4 F# .NET Core 6.68 66,596 877 26.25 98% 99% 99% 98%
4.5 C# .NET Core #4 6.81 66,576 672 26.82 98% 99% 99% 98%
4.5 C# .NET Core #6 6.82 66,768 755 26.87 99% 98% 98% 99%
4.6 Java  #2 6.96 76,316 796 27.06 97% 97% 97% 97%
4.7 C++ g++ #4 7.14 33,064 1035 28.47 100% 100% 100% 100%
4.9 C# .NET Core #5 7.36 65,480 839 28.95 98% 99% 99% 98%
4.9 Java #6 7.41 76,468 802 28.76 97% 97% 97% 97%
5.2 Substrate VM #2 7.83 36,504 796 31.16 99% 99% 99% 100%
5.3 Substrate VM #6 7.96 36,548 802 31.68 99% 100% 99% 99%
5.3 C++ g++ #8 8.03 34,396 742 21.77 100% 37% 37% 100%
5.5 F# .NET Core #4 8.30 67,196 886 32.75 99% 98% 98% 99%
5.5 Substrate VM #4 8.36 41,956 660 31.14 89% 100% 97% 86%
5.9 Lisp SBCL 8.89 49,800 2473 32.37 100% 84% 82% 100%
5.9 Java #4 8.93 65,024 660 26.89 97% 55% 81% 69%
6.9 Go 10.46 33,852 823 41.75 100% 100% 100% 100%
7.3 Java #3 11.10 77,936 903 43.68 98% 99% 99% 98%
7.6 C# .NET Core #3 11.41 68,140 701 45.08 99% 99% 100% 98%
7.7 Haskell GHC #2 11.61 38,728 782 46.32 100% 100% 100% 100%
7.7 C# .NET Core 11.64 68,244 798 45.99 98% 100% 99% 98%
8.2 Chapel 12.39 35,784 455 49.30 100% 99% 99% 100%
8.2 F# .NET Core #3 12.41 68,656 800 49.04 99% 99% 99% 100%
8.4 Go #6 12.70 31,144 700 50.66 100% 100% 100% 100%
8.9 Substrate VM #3 13.48 39,532 903 53.72 100% 100% 100% 100%
9.1 F# .NET Core #2 13.72 40,416 1043 54.27 99% 100% 99% 99%
9.1 OCaml 13.76 4,836 717 54.86 100% 100% 100% 100%
9.6 TypeScript #2 14.52 95,048 1034 51.65 82% 93% 98% 84%
9.7 Free Pascal #5 14.67 29,524 845 58.61 100% 100% 100% 100%
11 Free Pascal #4 16.60 29,748 774 66.35 100% 100% 100% 100%
12 Lisp SBCL #3 18.08 49,300 894 48.65 98% 37% 100% 35%
12 Node js 18.18 632,008 748 65.32 88% 94% 95% 83%
12 Go #2 18.32 33,224 837 55.44 68% 100% 68% 68%
13 Fortran Intel #4 19.03 64,092 618 49.02 34% 92% 91% 42%
13 Racket #4 19.83 131,048 801 74.86 94% 96% 94% 94%
14 Dart app-jit #2 20.68 161,876 911 56.51 99% 88% 50% 38%
14 Dart #2 21.78 253,620 911 58.17 40% 36% 97% 96%
15 Free Pascal 23.39 33,112 846 61.94 36% 93% 43% 93%
15 Free Pascal #2 23.39 33,108 846 61.94 36% 43% 93% 93%
16 C++ g++ #5 23.82 33,608 590 23.81 0% 1% 0% 100%
20 C++ g++ #2 29.64 34,364 692 29.63 1% 100% 1% 0%
29 Java 43.80 32,572 665 43.88 62% 0% 0% 40%
29 Julia 44.14 182,368 373 44.44 1% 0% 0% 100%
31 C gcc #2 47.30 760 400 47.29 26% 1% 1% 74%
32 Truffle Ruby #2 49.05 569,816 954 187.90 96% 96% 96% 96%
33 Swift 49.43 7,176 394 49.42 0% 100% 1% 0%
35 Substrate VM 52.36 6,532 665 52.35 0% 100% 1% 0%
35 Ada 2012 GNAT #2 52.68 1,880 577 52.67 0% 100% 1% 0%
37 OCaml #6 55.22 2,896 444 55.20 100% 1% 1% 0%
37 Fortran Intel #5 55.94 33,416 520 55.93 100% 0% 0% 0%
37 Free Pascal #3 56.34 8 526 56.33 100% 0% 0% 0%
50 Racket #3 75.28 44,976 802 75.27 0% 100% 0% 0%
58 Racket #2 87.07 41,396 585 87.07 1% 77% 0% 23%
58 Truffle Ruby #3 87.50 483,908 307 120.60 76% 14% 14% 35%
61 C++ g++ #3 91.74 1,704 414 91.72 100% 1% 1% 0%
73 Erlang HiPE #4 110.80 52,960 806 7 min 100% 100% 100% 100%
78 Racket 117.85 40,240 517 117.85 87% 0% 1% 13%
78 PHP #3 118.28 139,504 875 7 min 100% 100% 100% 100%
88 Erlang HiPE 132.72 1,618,012 534 8 min 97% 99% 98% 97%
89 Erlang HiPE #2 133.74 774,856 613 8 min 99% 99% 100% 99%
95 Erlang HiPE #3 143.58 46,232 792 9 min 100% 100% 100% 100%
110 VW Smalltalk #2 166.30 177,148 958 191.69 97% 89% 88% 73%
118 C# .NET Core #2 177.89 63,960 484 177.90 1% 49% 52% 1%
173 Lua #6 261.54 22,740 623 14 min 80% 84% 85% 97%
174 Python 3 #7 263.04 51,780 688 17 min 100% 100% 100% 100%
209 JRuby #7 5 min 944,776 973 20 min 97% 97% 98% 98%
224 JRuby #4 5 min 915,052 846 22 min 98% 98% 98% 98%
285 Python 3 #5 7 min 52,336 458 28 min 100% 100% 100% 100%
295 Python 3 #2 7 min 14,644 783 28 min 95% 96% 98% 95%
300 Ruby #2 7 min 59,660 954 30 min 100% 100% 100% 100%
310 PHP 7 min 9,444 449 7 min 4% 84% 17% 2%
360 Ruby #5 9 min 48,328 1044 36 min 100% 100% 100% 100%
369 JRuby #5 9 min 1,812,376 1023 35 min 95% 95% 95% 95%
387 VW Smalltalk 9 min 54,536 639 9 min 0% 1% 99% 0%
448 Perl 11 min 43,260 586 45 min 100% 100% 100% 100%
475 Lua 11 min 2,912 359 11 min 1% 65% 1% 36%
476 Lua #3 11 min 2,864 358 11 min 1% 51% 49% 1%
555 Ruby #4 13 min 80,012 846 14 min 10% 10% 42% 43%
585 Lua #2 14 min 1,404 367 14 min 1% 0% 1% 100%
  Ruby #3 32 min 16,040 307 32 min 2% 94% 2% 5%
  JRuby #3 33 min 778,368 307 33 min 20% 33% 33% 16%
  Ruby #6 36 min 93,204 918 2h 25 min 100% 100% 100% 100%
  Ruby #7 36 min 91,584 973 2h 25 min 100% 100% 100% 100%
  Matz's Ruby #6 1h 24 min 262,592 918 5h 30 min 98% 98% 98% 98%
  Matz's Ruby #3 3h 56 min 3,432 307 3h 56 min 41% 21% 24% 16%
Fortran Intel #3 Bad Output
Fortran Intel #7 Timed Out
Fortran Intel Bad Output
Fortran Intel #2 Bad Output
Matz's Ruby #7 Failed
Matz's Ruby #2 Timed Out
Matz's Ruby #5 Failed
Matz's Ruby #4 Timed Out
Truffle Ruby #5 Bad Output
Truffle Ruby #7 Failed
Truffle Ruby #6 Failed
Truffle Ruby #4 Failed
Rust #4 Make Error
TypeScript Failed