/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® quad-core |
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 | sort | sort | ||||
| × | Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|---|
| 1.0 | Fortran Intel #6 | 13.02 | 3.41 | 27,880 | 967 | 96% 96% 96% 96% |
| 1.5 | C++ g++ #9 | 19.29 | 5.01 | 32,288 | 726 | 95% 99% 96% 95% |
| 1.7 | Ada 2005 GNAT #3 | 22.74 | 5.75 | 30,144 | 1805 | 99% 99% 99% 98% |
| 1.7 | C gcc #6 | 23.52 | 5.89 | 25,976 | 879 | 100% 100% 100% 100% |
| 1.7 | C gcc #4 | 23.56 | 5.90 | 26,832 | 799 | 100% 100% 100% 100% |
| 1.7 | C gcc | 23.58 | 5.91 | 26,052 | 822 | 100% 100% 100% 100% |
| 1.7 | C gcc #3 | 23.65 | 5.95 | 31,816 | 763 | 99% 99% 99% 100% |
| 1.8 | C++ g++ #7 | 24.31 | 6.11 | 32,280 | 1017 | 99% 100% 100% 100% |
| 1.8 | ATS | 24.55 | 6.15 | 26,848 | 2148 | 100% 100% 100% 100% |
| 2.0 | C++ g++ #6 | 27.74 | 6.97 | 31,840 | 1035 | 100% 100% 100% 100% |
| 2.1 | Java 7 #2 | 27.82 | 7.07 | 69,460 | 796 | 99% 98% 99% 98% |
| 2.1 | C++ g++ #8 | 19.56 | 7.21 | 32,288 | 742 | 37% 83% 53% 100% |
| 2.2 | Scala #4 | 28.57 | 7.43 | 233,828 | 786 | 96% 96% 96% 98% |
| 2.3 | Java 7 #6 | 31.55 | 7.99 | 69,428 | 802 | 98% 98% 100% 99% |
| 2.4 | Lisp SBCL | 28.52 | 8.05 | 36,376 | 2459 | 75% 86% 96% 100% |
| 3.2 | Haskell GHC #2 | 43.66 | 10.95 | 36,536 | 782 | 100% 100% 100% 100% |
| 3.4 | C# Mono #3 | 45.22 | 11.44 | 48,480 | 701 | 99% 99% 99% 99% |
| 3.4 | Java 7 #3 | 45.30 | 11.46 | 69,716 | 903 | 99% 99% 99% 100% |
| 3.4 | C# Mono | 46.14 | 11.67 | 48,284 | 798 | 99% 98% 99% 99% |
| 3.4 | Go #6 | 46.72 | 11.70 | 30,000 | 700 | 100% 100% 100% 100% |
| 3.6 | Scala | 48.17 | 12.20 | 54,196 | 724 | 98% 98% 99% 100% |
| 3.6 | F# Mono #3 | 48.96 | 12.40 | 49,728 | 800 | 100% 98% 99% 98% |
| 4.1 | OCaml | 55.57 | 13.98 | 6,316 | 710 | 99% 100% 100% 100% |
| 4.3 | Clojure #6 | 54.31 | 14.68 | 95,556 | 1069 | 96% 91% 92% 92% |
| 4.8 | F# Mono #2 | 61.91 | 16.47 | 18,680 | 1043 | 98% 94% 95% 89% |
| 4.9 | Pascal Free Pascal #4 | 66.61 | 16.67 | 29,544 | 748 | 100% 100% 100% 100% |
| 5.4 | Lisp SBCL #3 | 46.78 | 18.29 | 36,468 | 888 | 92% 76% 48% 40% |
| 5.4 | Fortran Intel #4 | 48.43 | 18.41 | 57,492 | 611 | 96% 34% 95% 41% |
| 5.4 | Racket #4 | 73.25 | 18.51 | 60,128 | 796 | 99% 100% 99% 99% |
| 6.0 | Dart | 56.25 | 20.58 | 212,724 | 809 | 53% 39% 99% 83% |
| 6.6 | C++ g++ #5 | 22.44 | 22.45 | 32,228 | 590 | 0% 0% 0% 100% |
| 7.2 | C++ g++ #2 | 24.46 | 24.47 | 32,224 | 687 | 0% 4% 96% 0% |
| 7.4 | ATS #2 | 25.24 | 25.25 | 392 | 1455 | 0% 0% 0% 100% |
| 8.9 | Pascal Free Pascal | 80.43 | 30.19 | 31,976 | 820 | 95% 95% 41% 36% |
| 13 | Java 7 | 43.63 | 43.59 | 17,264 | 665 | 0% 0% 100% 0% |
| 15 | C gcc #2 | 49.62 | 49.64 | 404 | 400 | 0% 0% 100% 0% |
| 15 | Clojure #5 | 52.06 | 50.72 | 94,520 | 1069 | 46% 13% 1% 43% |
| 15 | Scala #2 | 51.92 | 51.85 | 22,388 | 454 | 0% 0% 100% 0% |
| 16 | C# Mono #2 | 54.32 | 54.34 | 14,364 | 484 | 0% 0% 0% 100% |
| 16 | OCaml #6 | 55.34 | 55.36 | 3,108 | 444 | 0% 0% 100% 0% |
| 17 | Fortran Intel #5 | 56.78 | 56.80 | 32,732 | 508 | 0% 0% 100% 0% |
| 17 | Ada 2005 GNAT #2 | 57.22 | 57.25 | 1,248 | 572 | 0% 0% 100% 0% |
| 21 | C++ g++ #3 | 72.12 | 72.15 | 1,068 | 414 | 0% 0% 0% 100% |
| 22 | Racket #3 | 75.04 | 75.05 | 20,888 | 797 | 0% 0% 0% 100% |
| 22 | Pascal Free Pascal #3 | 75.41 | 75.42 | 8 | 530 | 96% 0% 0% 4% |
| 23 | Erlang HiPE | 274.03 | 77.84 | 1,269,512 | 534 | 88% 96% 85% 84% |
| 26 | Racket #2 | 87.70 | 87.69 | 18,464 | 585 | 97% 3% 0% 0% |
| 30 | Racket | 102.52 | 102.52 | 17,360 | 517 | 0% 0% 0% 100% |
| 103 | PHP #3 | 23 min | 5 min | 114,632 | 863 | 100% 100% 100% 100% |
| 131 | Python 3 #2 | 29 min | 7 min | 180,408 | 777 | 100% 100% 100% 100% |
| 146 | Erlang | 32 min | 8 min | 1,252,976 | 534 | 98% 98% 98% 98% |
| 155 | Python 3 #5 | 35 min | 8 min | 36,580 | 449 | 100% 100% 100% 100% |
| 157 | Ruby 2.0 #2 | 35 min | 8 min | 88,968 | 925 | 100% 100% 100% 100% |
| 235 | Perl #4 | 51 min | 13 min | 147,540 | 592 | 96% 97% 95% 97% |
| 265 | Ruby JRuby #2 | 58 min | 15 min | 720,548 | 925 | 97% 98% 98% 98% |
| 317 | Ruby JRuby #3 | 18 min | 17 min | 603,972 | 307 | 46% 50% 2% 3% |
| 398 | PHP | 22 min | 22 min | 4,180 | 443 | 10% 28% 28% 35% |
| 543 | Ruby 2.0 #3 | 30 min | 30 min | 6,144 | 307 | 100% 0% 0% 0% |
| 863 | Perl #3 | 48 min | 48 min | 2,676 | 370 | 81% 19% 0% 0% |
| Fortran Intel #2 | Bad Output | 813 | ||||
| Fortran Intel #3 | Bad Output | 754 | ||||
| Fortran Intel | Bad Output | 485 | ||||
| Pascal Free Pascal #2 | Make Error | 817 | ||||
| Python 3 #3 | Failed | 304 | ||||
| Scala #3 | Failed | 796 | ||||
| "wrong" (different) algorithm / less comparable programs | ||||||
| Python 3 #6 | Failed | 1380 | ||||
| 0.5 | C gcc #5 | 6.94 | 1.75 | 15,972 | 1026 | |
| 0.8 | C++ g++ | 10.58 | 2.66 | 25,780 | 1239 | |
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.
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.