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

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

Each table row shows, for one named benchmark, how much the fastest C# Mono program used compared to the fastest Java 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
 n-body± ±
 pidigits± ±
 mandelbrot± ±
 reverse-complement †±1/21/2
 fasta-redux± ±
 fannkuch-redux ±
 spectral-norm ±
 fasta 1/2
 k-nucleotide1/2±
 regex-dna1/21/2
 binary-trees †1/4±
 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 : Measurements - Are the C# Mono programs faster?

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 Java program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
C# Mono23.3523.3638,6841410  0% 100% 1% 0%
Java24.3424.3124,1561424  1% 1% 1% 100%
 pidigits 
C# Mono4.064.0639,3521026  1% 0% 0% 100%
Java4.174.0726,324938  3% 3% 4% 96%
 mandelbrot 
C# Mono30.737.9374,496986  96% 99% 96% 96%
Java27.797.1287,832796  97% 99% 97% 97%
 reverse-complement 
C# Mono1.701.70195,3041099  1% 4% 1% 99% †
Java2.911.44308,0601661  47% 31% 85% 43% †
 fasta-redux 
C# Mono2.342.3438,7921438  0% 2% 99% 0%
Java1.991.9324,5881443  98% 2% 4% 3%
 fannkuch-redux 
C# Mono119.0830.4038,1281096  97% 99% 97% 99%
Java67.5617.1325,8041282  100% 98% 99% 98%
 spectral-norm 
C# Mono31.208.0738,2961063  97% 97% 96% 97%
Java16.534.3026,476950  99% 96% 95% 96%
 fasta 
C# Mono10.734.1783,2641505  59% 77% 63% 61%
Java5.901.8231,6002457  80% 83% 80% 82%
 k-nucleotide 
C# Mono71.7724.56505,2081822  68% 65% 65% 95%
Java35.2710.611,199,1841844  79% 78% 90% 88%
 regex-dna 
C# Mono85.2630.15436,508594  61% 60% 64% 99%
Java25.798.80729,244929  77% 80% 72% 66%
 binary-trees 
C# Mono21.3320.29116,456654  20% 6% 39% 41% †
Java19.645.88513,180926  95% 79% 87% 76% †

† 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 Java 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 Java 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 4.3.0 (master/42456cd Mon Aug 10 20:27:36 PDT 2015)
LLVM: yes(3.6.0svn-mono-master/a92ada2)
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