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.23 65,568 868 20.51 99% 97% 99% 98%
1.1 C gcc #4 5.61 28,988 799 22.40 100% 100% 100% 100%
1.1 C gcc #7 5.75 32,940 994 22.90 100% 100% 99% 100%
1.1 C++ g++ #7 5.77 33,592 1017 22.97 99% 99% 99% 100%
1.2 C gcc #3 6.24 32,424 763 24.84 100% 100% 100% 100%
1.2 C gcc 6.26 27,752 822 24.99 100% 100% 100% 100%
1.2 C gcc #6 6.28 27,760 879 25.09 100% 100% 100% 100%
1.2 Rust #2 6.53 61,828 1080 25.64 100% 97% 100% 97%
1.3 Go #3 6.84 32,568 894 27.18 99% 100% 100% 100%
1.3 C++ g++ #6 6.93 32,888 1035 27.59 100% 100% 100% 100%
1.4 Java  #2 7.12 87,832 796 27.79 97% 99% 97% 97%
1.4 Scala #4 7.15 92,200 786 27.68 96% 96% 99% 97%
1.4 Java  #6 7.44 87,332 802 29.03 99% 97% 97% 97%
1.5 C gcc #9 7.69 32,464 694 29.63 95% 100% 95% 95%
1.5 C# Mono #6 7.93 74,496 986 30.73 96% 99% 96% 96%
1.5 C++ g++ #9 8.06 33,444 726 31.00 95% 95% 95% 100%
1.6 Ada 2005 GNAT #3 8.13 31,756 1805 32.25 100% 99% 100% 99%
1.6 C# Mono #4 8.13 74,244 872 31.55 96% 100% 97% 96%
1.9 F# Mono #4 9.74 80,552 869 36.78 94% 94% 94% 96%
1.9 Clojure #7 9.79 155,704 1195 35.21 95% 88% 89% 89%
2.1 Java  #3 10.80 86,168 903 42.49 98% 98% 98% 100%
2.1 Go #2 10.95 35,332 837 43.61 100% 100% 100% 100%
2.2 C++ g++ #8 11.42 33,504 742 30.96 100% 100% 37% 36%
2.2 C# Mono #3 11.48 73,916 701 44.97 98% 99% 98% 98%
2.2 F# Mono #3 11.58 76,084 800 45.12 97% 99% 97% 97%
2.3 C# Mono 11.77 73,700 798 46.08 100% 98% 97% 98%
2.3 Scala #3 11.93 73,064 796 46.69 97% 99% 98% 97%
2.3 Go #6 12.20 33,648 700 48.40 99% 99% 99% 99%
2.5 Scala 12.96 60,476 724 50.98 98% 98% 100% 98%
2.8 F# Mono #2 14.40 43,448 1043 54.01 93% 93% 96% 94%
2.9 Clojure #6 15.14 121,920 1077 55.63 91% 91% 91% 95%
3.0 Scala #5 15.93 87,072 589 43.78 71% 66% 77% 62%
3.6 Fortran Intel #4 18.78 65,080 611 48.90 93% 34% 93% 42%
3.8 Racket #4 19.74 56,712 796 78.05 99% 100% 99% 99%
3.9 Dart 20.29 74,896 901 55.20 86% 50% 39% 99%
4.1 OCaml 21.32 1,740 710 84.93 100% 100% 100% 100%
4.3 Lisp SBCL 22.55 62,176 2459 80.27 79% 99% 79% 100%
4.5 Go 23.45 35,140 823 93.39 100% 100% 100% 100%
5.6 Lisp SBCL #3 29.02 52,724 888 75.49 33% 95% 38% 95%
6.0 Pascal Free Pascal #2 31.49 31,948 817 83.62 95% 36% 41% 95%
6.0 Pascal Free Pascal 31.51 31,948 820 83.60 36% 100% 36% 95%
6.5 Pascal Free Pascal #5 34.04 30,560 829 135.84 100% 100% 100% 100%
6.5 C++ g++ #5 34.18 33,220 590 34.16 0% 0% 0% 100%
7.3 C++ g++ #2 38.06 33,448 687 38.05 0% 0% 100% 0%
8.4 Java  43.73 23,428 665 43.76 1% 99% 2% 1%
9.6 C gcc #2 50.01 664 400 49.99 1% 0% 0% 100%
10 Clojure #5 52.06 100,416 1077 53.85 34% 51% 1% 19%
10 Scala #2 52.48 26,496 454 52.55 1% 68% 2% 31%
10 Ada 2005 GNAT #2 53.48 1,624 572 53.47 1% 0% 0% 100%
11 Fortran Intel #5 56.61 32,600 508 56.59 1% 0% 1% 100%
14 Pascal Free Pascal #4 72.59 30,980 748 289.87 100% 100% 100% 100%
15 Pascal Free Pascal #3 78.75 8 530 78.72 1% 100% 0% 0%
17 Racket #3 87.01 21,108 797 87.05 1% 0% 100% 0%
19 Racket #2 100.89 22,832 585 100.80 1% 34% 67% 1%
23 Racket 118.44 23,616 517 118.44 100% 1% 1% 0%
24 C# Mono #2 127.81 38,456 484 127.76 38% 26% 24% 14%
33 C++ g++ #3 171.32 1,136 414 171.26 24% 21% 19% 37%
41 Erlang HiPE #2 215.67 632,224 613 14 min 98% 98% 98% 98%
43 Erlang HiPE 223.85 884,112 534 14 min 98% 96% 97% 96%
50 OCaml #6 259.50 864 444 259.44 27% 1% 13% 62%
54 PHP #3 280.48 107,708 863 18 min 100% 100% 100% 100%
59 Python 3 #7 5 min 41,240 686 20 min 100% 100% 100% 100%
95 Python 3 #2 8 min 10,240 777 32 min 99% 99% 100% 99%
122 Python 3 #5 10 min 47,084 449 42 min 100% 100% 100% 100%
143 Ruby JRuby #4 12 min 619,484 849 46 min 95% 94% 94% 93%
178 Perl 15 min 44,184 579 1h 02 min 100% 100% 100% 100%
201 Ruby #5 17 min 51,408 1019 1h 10 min 100% 100% 100% 100%
213 PHP 18 min 3,104 443 18 min 8% 35% 29% 29%
250 Ruby #2 21 min 86,532 925 1h 27 min 100% 100% 100% 100%
266 Ruby #6 23 min 112,484 909 1h 28 min 97% 97% 97% 97%
306 Ruby JRuby #2 26 min 340,196 925 1h 42 min 98% 97% 97% 97%
407 Ruby JRuby #3 35 min 273,780 307 35 min 28% 26% 24% 25%
Fortran Intel Bad Output
Fortran Intel #3 Bad Output
Fortran Intel #2 Bad Output
Haskell GHC #2 Bad Output
Ruby #3 Timed Out
Ruby #4 Timed Out
Ruby JRuby #6 Failed
Ruby JRuby #5 Bad Output