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 ±
 spectral-norm ±
 binary-trees †±±
 reverse-complement †±1/2
 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.302.3019,5441438  100% 0% 1% 3%
C++ g++2.162.176201474  1% 100% 0% 0%
 mandelbrot 
C# Mono30.637.8551,880986  97% 98% 98% 97%
C++ g++23.465.8932,1801017  100% 100% 100% 100%
 pidigits 
C# Mono3.983.9819,6281026  0% 1% 100% 1%
C++ g++2.682.681,452682  0% 0% 1% 100%
 fasta 
C# Mono7.287.2919,3641180  100% 1% 1% 1%
C++ g++4.214.228721286  0% 100% 0% 1%
 fannkuch-redux 
C# Mono112.7528.6919,5321096  99% 98% 99% 98%
C++ g++50.0312.881,0361440  99% 99% 100% 99%
 n-body 
C# Mono22.0422.0519,3761305  1% 100% 0% 1%
C++ g++9.089.093361544  0% 100% 1% 0%
 spectral-norm 
C# Mono31.618.0819,1921063  98% 98% 98% 99%
C++ g++7.972.009241044  100% 100% 100% 100%
 binary-trees 
C# Mono20.4220.42135,020654  68% 1% 31% 2% †
C++ g++15.895.05179,668892  73% 70% 97% 77% †
 reverse-complement 
C# Mono3.023.03175,5081099  1% 0% 8% 93% †
C++ g++1.150.75247,0082275  11% 87% 30% 29% †
 k-nucleotide 
C# Mono105.1234.29547,7961696  71% 98% 69% 70%
C++ g++23.447.22139,1361252  76% 76% 78% 97%
 regex-dna 
C# Mono92.1434.20342,480638  61% 85% 65% 59%
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.4.1 (master/1b936ba Mon Apr 28 16:16:26 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