/mobile Handheld Friendly website
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 | ± | 1/2 | 1/3 | |
| reverse-complement | 2× | 1/2 | ± | |
| spectral-norm | 2× | 2× | 1/3 | |
| fasta | 2× | 6× | ± | |
| regex-dna | 2× | 4× | ± | |
| binary-trees | 3× | ± | ± | |
| n-body | 3× | 2× | ± | |
| mandelbrot | 4× | 1/9 | ± | |
| k-nucleotide | 5× | 11× | 1/2 | |
| pidigits | 6× | 3× | ± | |
| OCaml used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 2× | 3× | 4× | 6× | 6× |
± 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 | 74.34 | 74.36 | 552 | 473 | 0% 0% 0% 100% |
| C++ GNU g++ | 61.42 | 61.44 | 1,020 | 1439 | 0% 0% 0% 100% |
| reverse-complement | |||||
| OCaml | 1.68 | 1.68 | 127,260 | 2064 | 2% 0% 0% 100% |
| C++ GNU g++ | 1.07 | 1.09 | 245,424 | 2275 | 0% 0% 1% 100% |
| spectral-norm | |||||
| OCaml | 18.85 | 18.86 | 1,596 | 377 | 0% 0% 0% 100% |
| C++ GNU g++ | 10.00 | 10.00 | 648 | 1044 | 0% 1% 0% 100% |
| fasta | |||||
| OCaml | 12.44 | 12.45 | 1,604 | 1042 | 0% 0% 0% 100% |
| C++ GNU g++ | 6.30 | 6.30 | 288 | 1266 | 0% 0% 0% 100% |
| regex-dna | |||||
| OCaml | 1.65 | 1.65 | 52,740 | 615 | 1% 1% 1% 100% |
| C++ GNU g++ | 0.59 | 0.68 | 12,908 | 695 | 1% 1% 3% 100% |
| binary-trees | |||||
| OCaml | 35.06 | 35.13 | 100,968 | 784 | 0% 0% 0% 100% |
| C++ GNU g++ | 13.03 | 13.05 | 148,440 | 892 | 0% 1% 0% 100% |
| n-body | |||||
| OCaml | 59.91 | 59.93 | 548 | 1239 | 0% 0% 0% 100% |
| C++ GNU g++ | 20.15 | 20.16 | 320 | 1659 | 0% 0% 0% 100% |
| mandelbrot | |||||
| OCaml | 85.67 | 85.83 | 3,712 | 710 | 0% 0% 0% 100% |
| C++ GNU g++ | 23.72 | 23.73 | 32,096 | 1017 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| OCaml | 5.98 | 6.00 | 227,260 | 1789 | 0% 1% 1% 100% |
| C++ GNU g++ | 1.28 | 1.29 | 20,460 | 3415 | 0% 4% 1% 100% |
| pidigits | |||||
| OCaml | 17.01 | 17.02 | 4,432 | 869 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.75 | 2.76 | 1,448 | 682 | 0% 1% 1% 100% |
| fasta-redux | |||||
| C++ GNU g++ | 0.03 | 0.04 | ? | 1474 | 20% 0% 0% 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