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

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 : Are the C# Mono programs faster? Approximately.

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± ±
 mandelbrot± ±
 spectral-norm± ±
 fannkuch-redux± ±
 binary-trees †1/4±
 reverse-complement †1/21/2
 k-nucleotide1/2±
 fasta † 1/2
 pidigits ±
 regex-dna1/21/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 : Are the C# Mono programs faster? Measurements.

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.7621.7622,3081305  0% 0% 1% 100%
Java22.6422.6225,2321424  1% 2% 1% 97%
 fasta-redux 
C# Mono2.682.6820,2881438  0% 100% 2% 1%
Java2.632.5725,2721443  2% 77% 2% 24%
 mandelbrot 
C# Mono31.488.0357,260986  99% 98% 98% 98%
Java28.057.1786,152796  98% 97% 98% 99%
 spectral-norm 
C# Mono21.955.6424,7641063  98% 98% 97% 97%
Java17.604.5525,696950  96% 96% 97% 98%
 fannkuch-redux 
C# Mono87.6822.2922,9601096  97% 99% 98% 99%
Java70.2517.8127,0481282  98% 99% 99% 99%
 binary-trees 
C# Mono25.1325.12135,868654  19% 1% 24% 58% †
Java18.8413.36511,792603  71% 21% 20% 31% †
 reverse-complement 
C# Mono2.702.70178,7841099  0% 27% 73% 1% †
Java2.731.25307,7401661  37% 90% 44% 50% †
 k-nucleotide 
C# Mono81.0026.62531,0641696  70% 70% 71% 97%
Java36.6510.711,120,9601844  94% 82% 84% 83%
 fasta 
C# Mono6.326.3322,2201180  0% 1% 0% 100% †
Java5.782.1633,6402457  84% 59% 61% 66% †
 pidigits 
C# Mono11.0211.0320,4201026  100% 1% 1% 0%
Java3.153.0329,084938  3% 4% 81% 21%
 regex-dna 
C# Mono72.1528.63337,224638  52% 56% 67% 78%
Java22.726.31648,9241410  89% 96% 88% 89%

† 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