/mobile Handheld Friendly website

 mandelbrot benchmark N=16,000

Each chart bar shows how many times slower, one ↓ mandelbrot program was, compared to the fastest program.

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.

     sortsortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Fortran Intel #6 13.023.4127,880967  96% 96% 96% 96%
1.5C++ g++ #9 19.295.0132,288726  95% 99% 96% 95%
1.5C++ g++ #8 19.567.2132,288742  37% 83% 53% 100%
1.7C++ g++ #5 22.4422.4532,228590  0% 0% 0% 100%
1.7Ada 2005 GNAT #3 22.745.7530,1441805  99% 99% 99% 98%
1.8C gcc #6 23.525.8925,976879  100% 100% 100% 100%
1.8C gcc #4 23.565.9026,832799  100% 100% 100% 100%
1.8C gcc 23.585.9126,052822  100% 100% 100% 100%
1.8C gcc #3 23.655.9531,816763  99% 99% 99% 100%
1.9C++ g++ #7 24.316.1132,2801017  99% 100% 100% 100%
1.9C++ g++ #2 24.4624.4732,224687  0% 4% 96% 0%
1.9ATS 24.556.1526,8482148  100% 100% 100% 100%
1.9ATS #2 25.2425.253921455  0% 0% 0% 100%
2.1C++ g++ #6 27.746.9731,8401035  100% 100% 100% 100%
2.1Java 7  #2 27.827.0769,460796  99% 98% 99% 98%
2.2Lisp SBCL 28.528.0536,3762459  75% 86% 96% 100%
2.2Scala #4 28.577.43233,828786  96% 96% 96% 98%
2.4Java 7  #6 31.557.9969,428802  98% 98% 100% 99%
3.4Java 7  43.6343.5917,264665  0% 0% 100% 0%
3.4Haskell GHC #2 43.6610.9536,536782  100% 100% 100% 100%
3.5C# Mono #3 45.2211.4448,480701  99% 99% 99% 99%
3.5Java 7  #3 45.3011.4669,716903  99% 99% 99% 100%
3.5C# Mono 46.1411.6748,284798  99% 98% 99% 99%
3.6Go #6 46.7311.7029,880700  100% 100% 100% 100%
3.6Lisp SBCL #3 46.7818.2936,468888  92% 76% 48% 40%
3.7Scala 48.1712.2054,196724  98% 98% 99% 100%
3.7Fortran Intel #4 48.4318.4157,492611  96% 34% 95% 41%
3.8F# Mono #3 48.9612.4049,728800  100% 98% 99% 98%
3.8C gcc #2 49.6249.64404400  0% 0% 100% 0%
4.0Scala #2 51.9251.8522,388454  0% 0% 100% 0%
4.0Clojure #5 52.0650.7294,5201069  46% 13% 1% 43%
4.2Clojure #6 54.3114.6895,5561069  96% 91% 92% 92%
4.2C# Mono #2 54.3254.3414,364484  0% 0% 0% 100%
4.3OCaml #6 55.3455.363,108444  0% 0% 100% 0%
4.3OCaml 55.5713.986,316710  99% 100% 100% 100%
4.3Dart 56.2520.58212,724809  53% 39% 99% 83%
4.4Fortran Intel #5 56.7856.8032,732508  0% 0% 100% 0%
4.4Ada 2005 GNAT #2 57.2257.251,248572  0% 0% 100% 0%
4.8F# Mono #2 61.9116.4718,6801043  98% 94% 95% 89%
5.1Pascal Free Pascal #4 66.6116.6729,544748  100% 100% 100% 100%
5.5C++ g++ #3 72.1272.151,068414  0% 0% 0% 100%
5.6Racket #4 73.2518.5160,128796  99% 100% 99% 99%
5.8Racket #3 75.0475.0520,888797  0% 0% 0% 100%
5.8Pascal Free Pascal #3 75.4175.428530  96% 0% 0% 4%
6.2Pascal Free Pascal 80.4330.1931,976820  95% 95% 41% 36%
6.7Racket #2 87.7087.6918,464585  97% 3% 0% 0%
7.9Racket 102.52102.5217,360517  0% 0% 0% 100%
21Erlang HiPE 274.0377.841,269,512534  88% 96% 85% 84%
83Ruby JRuby #3 18 min17 min603,972307  46% 50% 2% 3%
104PHP 22 min22 min4,180443  10% 28% 28% 35%
108PHP #3 23 min5 min114,632863  100% 100% 100% 100%
137Python 3 #2 29 min7 min180,408777  100% 100% 100% 100%
142Ruby 2.0 #3 30 min30 min6,144307  100% 0% 0% 0%
150Erlang 32 min8 min1,252,976534  98% 98% 98% 98%
162Python 3 #5 35 min8 min36,580449  100% 100% 100% 100%
164Ruby 2.0 #2 35 min8 min88,968925  100% 100% 100% 100%
226Perl #3 48 min48 min2,676370  81% 19% 0% 0%
236Perl #4 51 min13 min147,540592  96% 97% 95% 97%
270Ruby JRuby #2 58 min15 min720,548925  97% 98% 98% 98%
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
Pascal Free Pascal #2 Make Error817
Python 3 #3 Failed304
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
 Python 3 #6 Failed  1380
0.5C gcc #5 6.941.7515,9721026
0.8C++ g++ 10.582.6625,7801239

 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