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%
109C++ g++ #3 177.98178.03872414  1% 14% 53% 34%
118Ada 2005 GNAT #2 58.1458.15944572  1% 0% 100% 0%
206OCaml #6 85.8085.841,648444  0% 95% 5% 0%
391PHP 19 min19 min3,124443  29% 18% 2% 53%
467OCaml 150.0337.713,736710  100% 100% 100% 99%
661Ruby #3 1h 05 min1h 05 min5,284307  28% 22% 21% 30%
936Python 3 #2 30 min8 min7,488777  100% 94% 93% 94%
1,881Racket 106.66106.6415,044517  0% 1% 100% 0%
1,957Java  43.3943.3615,652665  23% 78% 1% 1%
2,005Racket #2 95.7895.7616,036585  1% 0% 0% 100%
2,205Racket #3 76.6876.6617,636797  0% 1% 100% 0%
2,330Scala #2 52.5052.4218,636454  5% 95% 0% 1%
2,387C# Mono #2 57.5757.5919,092484  1% 100% 0% 1%
2,802F# Mono #2 53.5214.4222,4161043  98% 93% 94% 87%
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,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,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,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++ #9 31.168.0832,180726  96% 100% 96% 96%
4,023C++ g++ #7 23.465.8932,1801017  100% 100% 100% 100%
4,033Go #6 48.3012.1032,264700  100% 100% 100% 100%
4,060Ada 2005 GNAT #3 24.806.2432,4801805  100% 100% 100% 100%
4,076Fortran Intel #5 56.8956.9132,608508  0% 0% 100% 0%
4,159Haskell GHC #2 48.0612.0433,272782  100% 100% 100% 100%
4,329Go #2 43.4010.9034,628837  100% 100% 100% 100%
4,708Perl 1h 01 min15 min37,660579  100% 100% 100% 100%
5,751Lisp SBCL #3 75.5028.9646,008888  95% 33% 95% 38%
6,195Scala 50.9212.9249,556724  100% 98% 98% 98%
6,362C# Mono 45.9011.6750,892798  99% 98% 98% 99%
6,389Racket #4 78.2419.7651,112796  99% 99% 100% 99%
6,400C# Mono #3 44.7111.3751,200701  98% 99% 99% 98%
6,450C# Mono #4 31.528.0651,600872  97% 97% 99% 98%
6,479F# Mono #3 45.0411.4651,832800  98% 98% 99% 98%
6,485C# Mono #6 30.637.8551,880986  97% 98% 98% 97%
6,493Lisp SBCL 93.2626.0751,9402459  99% 100% 80% 80%
7,066F# Mono #4 35.919.3556,528869  96% 97% 96% 96%
7,549Fortran Intel #4 48.7318.4160,388611  96% 34% 96% 40%
8,649Java  #6 30.447.7669,188802  98% 97% 99% 98%
8,742Java  #3 42.2510.7269,932903  98% 98% 99% 98%
9,186Java  #2 27.176.9573,488796  97% 97% 99% 98%
9,466PHP #3 19 min290.9875,728863  100% 100% 100% 100%
10,695Scala #5 43.6915.9185,556589  66% 68% 99% 42%
10,797Clojure #6 58.3616.0886,3761069  92% 92% 90% 90%
11,052Ruby #2 1h 13 min18 min88,412925  100% 100% 100% 100%
11,207Clojure #5 55.9454.3389,6521069  3% 5% 84% 12%
16,851Clojure #7 34.729.60134,8081195  94% 89% 88% 92%
17,511Dart 52.6119.35140,088901  97% 98% 39% 40%
25,127Scala #4 28.457.36201,012786  96% 96% 99% 97%
77,378Ruby JRuby #3 17 min17 min619,024307  24% 30% 26% 23%
82,865Erlang HiPE 6 min107.28662,920534  94% 92% 91% 92%
83,595Ruby JRuby #2 1h 53 min28 min668,756925  99% 99% 99% 99%
279,314Ruby JRuby #4 44 min11 min2,234,512866  98% 98% 98% 98%
Fortran Intel Bad Output485
Fortran Intel #3 Bad Output754
Fortran Intel #2 Bad Output813
Python 3 #3 Failed304
Ruby #4 Timed Out1h 00 min866
Rust Bad Output1386
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

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