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,588 1791 5.99 99% 99% 99% 99%
1.1 C++ g++ #6 1.64 27,876 1002 6.52 99% 100% 100% 100%
1.1 C gcc #6 1.64 26,416 1135 6.55 100% 100% 99% 100%
1.2 Rust #6 1.75 34,176 1332 6.86 98% 98% 100% 98%
1.3 Rust #3 1.96 12,888 1007 7.81 99% 100% 100% 100%
2.2 Swift #3 3.30 39,048 1136 13.09 99% 99% 99% 100%
2.7 Rust 4.12 40,488 868 16.22 99% 98% 99% 99%
3.2 C gcc #8 4.90 31,328 782 18.96 96% 100% 96% 96%
3.4 Chapel #2 5.09 36,328 620 20.09 99% 99% 99% 99%
3.4 C++ g++ #9 5.20 34,464 726 19.99 96% 95% 95% 99%
3.6 Go #3 5.47 31,008 894 21.75 99% 100% 99% 99%
3.6 Go #4 5.47 31,280 905 21.73 99% 99% 99% 100%
3.7 Ada 2012 GNAT #3 5.60 32,404 1819 22.18 99% 100% 99% 99%
3.9 C gcc #9 5.84 32,888 694 22.54 96% 96% 96% 100%
3.9 C# .NET Core #8 5.86 66,856 794 22.99 99% 98% 98% 99%
3.9 C gcc #4 5.86 28,740 799 23.41 100% 100% 100% 100%
3.9 C gcc #3 5.90 32,460 763 23.46 99% 99% 100% 100%
4.0 Fortran Intel #6 6.07 62,860 661 20.75 81% 81% 81% 100%
4.0 C++ g++ #7 6.08 34,400 1017 24.23 100% 100% 100% 100%
4.0 C gcc #7 6.09 32,988 994 24.23 100% 100% 100% 100%
4.1 Java  #2 6.13 76,876 796 23.60 96% 96% 96% 97%
4.2 C gcc 6.41 27,844 822 25.57 100% 100% 100% 100%
4.3 C# .NET Core #7 6.52 66,352 923 25.64 98% 100% 98% 98%
4.4 F# .NET Core 6.67 67,060 877 26.23 99% 98% 98% 99%
4.4 F# .NET Core #5 6.67 66,828 897 26.23 98% 98% 98% 100%
4.5 C# .NET Core #4 6.79 66,436 672 26.73 98% 99% 99% 98%
4.5 C# .NET Core #6 6.84 67,096 755 26.93 98% 100% 98% 98%
4.7 C++ g++ #4 7.13 33,072 1035 28.38 100% 100% 100% 100%
4.8 Java #4 7.28 66,960 660 22.44 56% 75% 82% 97%
4.9 C# .NET Core #5 7.36 64,580 839 28.95 100% 98% 98% 98%
5.2 Lisp SBCL 7.87 49,432 2473 28.68 84% 100% 83% 99%
5.3 C++ g++ #8 8.00 34,312 742 21.71 80% 56% 37% 100%
5.4 Java AOT #2 8.12 38,412 796 32.28 99% 100% 100% 99%
5.4 Java AOT #6 8.18 38,424 802 32.51 100% 99% 99% 100%
5.5 F# .NET Core #4 8.29 67,080 886 32.69 98% 99% 99% 98%
5.6 Java #6 8.53 76,320 802 33.11 97% 97% 98% 97%
5.8 Java AOT #4 8.68 37,756 660 32.33 97% 100% 89% 87%
6.9 Go 10.45 33,312 823 41.74 100% 100% 100% 100%
7.6 C# .NET Core #3 11.41 67,784 701 45.06 99% 100% 99% 99%
7.6 Java #3 11.47 78,684 903 45.19 98% 99% 99% 98%
7.7 C# .NET Core 11.66 67,848 798 46.07 98% 99% 99% 98%
7.7 Haskell GHC #2 11.66 38,588 782 46.53 100% 100% 100% 100%
8.0 Chapel 12.02 36,100 455 47.78 100% 99% 99% 100%
8.2 F# .NET Core #3 12.44 68,076 800 49.16 98% 100% 99% 98%
8.4 Go #6 12.70 31,184 700 50.66 100% 100% 100% 100%
9.0 Java AOT #3 13.52 38,596 903 53.90 100% 100% 100% 100%
9.1 F# .NET Core #2 13.71 40,752 1043 54.27 99% 99% 100% 99%
9.1 OCaml 13.75 4,488 717 54.84 100% 100% 100% 100%
9.7 TypeScript #2 14.58 105,224 1034 51.86 80% 97% 97% 82%
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 18.04 612,540 748 64.71 98% 84% 97% 80%
12 Go #2 18.47 33,028 837 67.75 68% 100% 100% 100%
12 Fortran Intel #4 18.86 62,440 618 48.79 93% 87% 38% 41%
13 Racket #4 19.60 114,768 801 74.76 95% 95% 96% 96%
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,608 590 23.84 1% 0% 100% 1%
19 C++ g++ #2 29.02 34,016 692 29.00 100% 0% 1% 0%
29 Java 44.39 33,232 665 44.50 1% 100% 0% 1%
31 C gcc #2 47.23 824 400 47.22 1% 0% 0% 100%
33 Swift 49.43 4,744 394 49.41 0% 0% 1% 100%
34 Ada 2012 GNAT #2 51.76 2,100 577 51.75 1% 0% 0% 100%
35 Java AOT 52.41 5,568 665 52.40 0% 1% 100% 0%
37 OCaml #6 55.20 2,956 444 55.19 0% 1% 100% 0%
37 Free Pascal #3 56.32 8 526 56.31 55% 0% 1% 45%
38 Truffle Ruby #2 57.29 573,872 954 220.18 97% 96% 96% 96%
40 Fortran Intel #5 60.59 34,764 520 60.57 0% 0% 100% 1%
49 Racket #3 73.57 26,064 802 73.57 0% 0% 0% 100%
57 C++ g++ #3 86.10 1,904 414 86.08 0% 100% 1% 0%
57 Racket #2 86.13 25,132 585 86.12 0% 1% 100% 0%
59 Truffle Ruby #3 88.30 475,924 307 122.08 40% 28% 31% 41%
76 Erlang HiPE #4 115.08 49,176 806 7 min 100% 100% 100% 100%
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%
89 Erlang HiPE #3 134.75 47,640 792 8 min 100% 100% 100% 100%
91 Erlang HiPE 137.88 1,637,068 534 8 min 99% 98% 97% 98%
97 Erlang HiPE #2 146.06 822,788 613 9 min 100% 99% 99% 99%
108 VW Smalltalk #2 163.32 ? 958 ? 92% 96% 85% 82%
110 Hack 165.57 130,400 449 165.46 1% 35% 65% 1%
123 C# .NET Core #2 185.62 62,956 484 185.60 96% 0% 0% 4%
166 Lua #6 250.10 22,652 623 12 min 100% 72% 74% 67%
185 Python 3 #7 279.68 49,344 688 18 min 100% 100% 100% 100%
287 Python 3 #2 7 min 171,604 783 27 min 97% 93% 93% 96%
295 Python 3 #5 7 min 48,716 458 29 min 100% 100% 100% 100%
310 PHP 7 min 8,964 449 7 min 2% 0% 0% 98%
320 Ruby #2 8 min 144,684 954 32 min 100% 100% 100% 100%
332 Ruby #7 8 min 206,436 973 33 min 100% 100% 100% 100%
341 Ruby #6 8 min 202,008 918 34 min 100% 100% 100% 100%
387 Lua #3 9 min 2,828 358 9 min 0% 97% 4% 0%
388 VW Smalltalk 9 min 54,656 639 9 min 79% 21% 0% 0%
398 Lua 9 min 2,856 359 9 min 0% 89% 12% 0%
458 Hack #2 11 min 130,888 467 11 min 72% 10% 12% 8%
478 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%
536 JRuby #7 13 min 833,092 973 52 min 98% 98% 98% 98%
543 Ruby #4 13 min 72,336 846 14 min 33% 24% 21% 29%
562 JRuby #4 14 min 852,612 846 55 min 98% 98% 98% 98%
  Ruby #3 29 min 12,232 307 29 min 7% 5% 51% 41%
  JRuby #3 42 min 765,116 307 42 min 9% 7% 69% 18%
  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%
Dart Failed
Fortran Intel #3 Bad Output
Fortran Intel #7 Bad Output
Fortran Intel Bad Output
Fortran Intel #2 Bad Output
Hack #3 Bad Output
Ruby #5 Bad Output
Matz's Ruby #7 Failed
Matz's Ruby #2 Timed Out
Matz's Ruby #5 Failed
Matz's Ruby #4 Timed Out
JRuby #5 Bad Output
Truffle Ruby #5 Bad Output
Truffle Ruby #7 Failed
Truffle Ruby #6 Failed
Truffle Ruby #4 Failed
Rust #4 Make Error
TypeScript Failed