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× | 7× | 1/3 | 500,000 |
| spectral-norm | 2× | 2× | 1/3 | |
| n-body | 2× | ± | ± | |
| pidigits | 2× | 2× | ± | |
| fasta | 3× | ± | ± | |
| k-nucleotide | 3× | ± | 1/2 | 2,500,000 |
| binary-trees | 3× | 1/2 | ± | |
| reverse-complement | 4× | ± | 1/6 | |
| mandelbrot | 5× | 1/36 | 1/2 | |
| chameneos-redux | 16× | ± | ± | |
± 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 | 61.37 | 61.37 | 756 | 485 | 0% 0% 0% 100% |
| C++ GNU g++ | 50.01 | 50.01 | 1,124 | 1186 | 0% 0% 0% 100% |
| regex-dna N = 500,000 reduced workload | |||||
| OCaml | 2.17 | 2.17 | 48,788 | 615 | 0% 1% 0% 100% |
| C++ GNU g++ | 1.43 | 1.43 | 6,904 | 1759 | 1% 0% 1% 100% |
| spectral-norm | |||||
| OCaml | 18.84 | 18.84 | 1,632 | 377 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.94 | 11.94 | 1,004 | 1114 | 0% 0% 1% 100% |
| n-body | |||||
| OCaml | 56.89 | 56.89 | 684 | 1239 | 0% 0% 0% 100% |
| C++ GNU g++ | 23.81 | 23.81 | 788 | 1428 | 0% 1% 0% 100% |
| pidigits | |||||
| OCaml | 6.63 | 6.63 | 2,744 | 560 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.71 | 2.71 | 1,596 | 682 | 0% 0% 1% 100% |
| fasta | |||||
| OCaml | 11.79 | 11.80 | 728 | 1042 | 0% 0% 0% 100% |
| C++ GNU g++ | 3.76 | 3.77 | 816 | 1470 | 0% 0% 0% 100% |
| k-nucleotide N = 2,500,000 reduced workload | |||||
| OCaml | 5.99 | 5.99 | 40,492 | 1205 | 0% 0% 0% 100% |
| C++ GNU g++ | 1.89 | 1.89 | 27,352 | 2673 | 0% 1% 0% 100% |
| binary-trees | |||||
| OCaml | 44.95 | 44.95 | 78,852 | 784 | 0% 0% 0% 100% |
| C++ GNU g++ | 13.47 | 13.47 | 148,652 | 892 | 0% 0% 0% 100% |
| reverse-complement | |||||
| OCaml | 4.78 | 4.78 | 168,920 | 394 | 0% 0% 0% 100% |
| C++ GNU g++ | 1.12 | 1.12 | 245,432 | 2275 | 1% 0% 1% 100% |
| mandelbrot | |||||
| OCaml | 113.76 | 113.75 | 844 | 441 | 0% 0% 0% 100% |
| C++ GNU g++ | 24.55 | 24.55 | 30,564 | 858 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| OCaml | 64.99 | 64.99 | 1,380 | 1279 | 0% 0% 0% 100% |
| C++ GNU g++ | 4.02 | 4.02 | 1,244 | 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