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.4375.478530  1% 0% 1% 100%
101C gcc #2 47.3447.35804400  0% 0% 0% 100%
121OCaml #6 55.1355.14964444  1% 0% 0% 100%
134Lua #2 12 min12 min1,068367  1% 1% 1% 100%
197C++ g++ #3 83.2883.301,576414  1% 2% 1% 100%
242Ada 2005 GNAT #2 53.3353.351,932572  1% 0% 0% 100%
532PHP 20 min20 min4,256443  1% 1% 1% 100%
745OCaml 54.8654.885,960710  0% 1% 0% 100%
903Ruby #3 32 min32 min7,224307  1% 1% 0% 100%
2,456Racket 107.13107.1619,644517  0% 1% 0% 100%
2,945Racket #2 87.2187.2423,560585  0% 1% 0% 100%
3,503Racket #3 75.3875.4128,024797  0% 1% 0% 100%
3,798Pascal Free Pascal #4 68.1568.1830,380748  1% 0% 0% 100%
3,850Lua #6 12 min12 min30,800623  1% 1% 0% 100%
3,922Pascal Free Pascal #5 134.95135.0131,372829  1% 1% 1% 100%
3,932C gcc 23.4223.4231,452822  1% 0% 0% 100%
3,936C gcc #6 24.1724.1831,488879  1% 2% 0% 100%
3,964Go #6 47.1747.1831,708700  0% 1% 1% 100%
3,969Go 51.9851.9931,752823  0% 1% 1% 100%
4,048Fortran Intel #5 53.0153.0332,384508  1% 0% 0% 100%
4,062C gcc #9 19.7419.7532,496694  0% 0% 0% 100%
4,062C gcc #4 24.0524.0632,496799  0% 0% 0% 100%
4,112C gcc #7 24.2324.2432,896994  0% 0% 1% 100%
4,112C++ g++ #6 28.0428.0532,8961035  0% 0% 1% 100%
4,140Go #2 42.3442.3533,116837  0% 0% 1% 100%
4,173C++ g++ #5 36.1236.1333,384590  0% 0% 1% 100%
4,202Pascal Free Pascal 80.5880.6133,612820  1% 0% 0% 100%
4,203C++ g++ #8 33.0033.0133,620742  0% 0% 0% 100%
4,204C++ g++ #9 32.9933.0033,628726  0% 0% 0% 100%
4,213C++ g++ #2 38.6038.6133,700687  0% 0% 0% 100%
4,227C++ g++ #7 24.3924.4033,8121017  0% 0% 1% 100%
4,263Ada 2005 GNAT #3 24.1524.1734,1001805  1% 0% 0% 100%
4,285C gcc #3 24.2324.2434,280763  1% 1% 0% 100%
4,300Scala #2 52.0552.0734,400454  0% 0% 1% 100%
4,304Go #3 25.5025.5134,428894  0% 1% 1% 100%
4,844Haskell GHC #2 45.6345.6538,752782  1% 1% 0% 100%
4,982C# Mono #2 56.2056.2139,852484  1% 1% 1% 100%
5,030Python 3 #5 34 min34 min40,236449  1% 1% 1% 100%
5,049Python 3 #7 16 min16 min40,388686  1% 1% 1% 100%
5,445Java  43.0243.0343,560665  0% 0% 1% 100%
5,761Lisp SBCL #3 46.5546.5746,084888  1% 0% 0% 100%
6,530Smalltalk VisualWorks #2 9 min9 min52,236467  1% 1% 1% 100%
6,707Rust #2 24.4924.5053,6521080  1% 0% 0% 100%
6,959Lisp SBCL 28.5328.5455,6722459  1% 0% 1% 100%
7,530Fortran Intel #4 47.9547.9660,236611  1% 1% 0% 100%
7,842Ruby #5 31 min31 min62,7361019  0% 1% 1% 100%
8,683Ruby #4 31 min31 min69,460866  0% 1% 1% 100%
8,773Racket #4 73.7373.7570,180796  0% 0% 1% 100%
9,576C# Mono 45.9846.0076,608798  1% 1% 1% 100%
9,981C# Mono #3 45.1345.1579,844701  1% 1% 0% 100%
10,117C# Mono #4 31.5431.5580,936872  2% 2% 1% 100%
10,123C# Mono #6 31.5631.5880,980986  1% 1% 2% 100%
10,225Scala 49.7649.7881,796724  1% 1% 0% 100%
10,502F# Mono #3 44.8044.8284,016800  1% 1% 1% 100%
10,568Python 3 #2 29 min29 min84,544777  1% 1% 0% 100%
10,880F# Mono #4 34.8934.9087,040869  1% 0% 0% 100%
11,144Java  #3 43.6743.6989,152903  1% 0% 0% 100%
11,224Java  #6 27.6427.6689,792802  0% 0% 1% 100%
11,461Java  #2 23.9223.9391,684796  1% 1% 1% 100%
12,054Dart 56.9857.0196,428901  1% 0% 1% 100%
13,118Scala #5 43.2943.31104,940589  1% 0% 0% 100%
13,229Scala #4 27.3927.40105,828786  1% 1% 1% 100%
13,349Clojure #5 51.9751.99106,7881069  1% 1% 0% 100%
13,666Hack 154.13154.17109,328441  0% 0% 0% 100%
13,919Hack #2 83.8383.86111,348458  0% 0% 1% 100%
14,446PHP #3 20 min20 min115,568863  1% 1% 1% 100%
15,391Clojure #6 53.5153.54123,1241069  1% 0% 0% 100%
16,358Ruby #2 35 min35 min130,860925  0% 1% 1% 100%
18,318Clojure #7 31.9631.98146,5401195  1% 6% 0% 100%
46,753Ruby #6 38 min38 min374,024909  0% 1% 1% 100%
83,567Ruby JRuby #3 18 min18 min668,536307  0% 1% 1% 100%
92,726Ruby JRuby #2 22 min22 min741,808925  0% 1% 1% 100%
111,527Ruby JRuby #5 19 min19 min892,2161019  1% 1% 0% 100%
152,920Erlang HiPE #2 9 min9 min1,223,356613  1% 1% 1% 100%
179,300Erlang HiPE 9 min9 min1,434,400534  0% 1% 1% 100%
289,162Ruby JRuby #4 20 min20 min2,313,292866  0% 1% 1% 100%
F# Mono #2 Failed1043
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
Hack #3 Failed864
JavaScript V8 #2 Bad Output353
Lua Failed353
Pascal Free Pascal #2 Make Error817
Perl Failed579
Ruby JRuby #6 Failed909
Rust Make Error1323
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2,120C gcc #5 7.337.3316,9561026
3,980C++ g++ 10.3810.3831,8361239
4,093C gcc #8 15.9115.9232,740859
6,768Python 3 #6 118.91119.0454,1441380

 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