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%
50C gcc #2 47.2347.25396400  1% 0% 1% 100%
128Lua #2 13 min13 min1,024367  0% 0% 0% 100%
134C++ g++ #3 74.5774.601,068414  1% 1% 0% 100%
154Ada 2005 GNAT #2 57.1857.201,232572  1% 0% 0% 100%
165Lua 11 min11 min1,320353  0% 0% 0% 100%
392OCaml #6 56.3856.403,132444  0% 0% 0% 100%
531PHP 20 min20 min4,248443  0% 1% 1% 100%
819OCaml 55.7755.926,548710  0% 0% 0% 100%
964Ruby #3 30 min30 min7,708307  1% 1% 1% 100%
2,228Racket 102.97103.0017,824517  0% 0% 1% 100%
2,530Racket #2 88.1588.4420,240585  1% 1% 1% 100%
2,630Racket #3 74.4074.4221,036797  1% 1% 1% 100%
2,728C# Mono #2 55.2455.2521,820484  1% 1% 0% 100%
3,116Lua #6 14 min14 min24,928623  0% 0% 0% 100%
3,323F# Mono #2 185.73185.8026,5801043  0% 1% 1% 100%
3,448Scala #2 51.8751.8927,584454  1% 0% 0% 100%
3,793Ada 2005 GNAT #3 22.7422.7730,3441805  1% 0% 0% 100%
3,798Pascal Free Pascal #4 68.1568.1830,380748  1% 0% 0% 100%
3,890C gcc #6 24.6224.6431,116879  1% 1% 1% 100%
3,890C gcc 24.6224.6331,116822  1% 1% 1% 100%
3,922Pascal Free Pascal #5 134.95135.0131,372829  1% 1% 1% 100%
3,933C gcc #9 19.3819.3931,460694  0% 0% 1% 100%
3,956C gcc #3 24.0824.0931,644763  0% 1% 0% 100%
3,958C gcc #4 24.1524.1631,660799  0% 1% 1% 100%
3,959C++ g++ #6 28.6428.6531,6721035  0% 1% 1% 100%
3,971Go 51.7551.7731,768823  0% 1% 1% 100%
3,984C gcc #7 24.2224.2331,868994  1% 1% 0% 100%
4,033C++ g++ #5 37.6337.6432,260590  1% 0% 1% 100%
4,041C++ g++ #2 39.5539.5632,328687  0% 0% 1% 100%
4,049C++ g++ #7 23.7523.7632,3881017  1% 1% 0% 100%
4,049C++ g++ #9 33.0633.0732,388726  1% 1% 0% 100%
4,049C++ g++ #8 33.3633.3832,388742  1% 0% 0% 100%
4,058Fortran Intel #5 54.7854.7932,460508  0% 0% 0% 100%
4,183Go #2 43.2043.2233,460837  1% 1% 0% 100%
4,184Go #6 47.0747.0933,472700  1% 0% 1% 100%
4,202Pascal Free Pascal 80.5880.6133,612820  1% 0% 0% 100%
4,370Go #3 25.4525.4634,960894  0% 1% 0% 100%
4,655Java  42.7242.7337,236665  1% 0% 0% 100%
4,817Haskell GHC #2 45.5345.5538,532782  1% 0% 0% 100%
5,041Python 3 #5 33 min33 min40,324449  1% 1% 1% 100%
5,325Smalltalk VisualWorks #2 9 min9 min42,596467  0% 0% 0% 100%
5,904Lisp SBCL #3 46.6346.6447,228888  1% 0% 1% 100%
6,771Fortran Intel #4 47.4047.4154,164611  0% 0% 0% 100%
6,855Rust 20.1120.1254,8361290  1% 1% 1% 100%
7,024C# Mono 45.8845.9056,192798  0% 0% 1% 100%
7,136C# Mono #4 31.6131.6257,088872  0% 1% 1% 100%
7,172C# Mono #6 31.4931.5057,372986  0% 0% 1% 100%
7,481Lisp SBCL 28.5328.5459,8482459  1% 1% 0% 100%
7,569C# Mono #3 44.8844.8960,552701  0% 0% 1% 100%
7,648Racket #4 71.5971.6161,184796  0% 0% 0% 100%
7,712F# Mono #3 44.4444.4661,696800  0% 0% 1% 100%
7,850Ruby #4 31 min31 min62,796866  0% 1% 0% 100%
7,873F# Mono #4 35.0035.0162,980869  0% 1% 1% 100%
8,182Ruby #5 30 min30 min65,4561019  1% 0% 1% 100%
8,758Scala 47.7347.7570,060724  3% 1% 1% 100%
10,776Java  #6 27.5827.5986,204802  1% 0% 0% 100%
11,025Java  #2 23.8623.8788,200796  1% 0% 1% 100%
11,070Java  #3 42.9642.9788,556903  1% 0% 0% 100%
11,486Scala #4 27.6327.6491,888786  0% 1% 0% 100%
12,784Scala #5 43.2343.25102,268589  1% 1% 0% 100%
12,929Dart 56.9256.94103,432901  1% 1% 1% 100%
13,349Clojure #5 51.9751.99106,7881069  1% 1% 0% 100%
13,819Python 3 #2 27 min27 min110,552777  0% 1% 1% 100%
14,509PHP #3 20 min20 min116,072863  0% 1% 1% 100%
15,391Clojure #6 53.5153.54123,1241069  1% 0% 0% 100%
18,318Clojure #7 31.9631.98146,5401195  1% 6% 0% 100%
20,212Ruby #2 35 min35 min161,696925  1% 1% 1% 100%
28,393Ruby #6 38 min38 min227,140909  1% 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%
142,204Hack #2 87.8787.911,137,632458  0% 1% 1% 100%
142,464Hack 166.43166.491,139,708441  0% 1% 1% 100%
152,747Erlang HiPE 242.37242.621,221,972534  0% 0% 0% 100%
289,162Ruby JRuby #4 20 min20 min2,313,292866  0% 1% 1% 100%
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
Hack #3 Failed864
JavaScript V8 #2 Bad Output353
Pascal Free Pascal #2 Make Error817
Perl Failed579
Python 3 #3 Failed304
Ruby JRuby #6 Failed909
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2,010C gcc #5 7.307.3116,0801026
3,954C++ g++ 10.6010.6131,6281239
3,991C gcc #8 15.1915.2031,924859
6,516Python 3 #6 120.00120.1552,1281380

 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