The Computer Language
Benchmarks Game

mandelbrot

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Pascal Free Pascal #3 56.34 8 520 56.32 1% 0% 0% 100%
90 C gcc #2 47.35 716 400 47.34 0% 100% 1% 1%
209 C++ g++ #3 90.38 1,672 414 90.35 1% 100% 1% 1%
251 Ada 2005 GNAT #2 53.58 2,008 572 53.56 1% 1% 0% 100%
257 OCaml #6 55.22 2,056 444 55.20 1% 0% 100% 1%
542 Swift 50.67 4,336 394 50.66 1% 0% 100% 1%
  OCaml 13.78 7,800 710 54.76 100% 100% 100% 99%
  Python 3 #2 7 min 13,520 777 28 min 98% 100% 98% 98%
  Racket #2 86.23 20,280 585 86.22 2% 1% 44% 57%
  Racket #3 72.89 21,084 797 72.89 1% 100% 1% 1%
  Lua #6 201.89 23,560 623 11 min 84% 94% 85% 83%
  Racket 117.79 25,164 517 117.79 1% 67% 33% 1%
  Rust #3 1.94 26,380 1007 7.72 99% 100% 100% 99%
  C gcc 5.95 28,100 822 23.73 100% 100% 100% 100%
  C gcc #5 1.78 29,792 911 7.03 100% 99% 99% 98%
  C gcc #6 1.64 29,848 1135 6.51 100% 100% 100% 100%
  C gcc #4 6.04 29,984 799 24.06 100% 100% 100% 100%
  Pascal Free Pascal #4 16.62 30,348 748 66.34 100% 100% 100% 100%
  Scala #2 51.74 30,572 454 51.81 71% 30% 1% 0%
  Go #3 5.64 31,052 894 22.41 99% 99% 99% 100%
  Pascal Free Pascal #5 14.68 31,120 820 58.58 100% 100% 100% 100%
  Ada 2005 GNAT #3 5.70 32,000 1805 22.54 100% 99% 99% 99%
  Go #6 11.06 32,356 700 44.10 100% 100% 100% 100%
  C gcc #3 6.08 32,472 763 24.20 100% 100% 100% 100%
  C gcc #9 5.92 32,572 694 22.78 95% 95% 95% 100%
  Pascal Free Pascal 23.34 32,908 820 61.87 93% 93% 43% 36%
  Pascal Free Pascal #2 23.33 32,908 820 61.88 43% 93% 37% 93%
  C++ g++ #6 6.93 32,956 1035 27.62 100% 100% 100% 100%
  C gcc #7 6.09 32,972 994 24.25 100% 100% 100% 100%
  C gcc #8 4.84 33,048 782 18.80 96% 100% 96% 96%
  C++ g++ #5 24.17 33,608 590 24.16 0% 1% 1% 100%
  Go 9.57 33,700 823 38.19 100% 100% 100% 100%
  C++ g++ #8 8.11 33,944 742 22.04 37% 100% 37% 100%
  C++ g++ #9 5.82 33,952 726 22.40 96% 95% 95% 100%
  C++ g++ #7 6.10 34,056 1017 24.29 100% 100% 100% 100%
  Fortran Intel #5 57.13 34,092 508 57.11 1% 100% 0% 1%
  C++ g++ #2 29.58 34,144 687 29.57 1% 1% 1% 100%
  Go #2 16.50 34,168 837 49.99 68% 68% 68% 100%
  Rust #4 1.90 38,724 1160 7.48 98% 98% 99% 98%
  Swift #3 3.22 40,340 1136 12.76 99% 99% 100% 99%
  Rust 4.89 42,364 868 19.33 99% 100% 99% 99%
  Java  42.92 42,424 665 42.95 1% 1% 100% 1%
  Haskell GHC #2 11.63 44,252 782 46.34 100% 100% 100% 100%
  F# .NET Core #2 13.71 44,352 1043 54.27 100% 99% 99% 99%
  Perl 12 min 45,540 579 51 min 100% 100% 100% 100%
  Python 3 #7 250.62 52,752 686 16 min 100% 100% 100% 100%
  Python 3 #5 7 min 54,368 449 28 min 100% 100% 100% 100%
  Chapel 12.17 59,756 455 48.40 100% 100% 100% 99%
  Lisp SBCL #3 18.00 61,756 888 46.38 94% 33% 93% 39%
  Fortran Intel #4 18.89 64,588 611 48.78 92% 42% 92% 33%
  C# .NET Core #5 8.27 66,956 839 32.66 99% 100% 99% 99%
  Ruby #5 7 min 69,656 1019 30 min 100% 100% 100% 100%
  Lisp SBCL 7.83 71,292 2459 28.53 99% 91% 99% 83%
  Scala 13.07 75,944 724 51.23 98% 100% 98% 98%
  C# .NET Core 11.60 83,328 798 45.93 99% 100% 99% 99%
  C# .NET Core #3 11.36 83,440 701 44.97 99% 99% 100% 99%
  F# .NET Core #3 12.40 85,312 800 49.04 99% 99% 100% 99%
  Java #2 5.89 89,504 796 23.08 98% 98% 98% 99%
  Java #6 7.16 92,036 802 28.16 99% 98% 98% 99%
  Java #3 11.51 92,632 903 45.52 99% 99% 100% 99%
  Scala #4 7.51 104,084 786 28.84 95% 99% 95% 95%
  Scala #5 11.80 108,224 589 45.25 96% 95% 94% 99%
  Clojure #5 48.96 110,532 1069 50.36 34% 15% 20% 34%
  Dart 20.51 111,732 901 55.94 99% 38% 99% 38%
  Racket #4 19.41 124,816 796 73.95 95% 96% 95% 96%
  Clojure #6 14.41 125,792 1069 52.88 95% 92% 90% 91%
  Hack #3 31.24 125,920 864 122.48 98% 98% 98% 99%
  PHP #3 134.34 132,880 863 8 min 100% 100% 100% 100%
  Ruby #2 9 min 138,736 925 37 min 100% 100% 100% 100%
  Ruby #6 9 min 148,668 885 36 min 95% 95% 95% 95%
  Clojure #7 8.94 156,448 1195 31.73 88% 88% 89% 91%
  Node.js 17.49 564,704 778 62.77 84% 84% 96% 97%
  Ruby JRuby #3 18 min 684,340 307 19 min 33% 25% 18% 28%
  Erlang #2 8 min 1,285,708 613 33 min 100% 100% 100% 100%
  Erlang HiPE #2 127.17 1,303,564 613 8 min 98% 99% 99% 99%
  Erlang 8 min 1,649,380 534 34 min 99% 99% 100% 99%
  Erlang HiPE 131.23 1,711,344 534 8 min 99% 97% 97% 97%
  Ruby JRuby #5 16 min 1,811,060 1019 1h 03 min 98% 98% 98% 98%
  Ruby JRuby #4 14 min 2,290,948 849 55 min 98% 98% 98% 98%
C# .NET Core #2 Failed
Fortran Intel #2 Bad Output
Fortran Intel #3 Bad Output
Fortran Intel Bad Output
Hack Partial
Hack #2 Partial
Lua #2 Partial
Lua Partial
Lua #3 Partial
PHP Partial
TypeScript Timed Out
Smalltalk VW #2 Partial