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

± 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.1135.1256,712869  0% 1% 1% 100%
OCaml85.9385.961,648444  0% 0% 0% 100%
 n-body 
F# Mono25.5425.5527,4241259  0% 1% 1% 100%
OCaml49.9149.935961239  0% 0% 0% 100%
 binary-trees 
F# Mono23.9223.95171,856537  1% 1% 0% 100%
OCaml35.0035.07101,028784  0% 0% 0% 100%
 fasta 
F# Mono10.5710.5820,348978  1% 1% 0% 100%
OCaml12.1612.171,6561042  0% 0% 0% 100%
 fannkuch-redux 
F# Mono70.7870.7919,108612  1% 0% 1% 100%
OCaml71.1071.12596473  0% 0% 0% 100%
 pidigits 
F# Mono3.963.9619,872903  0% 3% 1% 100%
OCaml3.803.815,700560  1% 0% 1% 100%
 k-nucleotide 
F# Mono6.886.8958,2241505  0% 1% 1% 100%
OCaml5.865.88228,1041789  0% 0% 1% 100%
 spectral-norm 
F# Mono31.3732.1521,880852  0% 1% 1% 98%
OCaml18.8518.861,660377  0% 0% 0% 100%
 regex-dna 
F# Mono8.438.48129,916639  0% 0% 2% 100%
OCaml1.641.66283,0721014  1% 0% 1% 100%
 fasta-redux 
F# Mono0.480.4920,5801074  2% 2% 4% 98%
No program
 reverse-complement 
No program
OCaml0.030.06?2064  0% 0% 0% 100%

 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