vs

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

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 : Are the F# Mono programs faster? Approximately.

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
 mandelbrot1/2 ±
 fasta± ±
 binary-trees †±1/2±
 k-nucleotide±±
 n-body± ±
 fannkuch-redux± ±
 spectral-norm ±
 regex-dna1/2
 pidigits 
 F# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±±

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

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

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

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# Mono34.118.8564,884869  96% 96% 96% 98%
OCaml55.8814.046,548710  100% 100% 100% 100%
 fasta 
F# Mono8.248.2421,504978  0% 0% 1% 100%
OCaml10.5110.52198,0801161  0% 0% 1% 100%
 binary-trees 
F# Mono25.4025.38134,468537  1% 25% 1% 75% †
OCaml71.0025.55201,744784  80% 41% 90% 69% †
 k-nucleotide 
F# Mono58.9122.561,023,4401505  70% 58% 61% 73%
OCaml55.5020.29253,6241789  39% 57% 79% 100%
 n-body 
F# Mono25.0925.0933,0121259  1% 100% 1% 2%
OCaml21.8621.877161239  100% 0% 0% 0%
 fannkuch-redux 
F# Mono84.1522.3832,076945  92% 96% 93% 96%
OCaml0.0016.3011,2801004  100% 100% 100% 100%
 spectral-norm 
F# Mono22.317.3730,580852  73% 76% 75% 80%
OCaml16.824.783,512938  93% 91% 92% 90%
 regex-dna 
F# Mono67.9021.24938,844639  76% 80% 81% 83%
OCaml1.468.96264,7441050  84% 95% 85% 85%
 pidigits 
F# Mono11.0111.0120,732903  1% 0% 100% 0%
OCaml2.812.819,036560  0% 0% 100% 0%
 fasta-redux 
F# Mono0.490.4924,3121074  0% 4% 96% 2%
No program
 reverse-complement 
No program
OCaml0.000.02?1314  0% 0% 50% 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 3.10.1 (master/0083728 Thu Sep 11 09:57:48 PDT 2014)
LLVM: yes(3.4svn-mono-mono/e656cac)
GC: sgen

Home Page: About F#

Download: F# Download

Revised BSD license

  Home   Conclusions   License   Play