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 |
| nsieve | ± | 2× | ± | |
| pidigits | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| spectral-norm | ± | 6× | ± | |
| fannkuch | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| sum-file | ± | ± | 1/2 | |
| regex-dna | ± | 4× | 1/3 | |
| nsieve-bits | 2× | 2× | ± | |
| reverse-complement | 2× | 3× | 1/2 | |
| k-nucleotide | 2× | 3× | 1/2 | |
| mandelbrot | 3× | ± | ± | |
| recursive | 3× | ± | ± | |
| n-body | 3× | 1/2 | ± | |
± 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 |
|---|---|---|---|---|---|
| nsieve | |||||
| OCaml | 3.71 | 18,156 | 295 | ||
| C++ GNU g++ | 3.76 | 10,788 | 313 | ||
| pidigits | |||||
| OCaml | 2.94 | 3,144 | 560 | ||
| C++ GNU g++ | 2.85 | 3,124 | 652 | ||
| binary-trees | |||||
| OCaml | 6.15 | 8,484 | 469 | ||
| C++ GNU g++ | 5.91 | 7,000 | 541 | ||
| spectral-norm | |||||
| OCaml | 18.67 | 18,528 | 369 | ||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| fannkuch | |||||
| OCaml | 9.39 | 3,128 | 485 | ||
| C++ GNU g++ | 8.28 | 3,096 | 554 | ||
| partial-sums | |||||
| OCaml | 2.09 | 3,136 | 508 | ||
| C++ GNU g++ | 1.84 | 3,096 | 531 | ||
| sum-file | |||||
| OCaml | 7.18 | 14,908 | 138 | ||
| C++ GNU g++ | 6.29 | 14,864 | 260 | ||
| regex-dna | |||||
| OCaml | 7.56 | 47,768 | 615 | ||
| C++ GNU g++ | 6.45 | 13,408 | 1588 | ||
| nsieve-bits | |||||
| OCaml | 4.36 | 5,048 | 413 | ||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| reverse-complement | |||||
| OCaml | 1.05 | 45,716 | 540 | ||
| C++ GNU g++ | 0.63 | 13,288 | 810 | ||
| k-nucleotide | |||||
| OCaml | 13.10 | 32,048 | 845 | ||
| C++ GNU g++ | 7.63 | 9,312 | 1380 | ||
| mandelbrot | |||||
| OCaml | 7.72 | 3,368 | 444 | ||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| recursive | |||||
| OCaml | 7.04 | 1,112 | 389 | ||
| C++ GNU g++ | 2.59 | 1,008 | 566 | ||
| n-body | |||||
| OCaml | 35.65 | 620 | 1239 | ||
| C++ GNU g++ | 12.78 | 936 | 1705 | ||
| chameneos-redux | |||||
| fasta | |||||
The Objective Caml native-code compiler, version 3.10.0
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html