Ubuntu : Intel® Q6600® quad-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 |
| spectral-norm | 2× | 3× | ± | |
| regex-dna | 2× | 14× | ± | 500,000 |
| binary-trees | 2× | 1/2 | ± | |
| n-body | 3× | ± | ± | |
| fasta | 3× | ± | ± | |
| fannkuch | 3× | 3× | ± | |
| k-nucleotide | 4× | ± | 1/2 | 2,500,000 |
| reverse-complement | 5× | ± | 1/6 | |
| pidigits | 8× | ± | ± | |
| mandelbrot | 10× | 2× | ± | |
| chameneos-redux | 81× | ± | 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 |
|---|---|---|---|---|---|
| spectral-norm | |||||
| OCaml | 18.58 | 5.80 | 3,112 | 907 | 77% 83% 79% 81% |
| C++ GNU g++ | 11.98 | 3.00 | 1,032 | 1114 | 100% 100% 100% 100% |
| regex-dna N = 500,000 reduced workload | |||||
| OCaml | 2.22 | 1.26 | 96,448 | 1261 | 24% 49% 83% 30% |
| C++ GNU g++ | 1.82 | 0.53 | 6,984 | 1759 | 80% 78% 98% 82% |
| binary-trees | |||||
| OCaml | 54.09 | 15.45 | 78,852 | 784 | 81% 100% 79% 90% |
| C++ GNU g++ | 18.86 | 6.32 | 173,332 | 892 | 60% 74% 74% 71% |
| n-body | |||||
| OCaml | 60.14 | 60.14 | 680 | 1239 | 0% 100% 0% 0% |
| C++ GNU g++ | 23.82 | 23.82 | 788 | 1428 | 100% 0% 0% 0% |
| fasta | |||||
| OCaml | 12.88 | 12.88 | 728 | 1042 | 0% 93% 0% 0% |
| C++ GNU g++ | 3.78 | 3.78 | 816 | 1470 | 99% 1% 0% 0% |
| fannkuch | |||||
| OCaml | 178.79 | 46.77 | 4,004 | 975 | 93% 100% 94% 95% |
| C++ GNU g++ | 49.61 | 13.63 | 1,160 | 1186 | 81% 77% 100% 100% |
| k-nucleotide N = 2,500,000 reduced workload | |||||
| OCaml | 6.04 | 2.75 | 40,492 | 1205 | 24% 75% 41% 85% |
| C++ GNU g++ | 2.35 | 0.77 | 27,380 | 2673 | 74% 66% 80% 86% |
| reverse-complement | |||||
| OCaml | 4.78 | 4.78 | 168,924 | 394 | 100% 0% 0% 0% |
| C++ GNU g++ | 1.34 | 0.92 | 245,440 | 2275 | 68% 50% 14% 15% |
| pidigits | |||||
| OCaml | 21.02 | 21.02 | 2,372 | 510 | 0% 100% 0% 0% |
| C++ GNU g++ | 2.71 | 2.71 | 1,600 | 682 | 0% 0% 0% 100% |
| mandelbrot | |||||
| OCaml | 230.92 | 60.54 | 57,616 | 929 | 94% 100% 97% 94% |
| C++ GNU g++ | 24.67 | 6.17 | 30,436 | 858 | 100% 100% 100% 100% |
| chameneos-redux | |||||
| OCaml | 341.52 | 232.50 | 1,552 | 1286 | 38% 29% 39% 28% |
| C++ GNU g++ | 11.33 | 2.88 | 1,168 | 1994 | 99% 99% 100% 97% |
The Objective Caml native-code compiler, version 3.11.0
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html