/mobile Handheld Friendly website

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
 mandelbrot± ±
 fasta± ±
 binary-trees †±±±
 n-body± ±
 k-nucleotide±±
 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)±±±±

† 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# Mono36.819.4456,552869  97% 97% 98% 98%
OCaml55.8814.046,548710  100% 100% 100% 100%
 fasta 
F# Mono8.258.2617,348978  1% 0% 100% 1%
OCaml10.5110.52198,0801161  0% 0% 1% 100%
 binary-trees 
F# Mono25.9225.91184,916537  100% 1% 1% 0% †
OCaml71.0025.55201,744784  80% 41% 90% 69% †
 n-body 
F# Mono25.9125.9125,0241259  1% 98% 0% 2%
OCaml21.8621.877161239  100% 0% 0% 0%
 k-nucleotide 
F# Mono74.5627.44663,1761505  99% 49% 66% 59%
OCaml55.5020.29253,6241789  39% 57% 79% 100%
 fannkuch-redux 
F# Mono84.4222.2921,700945  97% 93% 98% 91%
OCaml0.0016.3011,2801004  100% 100% 100% 100%
 spectral-norm 
F# Mono22.207.2819,700852  77% 74% 74% 82%
OCaml16.824.783,512938  93% 91% 92% 90%
 regex-dna 
F# Mono73.2621.64917,272639  82% 89% 86% 82%
OCaml1.468.96264,7441050  84% 95% 85% 85%
 pidigits 
F# Mono11.0111.0217,488903  100% 0% 1% 1%
OCaml2.812.819,036560  0% 0% 100% 0%
 fasta-redux 
F# Mono0.330.336081074  3% 0% 6% 100%
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.0 (Open Source Edition)

Mono Runtime Engine version 3.2.5 (master/4c1198f Tue Oct 29 09:53:35 PDT 2013)
LLVM: yes(3.3svn-mono-mono/8bdedb5)
GC: sgen

Home Page: About F#

Download: F# Download

Revised BSD license

  Home   Conclusions   License   Play