mandelbrot benchmark N=16,000

Each chart bar shows how many times more Code, one ↓ mandelbrot program used, compared to the program that used least Code.

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.0Ruby JRuby #3 18 min18 min668,536307  0% 1% 1% 100%
1.0Ruby #3 32 min32 min7,224307  1% 1% 0% 100%
1.2Lua #2 12 min12 min1,068367  1% 1% 1% 100%
1.3C gcc #2 47.3447.35804400  0% 0% 0% 100%
1.3C++ g++ #3 83.2883.301,576414  1% 2% 1% 100%
1.4Hack 248.08248.15114,588441  1% 1% 1% 100%
1.4PHP 20 min20 min4,256443  1% 1% 1% 100%
1.4OCaml #6 55.1355.14964444  1% 0% 0% 100%
1.5Python 3 #5 34 min34 min40,236449  1% 1% 1% 100%
1.5Scala #2 52.0552.0734,400454  0% 0% 1% 100%
1.5Hack #2 76.2876.31116,432458  1% 2% 1% 100%
1.5Smalltalk VisualWorks #2 9 min9 min52,236467  1% 1% 1% 100%
1.6C# Mono #2 56.2056.2139,852484  1% 1% 1% 100%
1.7Fortran Intel #5 53.0153.0332,384508  1% 0% 0% 100%
1.7Racket 107.13107.1619,644517  0% 1% 0% 100%
1.7Pascal Free Pascal #3 75.4375.478530  1% 0% 1% 100%
1.7Erlang HiPE 9 min9 min1,434,400534  0% 1% 1% 100%
1.9Ada 2005 GNAT #2 53.3353.351,932572  1% 0% 0% 100%
1.9Racket #2 87.2187.2423,560585  0% 1% 0% 100%
1.9Scala #5 43.2943.31104,940589  1% 0% 0% 100%
1.9C++ g++ #5 36.1236.1333,384590  0% 0% 1% 100%
2.0Fortran Intel #4 47.9547.9660,236611  1% 1% 0% 100%
2.0Erlang HiPE #2 9 min9 min1,223,356613  1% 1% 1% 100%
2.0Lua #6 12 min12 min30,800623  1% 1% 0% 100%
2.2Java  43.0243.0343,560665  0% 0% 1% 100%
2.2Python 3 #7 16 min16 min40,388686  1% 1% 1% 100%
2.2C++ g++ #2 38.6038.6133,700687  0% 0% 0% 100%
2.3C gcc #9 19.7419.7532,496694  0% 0% 0% 100%
2.3Go #6 47.1747.1831,708700  0% 1% 1% 100%
2.3C# Mono #3 45.1345.1579,844701  1% 1% 0% 100%
2.3OCaml 54.8654.885,960710  0% 1% 0% 100%
2.4Scala 49.7649.7881,796724  1% 1% 0% 100%
2.4C++ g++ #9 32.9933.0033,628726  0% 0% 0% 100%
2.4C++ g++ #8 33.0033.0133,620742  0% 0% 0% 100%
2.4Pascal Free Pascal #4 68.1568.1830,380748  1% 0% 0% 100%
2.5C gcc #3 24.2324.2434,280763  1% 1% 0% 100%
2.5Python 3 #2 29 min29 min84,544777  1% 1% 0% 100%
2.5Haskell GHC #2 45.6345.6538,752782  1% 1% 0% 100%
2.6Scala #4 27.3927.40105,828786  1% 1% 1% 100%
2.6Java  #2 23.9223.9391,684796  1% 1% 1% 100%
2.6Racket #4 73.7373.7570,180796  0% 0% 1% 100%
2.6Racket #3 75.3875.4128,024797  0% 1% 0% 100%
2.6C# Mono 45.9846.0076,608798  1% 1% 1% 100%
2.6C gcc #4 24.0524.0632,496799  0% 0% 0% 100%
2.6F# Mono #3 44.8044.8284,016800  1% 1% 1% 100%
2.6Java  #6 27.6427.6689,792802  0% 0% 1% 100%
2.7Pascal Free Pascal 80.5880.6133,612820  1% 0% 0% 100%
2.7C gcc 23.4223.4231,452822  1% 0% 0% 100%
2.7Go 51.9851.9931,752823  0% 1% 1% 100%
2.7Pascal Free Pascal #5 134.95135.0131,372829  1% 1% 1% 100%
2.7Go #2 42.3442.3533,116837  0% 0% 1% 100%
2.8PHP #3 20 min20 min115,568863  1% 1% 1% 100%
2.8Ruby JRuby #4 20 min20 min2,313,292866  0% 1% 1% 100%
2.8Ruby #4 31 min31 min69,460866  0% 1% 1% 100%
2.8F# Mono #4 34.8934.9087,040869  1% 0% 0% 100%
2.8C# Mono #4 31.5431.5580,936872  2% 2% 1% 100%
2.9C gcc #6 24.1724.1831,488879  1% 2% 0% 100%
2.9Lisp SBCL #3 46.5546.5746,084888  1% 0% 0% 100%
2.9Go #3 25.5025.5134,428894  0% 1% 1% 100%
2.9Dart 56.9857.0196,428901  1% 0% 1% 100%
2.9Java  #3 43.6743.6989,152903  1% 0% 0% 100%
3.0Ruby #6 38 min38 min374,024909  0% 1% 1% 100%
3.0Ruby #2 35 min35 min130,860925  0% 1% 1% 100%
3.0Ruby JRuby #2 22 min22 min741,808925  0% 1% 1% 100%
3.2C# Mono #6 31.5631.5880,980986  1% 1% 2% 100%
3.2C gcc #7 24.2324.2432,896994  0% 0% 1% 100%
3.3C++ g++ #7 24.3924.4033,8121017  0% 0% 1% 100%
3.3Ruby #5 31 min31 min62,7361019  0% 1% 1% 100%
3.3Ruby JRuby #5 19 min19 min892,2161019  1% 1% 0% 100%
3.4C++ g++ #6 28.0428.0532,8961035  0% 0% 1% 100%
3.5Clojure #5 51.9751.99106,7881069  1% 1% 0% 100%
3.5Clojure #6 53.5153.54123,1241069  1% 0% 0% 100%
3.5Rust #2 24.4924.5053,6521080  1% 0% 0% 100%
3.9Clojure #7 31.9631.98146,5401195  1% 6% 0% 100%
5.9Ada 2005 GNAT #3 24.1524.1734,1001805  1% 0% 0% 100%
8.0Lisp SBCL 28.5328.5455,6722459  1% 0% 1% 100%
F# Mono #2 Failed1043
Fortran Intel #2 Bad Output813
Fortran Intel #3 Bad Output754
Fortran Intel Bad Output485
Hack #3 Failed864
JavaScript V8 #2 Bad Output353
Lua Failed353
Pascal Free Pascal #2 Make Error817
Perl Failed579
Ruby JRuby #6 Failed909
Rust Make Error1323
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
2.8C gcc #8 15.9115.9232,740859
3.3C gcc #5 7.337.3316,9561026
4.0C++ g++ 10.3810.3831,8361239
4.5Python 3 #6 118.91119.0454,1441380

 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