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

† 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
 fasta-redux 
C# Mono2.802.8140,5481438  100% 1% 0% 1%
Java2.652.5929,9401443  1% 76% 1% 25%
 reverse-complement 
C# Mono1.551.55199,1681099  99% 1% 2% 1% †
Java2.681.27315,2961661  41% 48% 34% 92% †
 fannkuch-redux 
C# Mono86.2122.0240,4721096  98% 97% 99% 99%
Java68.6417.4133,0321282  98% 98% 99% 99%
 mandelbrot 
C# Mono31.568.1080,980872  97% 98% 97% 99%
Java24.246.2788,992796  96% 97% 97% 98%
 spectral-norm 
C# Mono22.035.7342,7761063  96% 97% 96% 96%
Java16.534.2832,696950  96% 96% 96% 99%
 k-nucleotide 
C# Mono55.8019.41514,9161822  98% 67% 64% 63%
Java38.6611.291,118,2881844  83% 97% 82% 82%
 fasta 
C# Mono10.344.59134,3481505  56% 48% 75% 48%
Java5.602.1939,3682457  58% 72% 66% 61%
 regex-dna 
C# Mono82.1423.90460,308898  87% 90% 85% 82%
Java24.708.24761,724929  68% 73% 77% 83%
 binary-trees 
C# Mono24.8123.21162,636654  2% 30% 30% 46% †
Java11.543.43445,500919  82% 83% 93% 81% †
 pidigits 
C# Mono38.4138.3066,408856  3% 1% 1% 97%
Java3.223.1233,528938  3% 2% 80% 21%
 n-body 
C# Mono0.370.371,1521305  97% 5% 3% 5%
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 22:58:47 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