PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
Compare the performance of OCaml programs against some other language implementation.
For more information about the OCaml implementation we measured see ↓ about OCaml.
| 1/2 1/3 1/4 OCaml is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| chameneos-redux | ||||
| fasta | ||||
| nsieve | ± | 2 | ± | |
| pidigits | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| spectral-norm | ± | 6 | ± | |
| fannkuch | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| sum-file | ± | ± | 1/2 | |
| regex-dna | ± | 4 | 1/3 | |
| nsieve-bits | 2 | 2 | ± | |
| reverse-complement | 2 | 3 | 1/2 | |
| k-nucleotide | 2 | 3 | 1/2 | |
| mandelbrot | 3 | ± | ± | |
| recursive | 3 | ± | ± | |
| n-body | 3 | 1/2 | ± | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| nsieve | |||||
| OCaml #2 | 3.71 | 18,156 | 295 | ||
| C++ GNU g++ #3 | 3.76 | 10,788 | 313 | ||
| pidigits | |||||
| OCaml | 2.94 | 3,144 | 560 | ||
| C++ GNU g++ #2 | 2.85 | 3,124 | 652 | ||
| binary-trees | |||||
| OCaml | 6.15 | 8,484 | 469 | ||
| C++ GNU g++ #2 | 5.91 | 7,000 | 541 | ||
| spectral-norm | |||||
| OCaml | 18.67 | 18,528 | 369 | ||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| fannkuch | |||||
| OCaml | 9.39 | 3,128 | 485 | ||
| C++ GNU g++ #2 | 8.28 | 3,096 | 554 | ||
| partial-sums | |||||
| OCaml #2 | 2.09 | 3,136 | 508 | ||
| C++ GNU g++ #3 | 1.84 | 3,096 | 531 | ||
| sum-file | |||||
| OCaml | 7.18 | 14,908 | 138 | ||
| C++ GNU g++ #2 | 6.29 | 14,864 | 260 | ||
| regex-dna | |||||
| OCaml #2 | 7.56 | 47,768 | 615 | ||
| C++ GNU g++ #3 | 6.45 | 13,408 | 1588 | ||
| nsieve-bits | |||||
| OCaml | 4.36 | 5,048 | 413 | ||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| reverse-complement | |||||
| OCaml | 1.05 | 45,716 | 540 | ||
| C++ GNU g++ #3 | 0.63 | 13,288 | 810 | ||
| k-nucleotide | |||||
| OCaml #2 | 13.10 | 32,048 | 845 | ||
| C++ GNU g++ #3 | 7.63 | 9,312 | 1380 | ||
| mandelbrot | |||||
| OCaml #3 | 7.72 | 3,368 | 444 | ||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| recursive | |||||
| OCaml #2 | 7.04 | 1,112 | 389 | ||
| C++ GNU g++ #2 | 2.59 | 1,008 | 566 | ||
| n-body | |||||
| OCaml | 35.65 | 620 | 1239 | ||
| C++ GNU g++ #2 | 12.78 | 936 | 1705 | ||
The Objective Caml native-code compiler, version 3.10.0
Home Page: http://www.ocaml.org/
Download: http://caml.inria.fr/download.en.html