/mobile Handheld Friendly website

÷

 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.


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.

 F# Mono used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta±1/12±
 mandelbrot±±
 n-body±28×±
 spectral-norm±
 binary-trees±±
 fannkuch-redux±
 regex-dna1/2
 pidigits
 k-nucleotide1/3
 F# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±

± 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
 fasta 
F# Mono8.418.4116,112978  0% 0% 0% 100%
OCaml10.5010.52198,0601161  0% 0% 0% 100%
 mandelbrot 
F# Mono48.9612.4049,728800  100% 98% 99% 98%
OCaml55.5713.986,316710  99% 100% 100% 100%
 n-body 
F# Mono35.5034.3019,9921259  64% 1% 5% 34%
OCaml23.8223.837161239  0% 0% 0% 100%
 spectral-norm 
F# Mono22.247.3018,320852  76% 76% 73% 79%
OCaml16.584.393,504938  99% 98% 99% 99%
 binary-trees 
F# Mono78.0048.09245,164565  75% 21% 27% 40%
OCaml67.3327.17201,692784  40% 84% 55% 71%
 fannkuch-redux 
F# Mono125.3032.8218,464945  95% 98% 91% 98%
OCaml0.0016.3611,5521004  100% 100% 100% 100%
 regex-dna 
F# Mono67.2221.571,394,136639  92% 75% 69% 77%
OCaml1.459.20264,7041050  84% 85% 86% 99%
 pidigits 
F# Mono11.0511.0616,392903  0% 0% 0% 100%
OCaml2.802.819,036560  0% 3% 1% 100%
 k-nucleotide 
F# Mono375.07124.91975,260701  78% 77% 77% 69%
OCaml56.8221.99258,4801789  55% 39% 100% 65%
 fasta-redux 
F# Mono0.360.385841074  0% 0% 100% 5%
No program
 reverse-complement 
No program
OCaml0.000.07?1314  14% 38% 38% 13%

 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) 

Microsoft (R) F# 3.0 Compiler version (Mono build)

Mono JIT compiler version 3.0.3 (tarball Tue Feb 12 21:22:20 PST 2013)
LLVM: yes(3.2svn-mono)

Home Page: About F#

Download: F# Download

Revised BSD license

  Home   Conclusions   License   Play