The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 Rust 5.11 63,664 868 20.15 99% 98% 99% 99%
1.1 C++ g++ #9 5.82 33,964 726 22.39 96% 95% 95% 100%
1.2 C gcc #9 5.92 32,464 694 22.81 95% 100% 96% 95%
1.2 C gcc 5.95 27,848 822 23.75 100% 100% 100% 100%
1.2 C gcc #4 6.04 30,692 799 24.07 100% 100% 100% 100%
1.2 C gcc #3 6.08 32,504 763 24.24 100% 100% 100% 100%
1.2 C gcc #7 6.09 32,956 994 24.24 100% 100% 100% 100%
1.2 Ada 2005 GNAT #3 6.09 33,924 1805 24.15 99% 100% 99% 100%
1.2 C++ g++ #7 6.10 34,064 1017 24.29 100% 100% 100% 100%
1.2 C gcc #6 6.19 29,420 879 24.69 100% 100% 100% 100%
1.2 Java  #2 6.27 88,992 796 24.24 96% 97% 97% 98%
1.3 Go #3 6.44 32,184 894 25.59 100% 99% 99% 100%
1.4 C++ g++ #6 6.93 32,952 1035 27.61 100% 100% 100% 100%
1.4 Java  #6 7.16 88,976 802 27.96 97% 97% 99% 97%
1.4 Scala #4 7.20 93,120 786 27.97 97% 100% 97% 96%
1.5 Lisp SBCL 7.88 68,904 2459 28.53 99% 100% 83% 81%
1.6 C++ g++ #8 8.12 33,912 742 22.04 36% 100% 37% 100%
1.6 C# Mono #4 8.12 80,680 872 31.58 100% 97% 97% 97%
1.6 C# Mono #6 8.12 82,052 986 31.62 97% 97% 100% 97%
1.8 Clojure #7 9.02 152,976 1195 32.40 89% 86% 97% 88%
1.8 F# Mono #4 9.40 87,616 869 35.97 96% 95% 97% 96%
2.1 Go #2 10.55 34,720 837 41.98 99% 100% 100% 100%
2.2 F# Mono #3 11.48 80,376 800 44.83 97% 100% 97% 97%
2.3 C# Mono #3 11.51 80,128 701 45.18 98% 98% 100% 98%
2.3 Java  #3 11.53 89,208 903 45.50 100% 99% 98% 98%
2.3 C# Mono 11.74 80,360 798 46.09 98% 98% 98% 99%
2.3 Go #6 11.84 33,192 700 46.97 99% 99% 99% 99%
2.3 Haskell GHC #2 11.87 44,232 782 47.32 100% 100% 100% 100%
2.3 Scala #3 11.92 82,564 796 46.69 98% 99% 98% 97%
2.5 F# Mono #2 12.96 51,400 1043 48.55 93% 96% 92% 94%
2.5 Scala 12.97 66,852 724 51.18 98% 98% 99% 100%
2.7 OCaml 13.78 5,492 710 54.89 100% 100% 100% 100%
2.8 Clojure #6 14.36 132,088 1077 52.66 90% 91% 91% 95%
3.1 Scala #5 15.88 89,196 589 43.68 87% 71% 67% 51%
3.3 Pascal Free Pascal #4 16.62 31,540 748 66.34 100% 100% 100% 100%
3.6 Lisp SBCL #3 18.16 58,140 888 46.56 32% 93% 40% 93%
3.7 Racket #4 18.77 73,420 796 74.10 100% 99% 99% 98%
3.7 Fortran Intel #4 18.78 61,076 611 49.08 94% 41% 93% 34%
4.1 Dart 20.93 87,944 901 56.78 99% 72% 65% 37%
4.6 Pascal Free Pascal #2 23.31 32,920 820 61.87 94% 93% 37% 43%
4.6 Pascal Free Pascal 23.32 32,892 820 61.87 43% 93% 37% 93%
4.7 C++ g++ #5 24.18 33,604 590 24.17 100% 0% 1% 0%
5.4 Go 27.45 36,268 823 55.60 51% 2% 100% 53%
5.8 C++ g++ #2 29.58 34,208 687 29.57 100% 1% 1% 0%
8.4 Java  43.01 39,336 665 43.05 2% 99% 0% 1%
9.3 C gcc #2 47.36 820 400 47.34 100% 0% 0% 0%
9.8 Clojure #5 50.13 115,360 1077 51.53 49% 5% 47% 3%
10 Swift 51.00 4,800 386 50.99 1% 0% 0% 100%
10 Scala #2 51.83 45,592 454 51.90 0% 1% 100% 0%
10 Ada 2005 GNAT #2 53.31 1,980 572 53.29 100% 0% 0% 1%
11 OCaml #6 55.00 960 444 54.98 1% 0% 100% 1%
11 C# Mono #2 56.31 40,200 484 56.29 100% 0% 0% 0%
11 Fortran Intel #5 56.88 32,580 508 56.86 1% 1% 0% 100%
14 Racket #3 73.54 34,028 797 73.56 1% 58% 22% 22%
16 Hack #2 81.00 117,520 458 80.98 0% 69% 31% 0%
17 C++ g++ #3 84.78 1,688 414 84.75 0% 100% 1% 1%
17 Racket #2 85.42 22,308 585 85.44 42% 59% 0% 0%
21 Racket 108.39 27,832 517 108.41 1% 2% 1% 100%
26 Erlang HiPE #2 131.96 1,370,444 613 8 min 95% 95% 96% 95%
28 PHP #3 141.60 131,984 863 9 min 100% 100% 100% 100%
28 Erlang HiPE 142.80 1,714,956 534 8 min 92% 92% 94% 92%
42 Lua #6 213.65 33,024 623 12 min 100% 83% 84% 78%
49 Hack 248.09 115,560 441 248.01 4% 15% 52% 31%
51 TypeScript Node.js 261.91 24,192 392 261.82 44% 1% 35% 23%
58 Python 3 #7 293.92 55,392 686 19 min 100% 100% 100% 100%
86 Ruby #5 7 min 72,684 1019 29 min 100% 100% 100% 100%
89 Python 3 #2 7 min 14,076 777 29 min 100% 98% 98% 98%
95 Erlang #2 8 min 1,312,428 613 31 min 99% 99% 99% 99%
97 Erlang 8 min 1,643,216 534 32 min 98% 98% 98% 98%
105 Python 3 #5 8 min 54,876 449 35 min 100% 100% 100% 100%
106 PHP 8 min 7,712 443 8 min 35% 4% 34% 28%
110 Ruby #2 9 min 153,484 925 37 min 100% 100% 100% 100%
112 Ruby #6 9 min 226,580 885 35 min 95% 95% 95% 95%
114 Smalltalk VW #2 9 min 53,628 467 9 min 72% 1% 11% 18%
142 Lua #2 12 min 2,272 367 12 min 1% 1% 44% 56%
151 Perl 12 min 43,400 579 51 min 100% 100% 100% 100%
166 Ruby JRuby #4 14 min 762,944 866 55 min 98% 98% 98% 98%
190 Ruby JRuby #5 16 min 1,597,228 1019 1h 02 min 98% 98% 98% 98%
214 Ruby JRuby #3 18 min 660,288 307 18 min 21% 30% 33% 19%
342 Ruby JRuby #2 29 min 758,280 925 1h 53 min 99% 99% 98% 99%
348 Ruby #3 29 min 9,100 307 29 min 13% 9% 51% 28%
349 Ruby #4 29 min 70,508 849 29 min 26% 26% 26% 24%
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Hack #3 Failed
JavaScript V8 #2 Bad Output
Lua Failed
Pascal Free Pascal #5 Make Error
Pascal Free Pascal #3 Make Error
Ruby JRuby #6 Failed
Rust #2 Make Error
Swift #2 Make Error