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± ±
 mandelbrot± ±
 fannkuch-redux± ±
 spectral-norm± ±
 k-nucleotide1/2±
 reverse-complement †1/21/2
 regex-dna1/2±
 fasta † 1/2
 pidigits ±
 binary-trees †1/3±
 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
 fasta-redux 
C# Mono2.682.6820,2881438  0% 100% 2% 1%
Java2.652.5929,9401443  1% 76% 1% 25%
 mandelbrot 
C# Mono31.488.0357,260986  99% 98% 98% 98%
Java24.246.2788,992796  96% 97% 97% 98%
 fannkuch-redux 
C# Mono87.6822.2922,9601096  97% 99% 98% 99%
Java68.6417.4133,0321282  98% 98% 99% 99%
 spectral-norm 
C# Mono21.955.6424,7641063  98% 98% 97% 97%
Java16.534.2832,696950  96% 96% 96% 99%
 k-nucleotide 
C# Mono51.3818.87529,7601822  97% 58% 59% 59%
Java38.6611.291,118,2881844  83% 97% 82% 82%
 reverse-complement 
C# Mono2.702.70178,7841099  0% 27% 73% 1% †
Java2.681.27315,2961661  41% 48% 34% 92% †
 regex-dna 
C# Mono70.9220.04473,344898  85% 90% 94% 86%
Java24.708.24761,724929  68% 73% 77% 83%
 fasta 
C# Mono6.326.3322,2201180  0% 1% 0% 100% †
Java5.602.1939,3682457  58% 72% 66% 61% †
 pidigits 
C# Mono11.0211.0320,4201026  100% 1% 1% 0%
Java3.223.1233,528938  3% 2% 80% 21%
 binary-trees 
C# Mono25.1325.12135,868654  19% 1% 24% 58% †
Java11.543.43445,500919  82% 83% 93% 81% †
 n-body 
C# Mono0.320.326281305  3% 0% 0% 97%
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 3.10.1 (master/0083728 Thu Sep 11 09:57:48 PDT 2014)
LLVM: yes(3.4svn-mono-mono/e656cac)
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