/mobile Handheld Friendly website

÷

 1 : Are the C# Mono programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest C# Mono program used compared to the fastest C++ g++ 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 C# Mono programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest C# Mono program used compared to the fastest C++ g++ program.

 C# Mono used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta-redux±26×±
 pidigits12×
 fasta25×±
 n-body26×±
 mandelbrot±
 fannkuch-redux16×±
 reverse-complement †±1/2
 binary-trees †±±
 spectral-norm18×±
 k-nucleotide±
 regex-dna±
 C# 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 C# 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 C# Mono program are shown for comparison against measurements of the fastest C++ g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta-redux 
C# Mono2.802.8016,0121438  0% 1% 99% 1%
C++ g++2.172.176201474  0% 0% 100% 1%
 pidigits 
C# Mono4.544.5516,8001026  0% 0% 0% 100%
C++ g++2.682.681,452682  1% 0% 1% 99%
 fasta 
C# Mono8.468.4615,7881180  0% 0% 0% 100%
C++ g++4.104.116201105  55% 0% 0% 46%
 n-body 
C# Mono23.7723.7916,2201305  100% 0% 0% 0%
C++ g++10.4110.426201763  1% 1% 0% 100%
 mandelbrot 
C# Mono45.9412.1549,644701  93% 93% 93% 100%
C++ g++19.645.1032,076726  95% 95% 95% 100%
 fannkuch-redux 
C# Mono134.2534.5416,2521096  97% 99% 96% 98%
C++ g++49.7112.699961440  98% 100% 94% 100%
 reverse-complement 
C# Mono2.522.52170,8641099  0% 1% 15% 87% †
C++ g++1.220.84245,4282275  19% 31% 12% 88% †
 binary-trees 
C# Mono22.6822.68137,004654  100% 0% 0% 0% †
C++ g++19.066.60173,960892  60% 92% 75% 65% †
 spectral-norm 
C# Mono30.308.3016,3921063  94% 93% 89% 90%
C++ g++7.962.009241044  100% 100% 100% 100%
 k-nucleotide 
C# Mono99.6931.43317,8121404  70% 96% 83% 69%
C++ g++23.397.40138,1001252  73% 74% 74% 97%
 regex-dna 
C# Mono84.2733.46330,940638  55% 57% 55% 86%
C++ g++6.084.54173,240695  1% 77% 1% 57%

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other C# Mono programs for these benchmarks?

Remember - those are just the fastest C# Mono and C++ g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for C# Mono.

Maybe one of those other C# Mono programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest C# Mono and C++ g++ 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.

 C# Mono : oo plus functional style (mono is not ms .net) 

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

C# Language Specification ECMA-334

Common Language Infrastructure (CLI) ECMA-335

Home Page: http://www.mono-project.com/

Download: http://www.mono-project.com/Downloads

Revised BSD license

  Home   Conclusions   License   Play