/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-core |
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.
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 | |
| mandelbrot | 1/2 | 13× | ± | |
| n-body | 1/2 | 40× | ± | |
| fasta | ± | 10× | ± | |
| pidigits | ± | 3× | 2× | |
| fannkuch-redux | 2× | ± | ± | |
| spectral-norm | 2× | 6× | ± | |
| binary-trees † | 2× | 2× | ± | |
| k-nucleotide | 4× | 1/2 | 1/3 | |
| regex-dna | 9× | 1/3 | 1/2 | |
| F# Mono used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | ± | 2× | 2× | 4× | 9× |
† possible mismatch - one-core program compared to multi-core program.
± read the measurements and then read the program source code.
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# Mono | 48.21 | 12.71 | 50,340 | 800 | 93% 100% 93% 93% |
| OCaml | 85.76 | 21.55 | 3,988 | 710 | 100% 100% 100% 100% |
| n-body | |||||
| F# Mono | 31.38 | 31.39 | 23,116 | 1259 | 100% 0% 0% 0% |
| OCaml | 47.67 | 47.68 | 580 | 1239 | 1% 0% 0% 100% |
| fasta | |||||
| F# Mono | 11.34 | 11.35 | 16,572 | 978 | 100% 0% 1% 1% |
| OCaml | 11.75 | 11.76 | 1,636 | 1042 | 0% 0% 0% 100% |
| pidigits | |||||
| F# Mono | 4.54 | 4.54 | 17,060 | 903 | 0% 100% 1% 1% |
| OCaml | 3.80 | 3.81 | 5,704 | 560 | 76% 0% 1% 24% |
| fannkuch-redux | |||||
| F# Mono | 157.46 | 41.69 | 20,488 | 945 | 96% 96% 94% 93% |
| OCaml | 0.01 | 26.07 | 18,544 | 1017 | 100% 100% 100% 100% |
| spectral-norm | |||||
| F# Mono | 30.71 | 10.09 | 18,720 | 852 | 75% 88% 71% 72% |
| OCaml | 17.99 | 4.79 | 3,092 | 938 | 99% 99% 99% 99% |
| binary-trees | |||||
| F# Mono | 38.22 | 38.23 | 179,420 | 565 | 0% 0% 17% 83% † |
| OCaml | 41.33 | 16.37 | 101,016 | 784 | 95% 69% 55% 35% † |
| k-nucleotide | |||||
| F# Mono | 28.69 | 11.00 | 94,292 | 701 | 64% 66% 64% 67% |
| OCaml | 6.32 | 2.86 | 227,692 | 1789 | 32% 29% 66% 100% |
| regex-dna | |||||
| F# Mono | 9.34 | 5.19 | 139,492 | 639 | 59% 67% 41% 15% |
| OCaml | 0.14 | 0.57 | 445,032 | 1050 | 75% 76% 95% 77% |
| fasta-redux | |||||
| F# Mono | 0.97 | 0.98 | 16,588 | 1074 | 4% 98% 1% 2% |
| reverse-complement | |||||
| OCaml | 0.00 | 0.02 | ? | 1314 | 25% 50% 0% 33% |
† possible mismatch - one-core program compared to multi-core program.
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.
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.
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