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

† 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# Mono35.919.3556,528869  96% 97% 96% 96%
OCaml150.0337.713,736710  100% 100% 100% 99%
 n-body 
F# Mono25.5425.5527,4321259  1% 100% 0% 1%
OCaml49.9249.935961239  0% 0% 0% 100%
 fasta 
F# Mono10.2810.2920,348978  1% 100% 0% 1%
OCaml12.1612.171,6561042  1% 0% 1% 100%
 pidigits 
F# Mono3.973.9819,876903  2% 0% 100% 0%
OCaml3.803.815,700560  0% 0% 1% 100%
 fannkuch-redux 
F# Mono125.4432.8623,416945  93% 97% 95% 97%
OCaml0.0026.4218,6961017  100% 100% 100% 100%
 k-nucleotide 
F# Mono6.963.4094,4041505  46% 83% 36% 42%
OCaml6.002.40228,0721789  36% 37% 88% 93%
 binary-trees 
F# Mono23.9123.91171,712537  1% 6% 95% 0% †
OCaml40.1416.27101,028784  36% 95% 49% 69% †
 spectral-norm 
F# Mono31.469.6721,880852  78% 82% 81% 85%
OCaml18.245.273,232938  87% 97% 95% 85%
 regex-dna 
F# Mono9.094.63196,888870  60% 32% 46% 60%
OCaml0.140.56445,1881050  75% 75% 78% 98%
 fasta-redux 
F# Mono0.490.5020,5881074  0% 2% 6% 98%
No program
 reverse-complement 
No program
OCaml0.000.03?1314  0% 67% 33% 33%

† 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.0 (Open Source Edition)

Mono JIT compiler version 3.4.1 (master/1b936ba Mon Apr 28 16:16:26 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