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
 mandelbrot± ±
 binary-trees±±±
 fannkuch-redux † 1/2
 F# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±

† 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
 mandelbrot 
F# Mono36.369.5287,244869  97% 95% 95% 95%
OCaml54.8913.785,492710  100% 100% 100% 100%
 binary-trees 
F# Mono26.0824.52163,352537  69% 28% 73% 39%
OCaml70.9124.46202,980784  72% 75% 58% 86%
 fannkuch-redux 
F# Mono63.6063.6240,344612  100% 0% 0% 1% †
OCaml0.0116.2522,3081017  100% 100% 100% 100% †
 n-body 
F# MonoFailed
OCaml0.230.234521239  4% 13% 0% 88%
 fasta 
F# MonoFailed
OCaml0.070.07?1161  13% 0% 86% 0%
 regex-dna 
F# MonoFailed
OCaml0.050.07?1050  75% 75% 88% 86%
 fasta-redux 
F# MonoFailed
No program
 k-nucleotide 
F# MonoFailed
OCaml0.710.2839,4601789  82% 90% 50% 39%
 pidigits 
F# MonoFailed
OCaml0.110.11?560  0% 0% 0% 100%
 spectral-norm 
F# MonoFailed
OCaml0.360.13?938  58% 58% 80% 73%
 reverse-complement 
No program
OCaml0.000.02?1314  0% 50% 33% 0%

† 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 22:58:47 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