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.0Rust 17.8917.9059,364868  1% 0% 0% 100%
1.1C gcc #9 19.7419.7532,496694  0% 0% 0% 100%
1.3C gcc 23.4223.4231,452822  1% 0% 0% 100%
1.3Java  #2 23.9223.9391,684796  1% 1% 1% 100%
1.3C gcc #4 24.0524.0632,496799  0% 0% 0% 100%
1.4Ada 2005 GNAT #3 24.1524.1734,1001805  1% 0% 0% 100%
1.4C gcc #6 24.1724.1831,488879  1% 2% 0% 100%
1.4C gcc #3 24.2324.2434,280763  1% 1% 0% 100%
1.4C gcc #7 24.2324.2432,896994  0% 0% 1% 100%
1.4Rust #2 24.3624.3853,6441080  0% 0% 0% 100%
1.4C++ g++ #7 24.3924.4033,8121017  0% 0% 1% 100%
1.4Go #3 25.5625.5734,064894  1% 0% 0% 100%
1.5Scala #4 27.3927.40105,828786  1% 1% 1% 100%
1.5Java  #6 27.6427.6689,792802  0% 0% 1% 100%
1.6C++ g++ #6 28.0428.0532,8961035  0% 0% 1% 100%
1.6Lisp SBCL 28.5328.5455,6722459  1% 0% 1% 100%
1.8C# Mono #4 31.5431.5580,876872  0% 1% 0% 100%
1.8C# Mono #6 31.5731.5880,704986  0% 1% 0% 100%
1.8Clojure #7 32.0032.02149,5281195  1% 1% 0% 100%
1.8C++ g++ #9 32.9933.0033,628726  0% 0% 0% 100%
1.8C++ g++ #8 33.0033.0133,620742  0% 0% 0% 100%
2.0F# Mono #4 35.8835.8985,860869  0% 1% 1% 100%
2.0C++ g++ #5 36.1236.1333,384590  0% 0% 1% 100%
2.2C++ g++ #2 38.6038.6133,700687  0% 0% 0% 100%
2.3Go #2 41.9942.0035,076837  1% 0% 0% 100%
2.4Java  43.0243.0343,560665  0% 0% 1% 100%
2.4Scala #5 43.2943.31104,940589  1% 0% 0% 100%
2.4Java  #3 43.6743.6989,152903  1% 0% 0% 100%
2.5F# Mono #3 44.8144.8284,844800  1% 0% 0% 100%
2.5C# Mono #3 45.1745.1979,520701  1% 0% 1% 100%
2.6Haskell GHC #2 45.6345.6538,752782  1% 1% 0% 100%
2.6C# Mono 45.8945.9182,344798  0% 1% 1% 100%
2.6Lisp SBCL #3 46.5546.5746,084888  1% 0% 0% 100%
2.6C gcc #2 47.3447.35804400  0% 0% 0% 100%
2.7Go #6 47.4947.5133,404700  1% 0% 0% 100%
2.7Fortran Intel #4 47.9547.9660,236611  1% 1% 0% 100%
2.8Scala 49.7649.7881,796724  1% 1% 0% 100%
2.9Clojure #5 51.6651.68112,1201077  1% 1% 1% 100%
2.9Scala #2 52.0552.0734,400454  0% 0% 1% 100%
3.0Fortran Intel #5 53.0153.0332,384508  1% 0% 0% 100%
3.0Clojure #6 53.1253.14128,1121077  1% 1% 0% 100%
3.0Ada 2005 GNAT #2 53.3353.351,932572  1% 0% 0% 100%
3.1OCaml 54.8654.885,960710  0% 1% 0% 100%
3.1Go 54.9154.9233,832823  1% 0% 0% 100%
3.1OCaml #6 55.1355.14964444  1% 0% 0% 100%
3.1C# Mono #2 56.1656.1939,372484  0% 1% 0% 100%
3.2Dart 56.9456.9793,744901  1% 0% 0% 100%
3.8Pascal Free Pascal #4 68.1568.1830,380748  1% 0% 0% 100%
4.2Racket #4 75.3875.4077,404796  0% 0% 0% 100%
4.2Pascal Free Pascal #3 75.4375.478530  1% 0% 1% 100%
4.2Racket #3 75.8575.8733,128797  0% 0% 0% 100%
4.5Pascal Free Pascal 80.5880.6133,612820  1% 0% 0% 100%
4.5Hack #2 80.9781.00118,092458  1% 0% 0% 100%
4.7C++ g++ #3 83.2883.301,576414  1% 2% 1% 100%
4.8Racket #2 85.2485.2623,008585  1% 0% 1% 100%
6.1Racket 108.40108.4324,076517  1% 1% 0% 100%
7.5Pascal Free Pascal #5 134.95135.0131,372829  1% 1% 1% 100%
11F# Mono #2 195.34195.4948,7601043  0% 1% 1% 100%
14Hack 247.96248.04116,084441  1% 1% 0% 100%
27Erlang HiPE #2 8 min8 min1,434,544613  1% 1% 1% 100%
28Erlang HiPE 8 min8 min1,434,828534  1% 1% 0% 100%
33Smalltalk VisualWorks #2 9 min9 min54,232467  0% 1% 1% 100%
41Lua #2 12 min12 min1,068367  1% 1% 1% 100%
41Lua #6 12 min12 min30,800623  1% 1% 0% 100%
54Python 3 #7 16 min16 min40,388686  1% 1% 1% 100%
62Ruby JRuby #3 18 min18 min668,536307  0% 1% 1% 100%
66Ruby JRuby #5 19 min19 min892,2161019  1% 1% 0% 100%
68Ruby JRuby #4 20 min20 min2,313,292866  0% 1% 1% 100%
68PHP 20 min20 min4,256443  1% 1% 1% 100%
69PHP #3 20 min20 min115,568863  1% 1% 1% 100%
76Ruby JRuby #2 22 min22 min741,808925  0% 1% 1% 100%
99Python 3 #2 29 min29 min84,544777  1% 1% 0% 100%
107Ruby #5 31 min31 min62,7361019  0% 1% 1% 100%
107Ruby #4 31 min31 min69,460866  0% 1% 1% 100%
108Ruby #3 32 min32 min7,224307  1% 1% 0% 100%
115Python 3 #5 34 min34 min40,236449  1% 1% 1% 100%
120Ruby #2 35 min35 min130,860925  0% 1% 1% 100%
128Ruby #6 38 min38 min374,024909  0% 1% 1% 100%
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
Scala #3 Failed796
"wrong" (different) algorithm / less comparable programs
0.4C gcc #5 7.337.3316,9561026
0.6C++ g++ 10.3810.3831,8361239
0.9C gcc #8 15.9115.9232,740859
6.7Python 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