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
 mandelbrot± ±
 reverse-complement †±1/21/2
 fasta-redux± ±
 fannkuch-redux ±
 spectral-norm ±
 k-nucleotide1/2±
 fasta 1/2
 regex-dna1/2±
 binary-trees †1/4±
 pidigits15× ±
 C# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±15×

† 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
 mandelbrot 
C# Mono30.667.8874,868986  97% 97% 99% 97%
Java27.797.1287,832796  97% 99% 97% 97%
 reverse-complement 
C# Mono1.681.68195,5961099  2% 1% 1% 98% †
Java2.911.44308,0601661  47% 31% 85% 43% †
 fasta-redux 
C# Mono2.332.3338,1921438  1% 2% 98% 2%
Java1.991.9324,5881443  98% 2% 4% 3%
 fannkuch-redux 
C# Mono112.6428.7739,3641096  99% 99% 98% 96%
Java67.5617.1325,8041282  100% 98% 99% 98%
 spectral-norm 
C# Mono31.688.1738,4121063  97% 97% 98% 97%
Java16.534.3026,476950  99% 96% 95% 96%
 k-nucleotide 
C# Mono71.7624.59505,8721822  66% 68% 94% 65%
Java35.2710.611,199,1841844  79% 78% 90% 88%
 fasta 
C# Mono10.534.55130,1161505  66% 61% 62% 44%
Java5.901.8231,6002457  80% 83% 80% 82%
 regex-dna 
C# Mono88.1726.23435,892898  86% 86% 83% 82%
Java25.798.80729,244929  77% 80% 72% 66%
 binary-trees 
C# Mono21.4320.39116,392654  6% 1% 100% 0% †
Java10.543.24443,816919  77% 90% 87% 77% †
 pidigits 
C# Mono62.9162.7664,548856  1% 38% 62% 1%
Java4.174.0726,324938  3% 3% 4% 96%
 n-body 
C# Mono0.420.4238,6361410  5% 0% 95% 0%
JavaFailed

† 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.1.0 (master/435cc01 Wed May 20 21:03:41 PDT 2015)
LLVM: yes(3.6.0svn-mono-master/ce4fcec)
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