/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
 mandelbrot1/213×±
 n-body1/240×±
 fasta±10×±
 pidigits±
 fannkuch-redux±±
 spectral-norm±
 binary-trees †±
 k-nucleotide1/21/3
 regex-dna1/31/2
 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# Mono48.2112.7150,340800  93% 100% 93% 93%
OCaml85.7621.553,988710  100% 100% 100% 100%
 n-body 
F# Mono31.3831.3923,1161259  100% 0% 0% 0%
OCaml47.6747.685801239  1% 0% 0% 100%
 fasta 
F# Mono11.3411.3516,572978  100% 0% 1% 1%
OCaml11.7511.761,6361042  0% 0% 0% 100%
 pidigits 
F# Mono4.544.5417,060903  0% 100% 1% 1%
OCaml3.803.815,704560  76% 0% 1% 24%
 fannkuch-redux 
F# Mono157.4641.6920,488945  96% 96% 94% 93%
OCaml0.0126.0718,5441017  100% 100% 100% 100%
 spectral-norm 
F# Mono30.7110.0918,720852  75% 88% 71% 72%
OCaml17.994.793,092938  99% 99% 99% 99%
 binary-trees 
F# Mono38.2238.23179,420565  0% 0% 17% 83% †
OCaml41.3316.37101,016784  95% 69% 55% 35% †
 k-nucleotide 
F# Mono28.6911.0094,292701  64% 66% 64% 67%
OCaml6.322.86227,6921789  32% 29% 66% 100%
 regex-dna 
F# Mono9.345.19139,492639  59% 67% 41% 15%
OCaml0.140.57445,0321050  75% 76% 95% 77%
 fasta-redux 
F# Mono0.970.9816,5881074  4% 98% 1% 2%
No program
 reverse-complement 
No program
OCaml0.000.02?1314  25% 50% 0% 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) 

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

Mono JIT compiler version 3.0.3 (tarball Tue Feb 12 10:56:44 PST 2013)
LLVM: yes(3.2svn-mono)

Home Page: About F#

Download: F# Download

Revised BSD license

  Home   Conclusions   License   Play