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± ±
 fasta-redux± ±
 reverse-complement †±1/21/2
 mandelbrot± ±
 spectral-norm± ±
 fannkuch-redux± ±
 k-nucleotide1/2±
 fasta 1/2
 regex-dna1/2±
 pidigits ±
 binary-trees †1/2±
 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# Mono21.8021.8140,9321305  0% 100% 1% 0%
Java22.6822.6630,0361424  97% 3% 0% 1%
 fasta-redux 
C# Mono2.802.8140,9561438  1% 1% 99% 1%
Java2.652.5929,9401443  1% 76% 1% 25%
 reverse-complement 
C# Mono1.551.55199,3801099  99% 1% 2% 1% †
Java2.681.27315,2961661  41% 48% 34% 92% †
 mandelbrot 
C# Mono31.578.1084,908872  99% 98% 97% 97%
Java24.246.2788,992796  96% 97% 97% 98%
 spectral-norm 
C# Mono22.045.7343,1081063  95% 97% 96% 97%
Java16.534.2832,696950  96% 96% 96% 99%
 fannkuch-redux 
C# Mono96.1224.5242,9281096  98% 98% 98% 99%
Java68.6417.4133,0321282  98% 98% 99% 99%
 k-nucleotide 
C# Mono56.6419.65517,8801822  64% 64% 98% 63%
Java38.6611.291,118,2881844  83% 97% 82% 82%
 fasta 
C# Mono10.314.58129,5641505  57% 53% 63% 53%
Java5.602.1939,3682457  58% 72% 66% 61%
 regex-dna 
C# Mono82.3424.39461,148898  87% 85% 85% 82%
Java24.708.24761,724929  68% 73% 77% 83%
 pidigits 
C# Mono11.2211.2341,4081026  1% 100% 1% 0%
Java3.223.1233,528938  3% 2% 80% 21%
 binary-trees 
C# Mono24.9623.36165,300654  1% 8% 100% 0% †
Java8.005.67356,656583  39% 39% 36% 32% †

† 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/54e8010 Sun May 31 13:36:15 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