/mobile Handheld Friendly website

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
 fannkuch-redux †± ±
 fasta-redux± ±
 mandelbrot± ±
 pidigits± 
 fasta ±
 n-body ±
 reverse-complement †±1/2
 spectral-norm ±
 k-nucleotide±
 binary-trees †±±
 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
 fannkuch-redux 
C# Mono113.9928.9515,2281096  98% 99% 99% 98% †
C++ g++27.2827.302961150  1% 1% 1% 100% †
 fasta-redux 
C# Mono2.292.3015,4521438  99% 0% 0% 1%
C++ g++2.162.166321474  2% 0% 100% 1%
 mandelbrot 
C# Mono31.207.9549,152986  98% 99% 98% 98%
C++ g++23.475.9032,0881017  99% 99% 99% 100%
 pidigits 
C# Mono3.943.9515,3601026  99% 1% 2% 1%
C++ g++2.682.681,464682  1% 0% 2% 100%
 fasta 
C# Mono7.927.9215,3601180  0% 1% 100% 0%
C++ g++4.224.238841286  1% 0% 0% 100%
 n-body 
C# Mono23.1023.1214,9161305  0% 100% 1% 0%
C++ g++9.089.083441545  1% 0% 0% 100%
 reverse-complement 
C# Mono2.822.82171,2721099  1% 74% 2% 26% †
C++ g++1.220.84245,4562275  29% 33% 49% 35% †
 spectral-norm 
C# Mono29.507.4914,6361063  99% 99% 99% 99%
C++ g++7.962.009361044  100% 100% 100% 100%
 k-nucleotide 
C# Mono107.3434.65543,9201696  100% 71% 72% 68%
C++ g++23.317.26137,2161252  74% 97% 76% 75%
 binary-trees 
C# Mono21.8521.85119,736654  66% 1% 1% 34% †
C++ g++12.244.0988,368919  70% 69% 95% 62% †
 regex-dna 
C# Mono78.5031.81376,872638  67% 53% 51% 77%
C++ g++5.974.42179,480695  1% 77% 58% 1%

† 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.2.3 (tarball Wed Oct 30 12:15:41 PDT 2013)
LLVM: yes(3.3svn-mono-mono/8bdedb5)
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