The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C gcc #5 1.78 29,792 911 7.03 100% 99% 99% 98%
1.3 C gcc #6 2.27 30,588 851 8.78 96% 100% 96% 96%
1.7 Swift #3 3.12 40,460 1136 12.35 99% 100% 99% 99%
2.7 C gcc #8 4.84 33,048 782 18.80 96% 100% 96% 96%
2.8 Rust 4.96 69,216 868 19.34 97% 99% 100% 96%
3.2 Go #3 5.68 30,756 894 22.56 100% 100% 99% 99%
3.3 C++ g++ #9 5.82 33,952 726 22.40 96% 95% 95% 100%
3.3 C gcc #9 5.92 32,572 694 22.78 95% 95% 95% 100%
3.3 C gcc 5.95 28,100 822 23.73 100% 100% 100% 100%
3.4 C gcc #4 6.04 29,984 799 24.06 100% 100% 100% 100%
3.4 C gcc #3 6.08 32,472 763 24.20 100% 100% 100% 100%
3.4 C gcc #7 6.09 32,972 994 24.25 100% 100% 100% 100%
3.4 Ada 2005 GNAT #3 6.10 33,904 1805 24.13 100% 99% 99% 99%
3.4 C++ g++ #7 6.10 34,056 1017 24.29 100% 100% 100% 100%
3.9 C++ g++ #6 6.93 32,956 1035 27.62 100% 100% 100% 100%
4.0 Java  #2 7.14 88,236 796 27.93 97% 98% 98% 99%
4.2 Scala #4 7.50 103,940 786 28.86 99% 95% 96% 95%
4.3 C# Mono LLVM #5 7.67 77,780 839 29.72 97% 97% 98% 97%
4.4 Lisp SBCL 7.88 66,676 2459 28.51 83% 83% 100% 98%
4.5 Java #6 8.01 92,872 802 31.41 98% 98% 99% 98%
4.5 C++ g++ #8 8.11 33,944 742 22.04 37% 100% 37% 100%
4.6 C# Mono LLVM #4 8.12 80,984 872 31.59 97% 97% 99% 97%
4.6 C# Mono LLVM #6 8.13 78,976 986 31.62 96% 99% 97% 97%
4.6 C# .NET Core #5 8.27 66,936 839 32.66 99% 100% 99% 99%
5.0 Clojure #7 8.94 156,448 1195 31.73 88% 88% 89% 91%
6.4 C# .NET Core #3 11.36 83,708 701 44.97 99% 99% 100% 99%
6.5 C# Mono LLVM #3 11.52 76,668 701 45.20 98% 98% 98% 99%
6.5 Java #3 11.55 89,188 903 45.38 99% 98% 98% 98%
6.5 C# .NET Core 11.61 83,564 798 45.94 99% 99% 100% 99%
6.5 Haskell GHC #2 11.63 44,252 782 46.34 100% 100% 100% 100%
6.6 C# Mono LLVM 11.76 78,728 798 46.10 99% 98% 98% 98%
6.6 Scala #5 11.82 108,820 589 45.26 98% 95% 95% 96%
6.7 Go #6 12.03 32,448 700 47.92 100% 100% 100% 100%
6.8 Go 12.11 33,728 823 48.27 100% 100% 100% 100%
6.8 Chapel 12.17 59,756 455 48.40 100% 100% 100% 99%
6.9 F# .NET Core #3 12.38 85,428 800 48.97 99% 99% 99% 100%
7.3 Scala 13.05 76,924 724 51.19 98% 98% 98% 100%
7.7 F# .NET Core #2 13.75 46,232 1043 54.39 99% 99% 100% 99%
7.7 OCaml 13.78 7,800 710 54.76 100% 100% 100% 99%
8.1 Clojure #6 14.41 125,792 1069 52.88 95% 92% 90% 91%
9.3 Go #2 16.56 34,468 837 50.49 70% 69% 100% 68%
9.3 Pascal Free Pascal #4 16.62 31,540 748 66.34 100% 100% 100% 100%
10 Lisp SBCL #3 18.01 57,208 888 46.39 39% 93% 33% 93%
11 Fortran Intel #4 18.89 64,588 611 48.78 92% 42% 92% 33%
11 Racket #4 19.41 124,816 796 73.95 95% 96% 95% 96%
11 Dart 20.48 101,328 901 55.86 99% 99% 39% 38%
13 Pascal Free Pascal #2 23.31 32,920 820 61.87 94% 93% 37% 43%
13 Pascal Free Pascal 23.32 32,892 820 61.87 43% 93% 37% 93%
14 C++ g++ #5 24.17 33,608 590 24.16 0% 1% 1% 100%
15 Node.js 27.26 1,234,188 778 91.48 81% 82% 82% 91%
17 C++ g++ #2 29.58 34,144 687 29.57 1% 1% 1% 100%
18 Hack #3 31.66 125,900 864 124.70 98% 99% 98% 99%
24 Java 42.97 38,872 665 43.00 78% 1% 23% 0%
27 C gcc #2 47.35 716 400 47.34 0% 100% 1% 1%
27 Clojure #5 48.96 110,532 1069 50.36 34% 15% 20% 34%
28 Swift 50.66 4,348 394 50.65 0% 1% 1% 100%
29 Scala #2 51.76 32,152 454 51.85 1% 100% 0% 1%
30 Ada 2005 GNAT #2 53.17 1,976 572 53.15 0% 100% 0% 1%
31 OCaml #6 55.22 2,056 444 55.20 1% 0% 100% 1%
32 C# Mono LLVM #2 56.34 39,856 484 56.32 0% 100% 0% 1%
32 Fortran Intel #5 57.13 34,092 508 57.11 1% 100% 0% 1%
41 Racket #3 72.89 21,084 797 72.89 1% 100% 1% 1%
48 Racket #2 86.23 20,280 585 86.22 2% 1% 44% 57%
51 C++ g++ #3 90.38 1,672 414 90.35 1% 100% 1% 1%
66 Racket 117.79 25,164 517 117.79 1% 67% 33% 1%
68 Hack 120.67 116,284 441 120.62 42% 14% 5% 41%
71 Erlang HiPE #2 127.17 1,303,564 613 8 min 98% 99% 99% 99%
74 Erlang HiPE 131.23 1,711,344 534 8 min 99% 97% 97% 97%
75 PHP #3 134.34 132,880 863 8 min 100% 100% 100% 100%
113 Lua #6 201.89 23,560 623 11 min 84% 94% 85% 83%
165 Python 3 #7 293.92 55,392 686 19 min 100% 100% 100% 100%
246 Ruby #5 7 min 72,684 1019 29 min 100% 100% 100% 100%
253 Hack #2 7 min 114,384 458 7 min 22% 12% 52% 16%
254 Python 3 #2 7 min 14,076 777 29 min 100% 98% 98% 98%
285 Erlang #2 8 min 1,285,708 613 33 min 100% 100% 100% 100%
289 Erlang 8 min 1,649,380 534 34 min 99% 99% 100% 99%
296 PHP 8 min 7,892 443 8 min 18% 25% 16% 45%
301 Python 3 #5 8 min 54,876 449 35 min 100% 100% 100% 100%
315 Ruby #2 9 min 153,484 925 37 min 100% 100% 100% 100%
317 Lua 9 min 2,792 359 9 min 1% 1% 100% 1%
317 Lua #3 9 min 2,656 358 9 min 1% 2% 16% 84%
321 Ruby #6 9 min 226,580 885 35 min 95% 95% 95% 95%
327 Smalltalk VW #2 9 min 55,640 467 9 min 0% 100% 1% 1%
386 Lua #2 11 min 1,148 367 11 min 1% 6% 95% 1%
433 Perl 12 min 45,540 579 51 min 100% 100% 100% 100%
485 Ruby JRuby #4 14 min 2,288,400 849 56 min 98% 98% 98% 98%
657 Ruby JRuby #3 19 min 677,544 307 19 min 37% 24% 17% 25%
  Ruby #3 29 min 9,100 307 29 min 13% 9% 51% 28%
  Ruby #4 29 min 70,508 849 29 min 26% 26% 26% 24%
  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
F# .NET Core #4 Failed
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
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
Scala #3 Failed
TypeScript Timed Out