vs

 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.

(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 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.

(Memory use is only compared for tasks that require memory to be allocated.)

 C# Mono used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta-redux± ±
 mandelbrot± ±
 pidigits 
 fasta ±
 fannkuch-redux ±
 n-body ±
 reverse-complement †±1/2
 k-nucleotide±
 binary-trees †±±
 spectral-norm ±
 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.662.6620,0961438  1% 99% 1% 2%
C++ g++2.162.176201474  1% 100% 0% 0%
 mandelbrot 
C# Mono31.228.4352,928986  91% 98% 91% 91%
C++ g++23.465.8932,1801017  100% 100% 100% 100%
 pidigits 
C# Mono4.444.4520,8681026  99% 0% 1% 2%
C++ g++2.682.681,452682  0% 0% 1% 100%
 fasta 
C# Mono7.507.5119,8521180  0% 1% 100% 0%
C++ g++4.214.228721286  0% 100% 0% 1%
 fannkuch-redux 
C# Mono113.2929.2421,1761096  97% 95% 97% 98%
C++ g++50.0312.881,0361440  99% 99% 100% 99%
 n-body 
C# Mono22.5722.5820,7481305  100% 0% 0% 1%
C++ g++9.089.093361544  0% 100% 1% 0%
 reverse-complement 
C# Mono2.552.56175,8881099  1% 79% 1% 21% †
C++ g++1.150.75247,0082275  11% 87% 30% 29% †
 k-nucleotide 
C# Mono88.1228.50323,9201404  83% 63% 84% 80%
C++ g++23.447.22139,1361252  76% 76% 78% 97%
 binary-trees 
C# Mono20.7420.74134,020654  0% 39% 1% 61% †
C++ g++15.895.05179,668892  73% 70% 97% 77% †
 spectral-norm 
C# Mono32.388.8221,5521063  98% 89% 90% 90%
C++ g++7.972.009241044  100% 100% 100% 100%
 regex-dna 
C# Mono86.7134.54344,632638  58% 70% 58% 66%
C++ g++5.383.83171,652695  1% 65% 76% 2%

† 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.8.1 (master/0322d96 Wed Aug 13 11:49:57 PDT 2014)
LLVM: yes(3.4svn-mono-mono/e656cac)
GC: sgen

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