/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® one core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest OCaml program used compared to the fastest C++ GNU g++ program.
Look at speed another way - look at a box plot of Time-used data.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
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 | |
| fannkuch-redux | ± | 16× | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | 2× | 2× | 1/3 | |
| reverse-complement | 2× | 1/7 | 1/2 | |
| fasta | 2× | 8× | ± | |
| mandelbrot | 2× | 1/12 | 1/2 | |
| binary-trees | 3× | ± | 1/2 | |
| regex-dna | 4× | 3× | ± | |
| pidigits | 8× | 5× | ± | |
| k-nucleotide | 8× | 2× | 1/2 | |
| OCaml used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 2× | 2× | 4× | 7× | 8× |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
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 |
|---|---|---|---|---|---|
| fannkuch-redux | |||||
| OCaml | 0.00 | 64.48 | 19,884 | 1017 | 0% 0% 0% 100% |
| C++ GNU g++ | 50.35 | 50.36 | 1,236 | 1440 | 0% 0% 0% 100% |
| n-body | |||||
| OCaml | 24.77 | 24.78 | 632 | 1239 | 0% 0% 0% 100% |
| C++ GNU g++ | 19.30 | 19.31 | 424 | 1659 | 0% 0% 0% 100% |
| spectral-norm | |||||
| OCaml | 15.69 | 15.70 | 1,696 | 377 | 0% 0% 0% 100% |
| C++ GNU g++ | 9.99 | 10.00 | 756 | 1044 | 0% 0% 0% 100% |
| reverse-complement | |||||
| OCaml | 0.00 | 1.60 | 30,844 | 1314 | 3% 0% 1% 99% |
| C++ GNU g++ | 0.87 | 0.89 | 229,516 | 2275 | 0% 0% 0% 100% |
| fasta | |||||
| OCaml | 13.25 | 13.26 | 2,756 | 1042 | 0% 0% 0% 100% |
| C++ GNU g++ | 6.16 | 6.16 | 356 | 1266 | 0% 0% 0% 100% |
| mandelbrot | |||||
| OCaml | 55.14 | 55.15 | 2,756 | 444 | 0% 0% 0% 100% |
| C++ GNU g++ | 24.28 | 24.29 | 32,300 | 1017 | 0% 0% 0% 100% |
| binary-trees | |||||
| OCaml | 43.86 | 43.91 | 232,048 | 496 | 0% 0% 0% 100% |
| C++ GNU g++ | 17.23 | 17.29 | 296,252 | 892 | 0% 0% 0% 100% |
| regex-dna | |||||
| OCaml | 19.22 | 19.26 | 555,260 | 615 | 0% 0% 0% 100% |
| C++ GNU g++ | 5.39 | 5.40 | 194,088 | 695 | 0% 0% 0% 100% |
| pidigits | |||||
| OCaml | 17.09 | 17.11 | 7,612 | 869 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.27 | 2.27 | 1,648 | 682 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| OCaml | 78.00 | 78.08 | 354,972 | 1789 | 0% 0% 0% 100% |
| C++ GNU g++ | 9.85 | 9.87 | 142,124 | 3415 | 0% 0% 1% 100% |
| fasta-redux | |||||
| C++ GNU g++ | 0.03 | 0.03 | ? | 1474 | 0% 0% 25% 100% |
Remember - those are just the fastest OCaml and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for OCaml.
Maybe one of those other OCaml programs is fastest on a different OS/machine.
Remember - those are just the fastest OCaml and C++ GNU g++ programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.
Maybe one of those other programs is fastest on a different OS/machine.
The Objective Caml native-code compiler, version 3.12.1
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html