x64 Ubuntu : Intel® Q6600® one core |
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 |
| fannkuch | ± | ± | 1/2 | |
| regex-dna | 2× | 4× | 1/2 | |
| n-body | 2× | ± | ± | |
| spectral-norm | 2× | 2× | 1/3 | |
| pidigits | 2× | 2× | ± | |
| reverse-complement | 2× | 2× | 1/4 | |
| mandelbrot | 3× | 2× | ± | |
| binary-trees | 3× | 1/2 | ± | |
| fasta | 6× | ± | ± | |
| k-nucleotide | 8× | 4× | 1/3 | |
| chameneos-redux | 17× | ± | ± | |
± 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 |
|---|---|---|---|---|---|
| fannkuch | |||||
| OCaml | 63.48 | 63.48 | 932 | 485 | 0% 0% 0% 100% |
| C++ GNU g++ | 50.34 | 50.34 | 1,260 | 1186 | 0% 0% 0% 100% |
| regex-dna | |||||
| OCaml | 19.73 | 19.74 | 389,536 | 892 | 0% 0% 0% 100% |
| C++ GNU g++ | 12.64 | 12.64 | 100,436 | 1759 | 0% 0% 0% 100% |
| n-body | |||||
| OCaml | 32.65 | 32.65 | 816 | 1239 | 0% 0% 0% 100% |
| C++ GNU g++ | 20.57 | 20.56 | 932 | 1428 | 0% 0% 0% 100% |
| spectral-norm | |||||
| OCaml | 20.23 | 20.24 | 1,788 | 377 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.90 | 11.89 | 1,156 | 1114 | 0% 0% 0% 100% |
| pidigits | |||||
| OCaml | 6.70 | 6.70 | 3,992 | 560 | 0% 0% 0% 100% |
| C++ GNU g++ | 3.79 | 3.79 | 1,696 | 682 | 0% 0% 1% 100% |
| reverse-complement | |||||
| OCaml | 2.55 | 2.55 | 388,260 | 582 | 0% 0% 0% 100% |
| C++ GNU g++ | 1.03 | 1.03 | 245,640 | 2275 | 1% 0% 1% 100% |
| mandelbrot | |||||
| OCaml | 65.78 | 65.78 | 63,984 | 929 | 0% 0% 0% 100% |
| C++ GNU g++ | 25.03 | 25.03 | 31,448 | 858 | 0% 0% 0% 100% |
| binary-trees | |||||
| OCaml | 51.65 | 51.65 | 157,668 | 784 | 0% 0% 0% 100% |
| C++ GNU g++ | 16.52 | 16.51 | 296,208 | 892 | 0% 1% 0% 100% |
| fasta | |||||
| OCaml | 13.63 | 13.64 | 996 | 1042 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.26 | 2.26 | 964 | 1470 | 1% 1% 0% 100% |
| k-nucleotide | |||||
| OCaml | 88.09 | 88.09 | 574,588 | 1205 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.41 | 11.41 | 142,264 | 3415 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| OCaml | 57.51 | 57.51 | 2,032 | 1279 | 0% 0% 0% 100% |
| C++ GNU g++ | 3.39 | 3.39 | 1,396 | 1606 | 0% 0% 0% 100% |
The Objective Caml native-code compiler, version 3.11.0
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html