OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest OCaml program used compared to the fastest C++ GNU g++ program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest OCaml program used compared to the fastest C++ GNU g++ program.
| OCaml used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| regex-dna | ± | 4× | 1/3 | |
| nsieve | ± | 2× | ± | |
| fannkuch | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| nsieve-bits | ± | 2× | 1/3 | |
| partial-sums | ± | 1/2 | ± | |
| spectral-norm | ± | ± | ± | |
| sum-file | ± | ± | 1/2 | |
| k-nucleotide | 2× | 4× | 1/2 | |
| reverse-complement | 2× | 4× | 1/2 | |
| mandelbrot | 2× | ± | 1/2 | |
| recursive | 3× | ± | ± | |
| n-body | 4× | ± | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest OCaml program are shown for comparison against measurements of the fastest C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| OCaml | 5.54 | 45,364 | 615 | ||
| C++ GNU g++ | 5.58 | 12,704 | 1588 | ||
| nsieve | |||||
| OCaml | 2.16 | 9,380 | 295 | ||
| C++ GNU g++ | 2.08 | 5,764 | 313 | ||
| fannkuch | |||||
| OCaml | 8.30 | 592 | 485 | ||
| C++ GNU g++ | 7.78 | 844 | 554 | ||
| binary-trees | |||||
| OCaml | 4.83 | 8,732 | 469 | ||
| C++ GNU g++ | 4.47 | 6,996 | 541 | ||
| nsieve-bits | |||||
| OCaml | 4.41 | 5,020 | 176 | ||
| C++ GNU g++ | 3.86 | 3,316 | 494 | ||
| partial-sums | |||||
| OCaml | 4.64 | 564 | 508 | ||
| C++ GNU g++ | 4.05 | 852 | 531 | ||
| spectral-norm | |||||
| OCaml | 31.63 | 1,196 | 369 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| sum-file | |||||
| OCaml | 8.74 | 692 | 138 | ||
| C++ GNU g++ | 6.47 | 852 | 260 | ||
| k-nucleotide | |||||
| OCaml | 13.83 | 34,636 | 845 | ||
| C++ GNU g++ | 7.46 | 9,304 | 1380 | ||
| reverse-complement | |||||
| OCaml | 1.02 | 47,244 | 540 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| mandelbrot | |||||
| OCaml | 6.06 | 716 | 444 | ||
| C++ GNU g++ | 3.02 | 896 | 1097 | ||
| recursive | |||||
| OCaml | 7.47 | 1,120 | 389 | ||
| C++ GNU g++ | 2.40 | 1,008 | 566 | ||
| n-body | |||||
| OCaml | 54.00 | 644 | 1239 | ||
| C++ GNU g++ | 14.62 | 932 | 1705 | ||
| pidigits | |||||
| OCaml | |||||
| chameneos-redux | |||||
| fasta | |||||
The Objective Caml toplevel, version 3.10.2
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html