mandelbrot benchmark N=16,000

Each chart bar shows how many times more Memory, one ↓ mandelbrot program used, compared to the program that used least Memory.

These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.

Column × shows how many times more each program used compared to the benchmark program that used least.

    sortsort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Pascal Free Pascal #3 75.4475.478530  0% 1% 100% 0%
50C gcc #2 47.2347.25396400  0% 1% 0% 100%
120OCaml #6 54.9855.00960444  1% 0% 100% 1%
134C++ g++ #3 74.5774.601,072414  1% 0% 0% 100%
154Ada 2005 GNAT #2 57.2657.281,232572  1% 1% 100% 0%
534PHP 20 min20 min4,268443  23% 18% 35% 27%
687OCaml 54.8913.785,492710  100% 100% 100% 100%
888Ruby #3 31 min31 min7,104307  20% 25% 44% 13%
1,311Python 3 #2 28 min7 min10,488777  100% 99% 99% 99%
2,587Racket #2 85.6085.5920,696585  0% 29% 0% 72%
2,727C# Mono #2 54.9654.9821,816484  1% 0% 100% 0%
2,729Racket 107.53107.5221,832517  1% 0% 100% 0%
3,341F# Mono #2 47.7812.9726,7281043  90% 92% 94% 94%
3,582Scala #2 51.9451.8628,656454  1% 99% 0% 2%
3,633C gcc #6 24.656.1829,064879  100% 100% 100% 100%
3,638C gcc #4 24.176.0729,104799  100% 100% 100% 100%
3,696C gcc 24.666.1829,568822  100% 100% 100% 100%
3,756Pascal Free Pascal #5 134.9633.8230,044829  100% 100% 100% 100%
3,890Go #6 47.1911.8231,116700  100% 100% 100% 100%
3,890Racket #3 75.3675.3431,120797  0% 1% 40% 60%
3,895Pascal Free Pascal #4 68.1417.0731,160748  100% 100% 100% 100%
3,909Go 51.9713.0431,272823  100% 100% 100% 100%
3,956C gcc #3 24.086.0531,644763  100% 100% 100% 100%
3,969Go #3 25.506.4131,748894  100% 100% 99% 100%
3,991C gcc #9 19.445.0231,928694  96% 96% 100% 96%
3,992C gcc #7 24.246.0931,932994  100% 100% 100% 100%
3,992C++ g++ #6 28.667.1931,9361035  100% 100% 100% 100%
4,013Ada 2005 GNAT #3 22.755.7532,1041805  99% 99% 99% 99%
4,032C++ g++ #5 37.6837.7032,256590  1% 0% 0% 100%
4,041C++ g++ #2 39.5539.5632,328687  99% 1% 1% 1%
4,048C++ g++ #9 33.088.6032,384726  95% 95% 95% 100%
4,049C++ g++ #8 33.3912.3232,388742  36% 36% 100% 100%
4,049C++ g++ #7 23.775.9732,3881017  100% 100% 100% 100%
4,057Pascal Free Pascal 80.5930.3432,456820  91% 40% 95% 41%
4,073Fortran Intel #5 56.8656.8832,580508  1% 1% 0% 100%
4,423Go #2 41.5110.4135,380837  100% 100% 100% 100%
4,430Java  42.9342.9035,440665  78% 1% 23% 0%
5,034Python 3 #5 34 min8 min40,268449  100% 100% 100% 100%
5,151Haskell GHC #2 45.8111.4941,208782  100% 100% 100% 100%
5,307Python 3 #7 15 min239.6042,456686  100% 100% 100% 100%
5,425Perl 51 min12 min43,400579  100% 100% 100% 100%
5,761Lisp SBCL #3 46.5718.1846,084888  92% 40% 93% 32%
6,959Lisp SBCL 28.537.9055,6722459  82% 100% 98% 83%
7,052C# Mono 45.8311.6156,416798  98% 99% 99% 99%
7,140C# Mono #4 31.588.0557,116872  98% 98% 99% 98%
7,158C# Mono #6 31.488.0357,260986  99% 98% 98% 98%
7,176F# Mono #3 44.4611.3057,408800  98% 99% 98% 99%
7,287C# Mono #3 44.9411.3958,292701  98% 99% 99% 99%
7,635Fortran Intel #4 49.0818.7861,076611  94% 41% 93% 34%
7,655Scala 49.8512.6761,240724  100% 99% 99% 99%
7,830Ruby #5 32 min8 min62,6361019  100% 100% 100% 100%
8,111F# Mono #4 34.118.8564,884869  96% 96% 96% 98%
8,645Ruby #4 31 min31 min69,156866  21% 29% 31% 20%
8,699Racket #4 73.7018.6569,588796  99% 99% 100% 99%
10,507Java  #3 43.0410.9484,056903  98% 99% 99% 98%
10,769Java  #2 28.057.1786,152796  98% 97% 98% 99%
10,959Java  #6 31.758.0887,668802  98% 98% 98% 99%
11,018Scala #5 43.6415.8888,140589  62% 82% 63% 69%
11,135Dart 56.9221.0189,076901  37% 98% 37% 99%
11,210Scala #4 27.967.1789,680786  97% 97% 100% 97%
13,912Hack 149.21149.26111,292441  1% 0% 100% 0%
13,919Hack #2 84.4984.51111,348458  50% 0% 51% 1%
14,183Clojure #5 52.2550.69113,4641069  37% 32% 2% 34%
14,405PHP #3 20 min5 min115,240863  100% 100% 100% 100%
15,604Clojure #6 54.8315.00124,8321069  93% 91% 92% 90%
16,946Ruby #2 33 min8 min135,564925  99% 99% 100% 99%
19,293Clojure #7 32.178.95154,3401195  89% 89% 87% 97%
37,548Ruby #6 37 min9 min300,384909  95% 95% 95% 95%
82,536Ruby JRuby #3 18 min18 min660,288307  21% 30% 33% 19%
94,785Ruby JRuby #2 1h 53 min29 min758,280925  99% 99% 98% 99%
95,368Ruby JRuby #4 55 min14 min762,944866  98% 98% 98% 98%
135,268Erlang #2 33 min8 min1,082,140613  99% 99% 99% 99%
140,646Erlang HiPE #2 9 min149.611,125,164613  96% 95% 97% 95%
199,654Ruby JRuby #5 1h 02 min16 min1,597,2281019  98% 98% 98% 98%
200,691Erlang 33 min8 min1,605,524534  98% 98% 98% 98%
216,894Erlang HiPE 9 min159.161,735,152534  94% 92% 94% 93%
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
Hack #3 Failed864
Pascal Free Pascal #2 Make Error817
Ruby JRuby #6 Failed909
Rust Make Error1323
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2,010C gcc #5 7.321.8516,0801026
3,411C++ g++ 10.742.7027,2881239
3,991C gcc #8 16.014.0231,924859
6,769Python 3 #6 119.8130.7854,1521380

 mandelbrot benchmark : Generate Mandelbrot set portable bitmap file

You can write your own program for this task and contribute to the benchmarks game by following these general instructions.

More specifically:

cmp program output N = 200 with this 5KB output file to check your program is correct before contributing.

We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

Mandlebrot output N=200,converted to PNG

Each program should plot the Mandelbrot set [-1.5-i,0.5+i] on an N-by-N bitmap. Write output byte-by-byte in portable bitmap format.

For more information see Eric W. Weisstein, "Mandelbrot Set." From MathWorld--A Wolfram Web Resource.
http://mathworld.wolfram.com/MandelbrotSet.html

Thanks to Greg Buchholz for this benchmark.

Revised BSD license

  Home   Conclusions   License   Play