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% 100% 0% 0%
40C gcc #2 50.0150.02316400  0% 1% 1% 100%
108OCaml #6 259.44259.50864444  27% 1% 13% 62%
109C++ g++ #3 177.98178.03872414  1% 14% 53% 34%
118Ada 2005 GNAT #2 58.1458.15944572  1% 0% 100% 0%
218OCaml 84.9321.321,740710  100% 100% 100% 100%
388PHP 18 min18 min3,104443  8% 35% 29% 29%
936Python 3 #2 30 min8 min7,488777  100% 94% 93% 94%
1,881Racket 106.66106.6415,044517  0% 1% 100% 0%
2,005Racket #2 95.7895.7616,036585  1% 0% 0% 100%
2,205Racket #3 76.6876.6617,636797  0% 1% 100% 0%
2,390C# Mono #2 57.2857.3019,120484  100% 1% 0% 1%
2,438Java  43.4043.3619,500665  1% 99% 1% 0%
2,783Scala #2 52.5052.4122,264454  100% 0% 0% 1%
2,806F# Mono #2 53.4814.4222,4441043  98% 92% 94% 88%
3,430C gcc #6 23.505.8927,440879  100% 100% 100% 100%
3,462C gcc 23.445.8827,692822  100% 100% 100% 100%
3,508Python 3 #5 39 min9 min28,064449  100% 100% 100% 100%
3,558C gcc #4 22.615.6728,464799  100% 100% 100% 100%
3,573Python 3 #7 21 min5 min28,580686  100% 100% 100% 100%
3,820Pascal Free Pascal #5 135.8434.0430,560829  100% 100% 100% 100%
3,873Pascal Free Pascal #4 289.8772.5930,980748  100% 100% 100% 100%
3,946C gcc #3 22.775.7231,568763  100% 100% 100% 100%
3,957Go #2 43.4110.8931,656837  100% 100% 100% 100%
3,982C gcc #7 22.845.7431,852994  100% 100% 100% 100%
3,982C++ g++ #6 27.947.0231,8521035  100% 100% 100% 100%
3,982C gcc #9 29.947.7731,852694  95% 100% 95% 95%
3,994Pascal Free Pascal #2 83.6231.4931,948817  95% 36% 41% 95%
3,994Pascal Free Pascal 83.6031.5131,948820  36% 100% 36% 95%
4,008C++ g++ #5 35.0635.0732,060590  1% 1% 0% 100%
4,014Go 75.7818.9932,112823  100% 100% 100% 100%
4,014C++ g++ #8 31.6411.6732,112742  100% 36% 37% 100%
4,016C++ g++ #2 40.1440.1532,128687  0% 100% 1% 0%
4,023C++ g++ #7 23.465.8932,1801017  100% 100% 100% 100%
4,023C++ g++ #9 31.168.0832,180726  96% 100% 96% 96%
4,033Go #6 48.0212.0332,264700  100% 100% 100% 100%
4,060Ada 2005 GNAT #3 24.806.2432,4801805  100% 100% 100% 100%
4,075Fortran Intel #5 56.5956.6132,600508  1% 0% 1% 100%
4,210Go #3 27.106.8133,680894  100% 100% 100% 100%
4,277Haskell GHC #2 55.7313.9734,212782  100% 100% 100% 100%
4,443Rust 20.255.1835,5441323  97% 97% 97% 100%
5,523Perl 1h 02 min15 min44,184579  100% 100% 100% 100%
5,648Lisp SBCL #3 75.5028.9645,184888  38% 95% 33% 95%
6,375C# Mono 45.8611.6450,996798  99% 99% 98% 98%
6,389Racket #4 78.2419.7651,112796  99% 99% 100% 99%
6,410C# Mono #3 44.6811.3551,280701  98% 99% 99% 98%
6,426Ruby #5 1h 10 min17 min51,4081019  100% 100% 100% 100%
6,463C# Mono #6 30.627.8451,700986  99% 98% 97% 97%
6,463C# Mono #4 31.508.0651,704872  97% 99% 98% 97%
6,497F# Mono #3 45.0011.4551,972800  98% 98% 100% 98%
6,801Lisp SBCL 66.8718.7754,4042459  99% 82% 77% 100%
6,832Scala 50.9212.9154,652724  98% 99% 100% 98%
7,080F# Mono #4 35.259.1756,640869  95% 96% 98% 96%
8,135Fortran Intel #4 48.9018.7865,080611  93% 34% 93% 42%
8,318Dart 54.9220.2366,540901  98% 37% 98% 38%
10,207Java  #6 30.597.8081,652802  98% 99% 98% 98%
10,243Java  #2 27.036.9181,940796  98% 99% 97% 98%
10,479Java  #3 42.7610.8583,828903  99% 99% 99% 98%
10,600Scala #5 43.7415.9484,800589  91% 68% 65% 52%
10,700Scala #4 27.497.0885,596786  96% 99% 97% 97%
10,817Ruby #2 1h 27 min21 min86,532925  100% 100% 100% 100%
11,688Clojure #6 58.8015.9493,5041069  90% 96% 91% 93%
11,719Clojure #5 56.3254.5793,7481069  61% 21% 13% 10%
13,464PHP #3 18 min280.48107,708863  100% 100% 100% 100%
14,061Ruby #6 1h 28 min23 min112,484909  97% 97% 97% 97%
16,711Clojure #7 34.909.66133,6881195  88% 96% 89% 90%
89,012Ruby JRuby #2 2h 19 min35 min712,096925  99% 99% 99% 99%
110,480Erlang HiPE 10 min169.77883,836534  95% 97% 94% 95%
285,533Ruby JRuby #4 44 min11 min2,284,264866  98% 98% 98% 98%
Fortran Intel Bad Output485
Fortran Intel #3 Bad Output754
Fortran Intel #2 Bad Output813
Python 3 #3 Failed304
Ruby #3 Timed Out1h 00 min307
Ruby #4 Timed Out1h 00 min866
Ruby JRuby #6 Failed909
Ruby JRuby #3 Timed Out1h 00 min307
Ruby JRuby #5 Failed1019
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2,001C gcc #5 7.531.9016,0081026
3,307C++ g++ 10.722.6926,4561239
3,856C gcc #8 17.644.4230,848859
5,770Python 3 #6 157.5440.9446,1601380

 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