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 78.7278.758530  1% 1% 0% 100%
40C gcc #2 50.0150.02316400  0% 0% 1% 100%
108OCaml #6 5 min5 min860444  1% 1% 1% 100%
108Lua #2 18 min18 min864367  1% 1% 1% 100%
109C++ g++ #3 224.82224.88872414  0% 1% 1% 100%
118Ada 2005 GNAT #2 58.1358.15944572  1% 0% 0% 100%
218OCaml 84.9285.071,740710  0% 1% 1% 100%
388PHP 19 min19 min3,100443  0% 1% 1% 100%
608C CINT #2 1h 32 min1h 32 min4,860400  0% 0% 0% 100%
1,878Racket 120.25120.3415,024517  1% 0% 0% 100%
2,003Racket #2 95.4395.4616,020585  0% 0% 1% 100%
2,204Racket #3 76.7676.7917,632797  0% 0% 1% 100%
2,256Lua #6 17 min17 min18,044623  0% 1% 1% 100%
2,391C# Mono #2 57.4357.4519,124484  0% 0% 1% 100%
2,704Java  44.2444.2621,628665  1% 1% 1% 100%
2,804F# Mono #2 189.01189.0622,4281043  1% 1% 1% 100%
3,036Scala #2 56.0656.0824,288454  0% 1% 1% 100%
3,215Smalltalk VisualWorks #2 16 min16 min25,720467  1% 1% 1% 100%
3,498Python 3 #5 38 min38 min27,984449  1% 1% 1% 100%
3,566Python 3 #7 18 min18 min28,528686  1% 1% 1% 100%
3,624C gcc #6 23.4623.4728,988879  1% 1% 0% 100%
3,624C gcc 23.4123.4228,988822  0% 0% 1% 100%
3,856C gcc #4 22.5922.6030,848799  1% 0% 1% 100%
3,857C gcc #9 29.9429.9530,852694  0% 1% 1% 100%
3,911Pascal Free Pascal #5 135.84135.8831,288829  1% 1% 1% 100%
3,946C gcc #3 22.7622.7631,568763  1% 1% 1% 100%
3,949C++ g++ #6 27.9327.9431,5881035  0% 2% 1% 100%
3,949C gcc #7 22.8222.8331,588994  0% 0% 1% 100%
3,965Pascal Free Pascal #4 289.90289.9831,720748  1% 1% 0% 100%
4,001Ada 2005 GNAT #3 24.7924.8132,0041805  1% 0% 1% 100%
4,008C++ g++ #5 35.0635.0732,060590  1% 1% 1% 100%
4,016C++ g++ #2 40.1240.1432,128687  1% 1% 1% 100%
4,016Pascal Free Pascal 83.6083.6332,128820  1% 1% 0% 100%
4,019Go 75.8075.8332,152823  0% 1% 1% 100%
4,023C++ g++ #8 31.2831.2832,180742  0% 0% 1% 100%
4,023C++ g++ #7 23.4423.4532,1801017  0% 1% 1% 100%
4,023C++ g++ #9 30.8630.8632,180726  0% 1% 1% 100%
4,036Go #6 48.0348.0532,284700  0% 1% 1% 100%
4,075Fortran Intel #5 56.6756.6932,600508  1% 0% 0% 100%
4,119Pascal Free Pascal #2 83.6083.6232,948817  0% 0% 1% 100%
4,171Go #2 44.4944.5133,364837  0% 0% 1% 100%
4,400Haskell GHC #2 54.9454.9635,200782  1% 1% 0% 100%
4,495Go #3 27.1027.1135,960894  0% 1% 1% 100%
4,768Rust 20.2220.2338,1401323  0% 1% 1% 100%
5,648Lisp SBCL #3 75.4975.5145,184888  0% 1% 1% 100%
6,376C# Mono 45.8045.8151,004798  0% 1% 1% 100%
6,389Racket #4 78.2378.2651,108796  1% 0% 0% 100%
6,411C# Mono #3 44.6544.6651,288701  0% 0% 1% 100%
6,443C# Mono #4 31.5131.5251,544872  0% 1% 1% 100%
6,443C# Mono #6 30.5530.5651,544986  1% 0% 1% 100%
6,497F# Mono #3 45.0345.0551,972800  1% 1% 1% 100%
6,525Python 3 #2 28 min28 min52,196777  1% 1% 1% 100%
6,789Lisp SBCL 66.8766.8854,3122459  0% 0% 1% 100%
6,803Java  #3 41.2341.2554,420903  0% 1% 0% 100%
7,081Scala 48.7448.7656,644724  1% 2% 0% 100%
7,083F# Mono #4 35.1535.1656,664869  1% 0% 0% 100%
7,231Fortran Intel #4 47.7847.8057,848611  1% 1% 1% 100%
7,405Java  #2 26.9626.9859,240796  1% 0% 0% 100%
9,265Dart 54.9554.9774,120901  0% 1% 1% 100%
10,251Java  #6 29.3329.3482,008802  1% 1% 0% 100%
10,662Scala #5 43.3043.3185,292589  1% 1% 0% 100%
11,571Clojure #6 57.9257.9492,5641069  1% 1% 1% 100%
11,627Clojure #5 56.1256.1593,0161069  0% 1% 0% 100%
11,985Scala #4 27.0427.0695,876786  1% 1% 0% 100%
13,551PHP #3 19 min19 min108,404863  1% 1% 0% 100%
16,033Clojure #7 34.9634.99128,2641195  0% 1% 1% 100%
79,315Ruby JRuby #3 16 min16 min634,516307  0% 1% 1% 100%
86,365Ruby JRuby #2 26 min26 min690,920925  0% 1% 1% 100%
90,482Erlang HiPE 10 min10 min723,856534  1% 1% 1% 100%
171,210Ruby JRuby #5 16 min16 min1,369,6761019  1% 1% 1% 100%
284,522Ruby JRuby #4 18 min18 min2,276,172866  0% 1% 1% 100%
Fortran Intel Bad Output485
Fortran Intel #3 Bad Output754
Fortran Intel #2 Bad Output813
JavaScript V8 #2 Bad Output353
Lua Failed353
Perl Failed579
Python 3 #3 Failed304
Ruby #3 Timed Out1h 00 min307
Ruby #6 Timed Out1h 00 min909
Ruby #4 Timed Out1h 00 min866
Ruby #2 Timed Out1h 00 min925
Ruby #5 Timed Out1h 00 min1019
Ruby JRuby #6 Failed909
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2,001C gcc #5 7.517.5216,0081026
3,829C++ g++ 10.4510.4630,6281239
3,857C gcc #8 16.7116.7130,852859
5,769Python 3 #6 157.08157.4746,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