1 : At a glance - Are the F# Mono programs faster?

Each chart bar shows, for one unidentified benchmark, how much the fastest F# Mono program used compared to the fastest OCaml program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Approximately - Are the F# Mono programs faster?

Each table row shows, for one named benchmark, how much the fastest F# Mono program used compared to the fastest OCaml program.

(Memory use is only compared for tasks that require memory to be allocated.)

 F# Mono used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body1/3 ±
 mandelbrot1/2 ±
 fasta± ±
 fannkuch-redux± ±
 spectral-norm± ±
 k-nucleotide1/2±
 binary-trees †±±
 regex-dna11×1/41/2
 pidigits18× ±
 F# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/3±±18×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Measurements - Are the F# Mono programs faster?

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest F# Mono program are shown for comparison against measurements of the fastest OCaml program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
F# Mono25.9926.0046,8601259  1% 0% 100% 1%
OCaml75.2375.256001239  1% 0% 0% 100%
 mandelbrot 
F# Mono36.359.6080,748869  94% 94% 97% 94%
OCaml84.9321.321,740710  100% 100% 100% 100%
 fasta 
F# Mono10.4310.4340,548978  1% 100% 1% 0%
OCaml12.0512.066001042  1% 1% 100% 0%
 fannkuch-redux 
F# Mono120.9632.4546,616945  94% 97% 87% 95%
OCaml0.0127.0818,9601017  100% 100% 100% 100%
 spectral-norm 
F# Mono18.276.5443,412720  66% 69% 73% 72%
OCaml18.145.103,192938  93% 93% 95% 93%
 k-nucleotide 
F# Mono7.953.68153,0281505  43% 39% 85% 52%
OCaml5.602.35252,8441789  62% 40% 93% 47%
 binary-trees 
F# Mono26.4125.13126,808537  19% 83% 1% 4% †
OCaml38.4114.41102,344784  77% 33% 100% 60% †
 regex-dna 
F# Mono11.976.91126,872639  44% 29% 76% 26%
OCaml0.150.60509,5881050  77% 77% 80% 93%
 pidigits 
F# Mono71.2171.0170,488513  26% 1% 0% 74%
OCaml3.843.847,024560  0% 1% 100% 1%
 fasta-redux 
F# Mono0.820.8244,0361074  4% 96% 2% 1%
No program
 reverse-complement 
No program
OCaml0.000.03?1314  0% 50% 67% 50%

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other F# Mono programs for these benchmarks?

Remember - those are just the fastest F# Mono and OCaml programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for F# Mono.

Maybe one of those other F# Mono programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest F# Mono and OCaml 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.

 F# Mono : higher-order type-safe programming (mono is not ms .net) 

F# Compiler for F# 3.1 (Open Source Edition)

Mono JIT compiler version 4.1.0 (master/435cc01 Wed May 20 21:03:41 PDT 2015)
LLVM: yes(3.6.0svn-mono-master/ce4fcec)
GC: sgen

Home Page: About F#

Download: F# Download

Revised BSD license

  Home   Conclusions   License   Play