/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.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Fortran Intel #6 14.9914.9930,604967  0% 0% 0% 100%
1.3C++ g++ #9 19.2619.2732,284726  0% 0% 0% 100%
1.3C++ g++ #8 19.5319.5432,284742  0% 0% 0% 100%
1.5C++ g++ #5 22.4322.4432,228590  0% 0% 0% 100%
1.5Ada 2005 GNAT #3 22.7322.7530,3361805  0% 0% 0% 100%
1.6C gcc #6 23.5323.5428,620879  0% 0% 0% 100%
1.6C gcc #4 23.5423.5529,728799  0% 0% 0% 100%
1.6C gcc 23.5623.5729,936822  0% 0% 0% 100%
1.6C gcc #3 23.6423.6531,816763  0% 0% 0% 100%
1.6Java 7  #2 23.7923.8069,816796  0% 0% 0% 100%
1.6C++ g++ #7 24.2824.2932,2801017  0% 0% 0% 100%
1.6C++ g++ #2 24.4424.4532,224687  0% 0% 0% 100%
1.6ATS 24.5324.5429,6922148  0% 0% 0% 100%
1.7ATS #2 25.2425.253961455  0% 0% 0% 100%
1.8Java 7  #6 27.5427.5569,684802  0% 0% 0% 100%
1.9C++ g++ #6 27.7227.7431,8401035  0% 0% 0% 100%
1.9Scala #4 28.3328.36190,136786  0% 0% 0% 100%
1.9Lisp SBCL 28.5028.5136,2082459  0% 0% 0% 100%
2.8Java 7  #3 41.8641.8869,880903  0% 0% 0% 100%
2.9Java 7  43.2643.2717,280665  0% 0% 0% 100%
2.9Haskell GHC #2 43.3643.3838,408782  0% 0% 0% 100%
3.0C# Mono #3 45.0845.0947,932701  0% 0% 0% 100%
3.1C# Mono 45.9745.9848,440798  0% 0% 0% 100%
3.1Go #6 46.6946.7131,768700  0% 0% 0% 100%
3.1Lisp SBCL #3 46.7646.7836,468888  0% 0% 0% 100%
3.2Fortran Intel #4 47.4047.4154,164611  0% 0% 0% 100%
3.2Scala 48.0548.0754,476724  0% 0% 0% 100%
3.3F# Mono #3 48.9949.0049,316800  0% 0% 0% 100%
3.3C gcc #2 49.8349.84408400  0% 0% 0% 100%
3.5Scala #2 51.7651.7822,084454  0% 0% 0% 100%
3.5Clojure #5 51.9251.9490,2001069  0% 0% 0% 100%
3.5Clojure #6 53.0853.10106,5281069  0% 0% 0% 100%
3.6C# Mono #2 54.2854.3014,372484  0% 0% 0% 100%
3.7Fortran Intel #5 54.7854.7932,460508  0% 0% 0% 100%
3.7OCaml 55.4055.566,308710  0% 0% 0% 100%
3.7OCaml #6 55.7055.723,112444  0% 0% 0% 100%
3.7Dart 56.1856.19212,480809  0% 0% 0% 100%
3.8Ada 2005 GNAT #2 57.2057.231,244572  0% 0% 0% 100%
4.4Pascal Free Pascal #4 66.6066.6230,772748  0% 0% 0% 100%
4.8C++ g++ #3 72.0972.111,068414  0% 0% 0% 100%
4.9Racket #4 73.1073.1360,444796  0% 0% 0% 100%
5.0Racket #3 75.3575.3820,968797  0% 0% 0% 100%
5.0Pascal Free Pascal #3 75.4075.428530  0% 0% 0% 100%
5.4Pascal Free Pascal 80.4280.4431,976820  0% 0% 0% 100%
5.9Racket #2 87.9688.0018,412585  0% 0% 0% 100%
6.9Racket 102.80102.8417,364517  0% 0% 0% 100%
12F# Mono #2 184.61184.6518,5921043  0% 0% 0% 100%
16Erlang HiPE 242.37242.621,221,972534  0% 0% 0% 100%
39Smalltalk VisualWorks #2 9 min9 min42,596467  0% 0% 0% 100%
44Lua 11 min11 min1,320353  0% 0% 0% 100%
55Lua #2 13 min13 min1,024367  0% 0% 0% 100%
57Lua #6 14 min14 min24,928623  0% 0% 0% 100%
62Ruby JRuby #3 15 min15 min599,016307  0% 0% 0% 100%
90PHP 22 min22 min4,180443  0% 0% 0% 100%
91PHP #3 22 min22 min115,360863  0% 0% 0% 100%
93Ruby JRuby #2 23 min23 min679,308925  0% 0% 0% 100%
115Python 3 #2 28 min28 min100,660777  0% 0% 0% 100%
122Ruby 2.0 #3 30 min30 min6,136307  0% 0% 0% 100%
143Python 3 #5 35 min35 min36,524449  0% 0% 0% 100%
150Ruby 2.0 #2 37 min37 min90,876925  0% 0% 0% 100%
171Perl #3 42 min42 min2,620370  0% 0% 0% 100%
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
JavaScript V8 #2 Bad Output353
Pascal Free Pascal #2 Make Error817
Perl #4 Failed592
Python 3 #3 Failed304
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
0.5C gcc #5 6.926.9215,9761026
0.7C++ g++ 10.5110.5229,9041239
7.9Python 3 #6 118.41118.5651,2041380

 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