Compare the performance of OCaml programs against some other language implementation.

For more information about the OCaml implementation we measured see ↓ about OCaml.

Compare to:

 OCaml comparison summary


1/2 1/3 1/4 … OCaml is better
Programs Time Memory Use Source Size Reduced N
chameneos-reduxNo program
fastaNo program
nsieve±2±
pidigits±±±
binary-trees±±±
spectral-norm±6±
fannkuch±±±
partial-sums±±±
sum-file±±1/2
regex-dna±41/3
nsieve-bits22±
reverse-complement231/2
k-nucleotide231/2
mandelbrot3±±
recursive3±±
n-body31/2±

± look at the measurements

 OCaml comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 nsieve 
OCaml #23.7118,156295  
C++ GNU g++ #33.7610,788313  
 pidigits 
OCaml2.943,144560  
C++ GNU g++ #22.853,124652  
 binary-trees 
OCaml6.158,484469  
C++ GNU g++ #25.917,000541  
 spectral-norm 
OCaml18.6718,528369  
C++ GNU g++17.493,092442  
 fannkuch 
OCaml9.393,128485  
C++ GNU g++ #28.283,096554  
 partial-sums 
OCaml #22.093,136508  
C++ GNU g++ #31.843,096531  
 sum-file 
OCaml7.1814,908138  
C++ GNU g++ #26.2914,864260  
 regex-dna 
OCaml #27.5647,768615  
C++ GNU g++ #36.4513,4081588  
 nsieve-bits 
OCaml4.365,048413  
C++ GNU g++2.803,328494  
 reverse-complement 
OCaml1.0545,716540  
C++ GNU g++ #30.6313,288810  
 k-nucleotide 
OCaml #213.1032,048845  
C++ GNU g++ #37.639,3121380  
 mandelbrot 
OCaml #37.723,368444  
C++ GNU g++3.003,312584  
 recursive 
OCaml #27.041,112389  
C++ GNU g++ #22.591,008566  
 n-body 
OCaml35.656201239  
C++ GNU g++ #212.789361705  

 about OCaml

The Objective Caml native-code compiler, version 3.10.0

Home Page: http://www.ocaml.org/

Download: http://caml.inria.fr/download.en.html

Revised BSD license