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.0C gcc #9 19.7419.7532,496694  0% 0% 0% 100%
1.2C gcc 23.4223.4231,452822  1% 0% 0% 100%
1.2Java  #2 23.9223.9391,684796  1% 1% 1% 100%
1.2C gcc #4 24.0524.0632,496799  0% 0% 0% 100%
1.2Ada 2005 GNAT #3 24.1524.1734,1001805  1% 0% 0% 100%
1.2C gcc #6 24.1724.1831,488879  1% 2% 0% 100%
1.2C gcc #3 24.2324.2434,280763  1% 1% 0% 100%
1.2C gcc #7 24.2324.2432,896994  0% 0% 1% 100%
1.2Rust #2 24.3324.3453,6441080  1% 0% 0% 100%
1.2C++ g++ #7 24.3924.4033,8121017  0% 0% 1% 100%
1.3Go #3 25.5025.5134,428894  0% 1% 1% 100%
1.4Scala #4 27.3927.40105,828786  1% 1% 1% 100%
1.4Java  #6 27.6427.6689,792802  0% 0% 1% 100%
1.4C++ g++ #6 28.0428.0532,8961035  0% 0% 1% 100%
1.4Lisp SBCL 28.5328.5455,6722459  1% 0% 1% 100%
1.6C# Mono #4 31.5431.5578,916872  0% 0% 1% 100%
1.6C# Mono #6 31.5631.5780,864986  0% 0% 1% 100%
1.6Clojure #7 32.0032.02149,5281195  1% 1% 0% 100%
1.7C++ g++ #9 32.9933.0033,628726  0% 0% 0% 100%
1.7C++ g++ #8 33.0033.0133,620742  0% 0% 0% 100%
1.8F# Mono #4 34.9734.9985,352869  1% 1% 0% 100%
1.8C++ g++ #5 36.1236.1333,384590  0% 0% 1% 100%
2.0C++ g++ #2 38.6038.6133,700687  0% 0% 0% 100%
2.1Go #2 42.3442.3533,116837  0% 0% 1% 100%
2.2Java  43.0243.0343,560665  0% 0% 1% 100%
2.2Scala #5 43.2943.31104,940589  1% 0% 0% 100%
2.2Java  #3 43.6743.6989,152903  1% 0% 0% 100%
2.3F# Mono #3 44.5444.5682,404800  1% 0% 1% 100%
2.3C# Mono #3 45.1845.2078,676701  0% 0% 1% 100%
2.3Haskell GHC #2 45.6345.6538,752782  1% 1% 0% 100%
2.3C# Mono 45.8845.8980,588798  0% 0% 1% 100%
2.4Lisp SBCL #3 46.5546.5746,084888  1% 0% 0% 100%
2.4Go #6 47.1747.1831,708700  0% 1% 1% 100%
2.4C gcc #2 47.3447.35804400  0% 0% 0% 100%
2.4Fortran Intel #4 47.9547.9660,236611  1% 1% 0% 100%
2.5Scala 49.7649.7881,796724  1% 1% 0% 100%
2.6Clojure #5 51.6651.68112,1201077  1% 1% 1% 100%
2.6Go 51.9851.9931,752823  0% 1% 1% 100%
2.6Scala #2 52.0552.0734,400454  0% 0% 1% 100%
2.7Fortran Intel #5 53.0153.0332,384508  1% 0% 0% 100%
2.7Clojure #6 53.1253.14128,1121077  1% 1% 0% 100%
2.7Ada 2005 GNAT #2 53.3353.351,932572  1% 0% 0% 100%
2.8OCaml 54.8654.885,960710  0% 1% 0% 100%
2.8OCaml #6 55.1355.14964444  1% 0% 0% 100%
2.9C# Mono #2 56.3156.3339,980484  0% 0% 1% 100%
2.9Dart 56.9756.99104,292901  1% 0% 0% 100%
3.5Pascal Free Pascal #4 68.1568.1830,380748  1% 0% 0% 100%
3.7Racket #4 73.7373.7570,180796  0% 0% 1% 100%
3.8Racket #3 75.3875.4128,024797  0% 1% 0% 100%
3.8Pascal Free Pascal #3 75.4375.478530  1% 0% 1% 100%
4.1Pascal Free Pascal 80.5880.6133,612820  1% 0% 0% 100%
4.1Hack #2 80.8380.86119,924458  0% 0% 1% 100%
4.2C++ g++ #3 83.2883.301,576414  1% 2% 1% 100%
4.4Racket #2 87.2187.2423,560585  0% 1% 0% 100%
5.4Racket 107.13107.1619,644517  0% 1% 0% 100%
6.8Pascal Free Pascal #5 134.95135.0131,372829  1% 1% 1% 100%
9.5F# Mono #2 187.23187.2949,0521043  1% 1% 1% 100%
13Hack 247.88247.97117,384441  1% 1% 1% 100%
25Erlang HiPE #2 8 min8 min1,434,544613  1% 1% 1% 100%
25Erlang HiPE 8 min8 min1,434,828534  1% 1% 0% 100%
29Smalltalk VisualWorks #2 9 min9 min52,236467  1% 1% 1% 100%
37Lua #2 12 min12 min1,068367  1% 1% 1% 100%
37Lua #6 12 min12 min30,800623  1% 1% 0% 100%
49Python 3 #7 16 min16 min40,388686  1% 1% 1% 100%
56Ruby JRuby #3 18 min18 min668,536307  0% 1% 1% 100%
59Ruby JRuby #5 19 min19 min892,2161019  1% 1% 0% 100%
62Ruby JRuby #4 20 min20 min2,313,292866  0% 1% 1% 100%
62PHP 20 min20 min4,256443  1% 1% 1% 100%
62PHP #3 20 min20 min115,568863  1% 1% 1% 100%
69Ruby JRuby #2 22 min22 min741,808925  0% 1% 1% 100%
90Python 3 #2 29 min29 min84,544777  1% 1% 0% 100%
97Ruby #5 31 min31 min62,7361019  0% 1% 1% 100%
97Ruby #4 31 min31 min69,460866  0% 1% 1% 100%
98Ruby #3 32 min32 min7,224307  1% 1% 0% 100%
105Python 3 #5 34 min34 min40,236449  1% 1% 1% 100%
109Ruby #2 35 min35 min130,860925  0% 1% 1% 100%
116Ruby #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.5C++ g++ 10.3810.3831,8361239
0.8C gcc #8 15.9115.9232,740859
6.0Python 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