The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Swift #2 4.52 38,008 1152 13.50 99% 2% 100% 100%
1.2 Rust 5.60 69,452 868 22.21 100% 100% 99% 100%
1.3 C++ g++ #9 5.82 35,860 726 22.38 100% 95% 96% 95%
1.3 C gcc #9 5.92 32,904 694 22.77 100% 95% 95% 95%
1.3 C gcc 5.95 28,260 822 23.73 100% 100% 100% 100%
1.3 C gcc #4 6.03 30,400 799 24.07 100% 100% 100% 100%
1.3 C gcc #3 6.08 32,544 763 24.22 100% 100% 100% 100%
1.3 C gcc #7 6.09 33,008 994 24.24 100% 100% 100% 100%
1.3 Ada 2005 GNAT #3 6.10 33,904 1805 24.13 100% 99% 99% 99%
1.3 C++ g++ #7 6.10 34,016 1017 24.30 100% 100% 100% 100%
1.4 C gcc #6 6.18 29,400 879 24.67 100% 100% 100% 100%
1.4 Go #3 6.44 32,044 894 25.58 99% 100% 100% 100%
1.5 C++ g++ #6 6.93 32,972 1035 27.63 100% 100% 100% 100%
1.6 Java  #2 7.14 88,236 796 27.93 97% 98% 98% 99%
1.6 Scala #4 7.20 93,120 786 27.97 97% 100% 97% 96%
1.7 Lisp SBCL 7.77 67,744 2459 28.52 86% 100% 84% 99%
1.8 Java #6 8.01 92,872 802 31.41 98% 98% 99% 98%
1.8 C# Mono LLVM #4 8.12 80,984 872 31.59 97% 97% 99% 97%
1.8 C++ g++ #8 8.12 33,988 742 22.04 37% 100% 37% 100%
1.8 C# Mono LLVM #6 8.13 78,976 986 31.62 96% 99% 97% 97%
2.0 Clojure #7 8.94 156,448 1195 31.73 88% 88% 89% 91%
2.0 F# Mono LLVM #4 9.23 85,556 869 35.24 94% 98% 96% 94%
2.5 F# Mono LLVM #3 11.42 80,616 800 44.57 97% 97% 98% 99%
2.5 C# .NET Core #3 11.43 63,104 701 45.18 99% 100% 99% 99%
2.6 C# Mono LLVM #3 11.52 76,668 701 45.20 98% 98% 98% 99%
2.6 Java #3 11.55 89,188 903 45.38 99% 98% 98% 98%
2.6 C# .NET Core 11.60 63,224 798 45.89 99% 99% 100% 99%
2.6 Haskell GHC #2 11.63 44,252 782 46.34 100% 100% 100% 100%
2.6 C# Mono LLVM 11.76 78,728 798 46.10 99% 98% 98% 98%
2.6 Go #6 11.83 33,256 700 46.98 99% 99% 99% 99%
2.6 Scala #3 11.92 82,564 796 46.69 98% 99% 98% 97%
2.7 Chapel 12.15 61,712 455 48.33 100% 99% 100% 100%
2.9 Scala 12.97 66,852 724 51.18 98% 98% 99% 100%
2.9 F# Mono LLVM #2 13.10 47,724 1043 48.52 92% 96% 91% 92%
3.0 OCaml 13.78 4,204 710 54.78 100% 100% 100% 100%
3.1 Go 13.79 33,984 823 54.94 100% 100% 100% 100%
3.2 Clojure #6 14.41 125,792 1069 52.88 95% 92% 90% 91%
3.5 Go #2 15.66 34,872 837 47.41 68% 68% 68% 100%
3.5 Scala #5 15.88 89,196 589 43.68 87% 71% 67% 51%
3.7 Pascal Free Pascal #4 16.62 31,540 748 66.34 100% 100% 100% 100%
4.0 Lisp SBCL #3 18.04 58,652 888 46.42 93% 93% 40% 33%
4.2 Fortran Intel #4 18.78 61,076 611 49.08 94% 41% 93% 34%
4.3 Racket #4 19.41 124,816 796 73.95 95% 96% 95% 96%
4.5 Dart 20.45 114,744 901 55.80 99% 38% 99% 38%
5.2 Pascal Free Pascal #2 23.31 32,920 820 61.87 94% 93% 37% 43%
5.2 Pascal Free Pascal 23.32 32,892 820 61.87 43% 93% 37% 93%
5.3 C++ g++ #5 24.17 33,592 590 24.16 78% 1% 1% 23%
6.0 Node.js 27.07 1,190,904 778 92.24 98% 85% 75% 83%
6.5 C++ g++ #2 29.58 34,132 687 29.57 0% 1% 1% 100%
9.5 Java 42.97 38,872 665 43.00 78% 1% 23% 0%
10 C gcc #2 47.35 816 400 47.34 1% 0% 0% 100%
11 Clojure #5 48.96 110,532 1069 50.36 34% 15% 20% 34%
11 Swift 51.00 4,776 386 50.98 1% 0% 1% 100%
11 Scala #2 51.83 45,592 454 51.90 0% 1% 100% 0%
12 Ada 2005 GNAT #2 53.17 1,976 572 53.15 0% 100% 0% 1%
12 OCaml #6 55.18 2,148 444 55.17 1% 1% 100% 1%
12 C# Mono LLVM #2 56.34 39,856 484 56.32 0% 100% 0% 1%
13 Fortran Intel #5 56.88 32,580 508 56.86 1% 1% 0% 100%
16 Racket #3 72.89 21,084 797 72.89 1% 100% 1% 1%
19 Racket #2 86.23 20,280 585 86.22 2% 1% 44% 57%
20 C++ g++ #3 90.50 1,732 414 90.46 0% 1% 1% 100%
26 Racket 117.79 25,164 517 117.79 1% 67% 33% 1%
28 Erlang HiPE #2 127.17 1,303,564 613 8 min 98% 99% 99% 99%
29 Erlang HiPE 131.23 1,711,344 534 8 min 99% 97% 97% 97%
30 PHP #3 134.34 132,880 863 8 min 100% 100% 100% 100%
47 Lua #6 213.65 33,024 623 12 min 100% 83% 84% 78%
55 Hack 248.45 130,620 441 248.37 38% 18% 15% 31%
59 Hack #2 266.13 130,660 458 266.05 18% 31% 20% 34%
60 TypeScript 271.78 28,412 392 271.65 66% 26% 12% 2%
65 Python 3 #7 293.92 55,392 686 19 min 100% 100% 100% 100%
97 Ruby #5 7 min 72,684 1019 29 min 100% 100% 100% 100%
100 Python 3 #2 7 min 14,076 777 29 min 100% 98% 98% 98%
112 Erlang #2 8 min 1,285,708 613 33 min 100% 100% 100% 100%
114 Erlang 8 min 1,649,380 534 34 min 99% 99% 100% 99%
117 PHP 8 min 7,892 443 8 min 18% 25% 16% 45%
119 Python 3 #5 8 min 54,876 449 35 min 100% 100% 100% 100%
124 Ruby #2 9 min 153,484 925 37 min 100% 100% 100% 100%
127 Ruby #6 9 min 226,580 885 35 min 95% 95% 95% 95%
129 Smalltalk VW #2 9 min 55,640 467 9 min 0% 100% 1% 1%
161 Lua #2 12 min 2,272 367 12 min 1% 1% 44% 56%
171 Perl 12 min 45,540 579 51 min 100% 100% 100% 100%
191 Ruby JRuby #4 14 min 2,288,400 849 56 min 98% 98% 98% 98%
259 Ruby JRuby #3 19 min 677,544 307 19 min 37% 24% 17% 25%
393 Ruby #3 29 min 9,100 307 29 min 13% 9% 51% 28%
395 Ruby #4 29 min 70,508 849 29 min 26% 26% 26% 24%
457 Ruby JRuby #2 34 min 764,220 925 2h 15 min 99% 99% 99% 99%
C# .NET Core #2 Failed
C# .NET Core #6 Failed
C# .NET Core #4 Failed
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Hack #3 Failed
Lua Failed
Pascal Free Pascal #5 Make Error
Pascal Free Pascal #3 Make Error
Ruby JRuby #6 Failed
Ruby JRuby #5 Bad Output
Rust #2 Make Error