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± ±
 pidigits± ±
 mandelbrot± ±
 fasta-redux± ±
 binary-trees †1/3±
 fannkuch-redux ±
 spectral-norm ±
 reverse-complement †1/21/2
 k-nucleotide1/2±
 regex-dna1/2±
 fasta † 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 : 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# Mono22.0422.0519,4081305  100% 1% 1% 1%
Java24.4724.4519,5081424  1% 1% 100% 0%
 pidigits 
C# Mono3.983.9919,6361026  1% 99% 1% 1%
Java4.154.0423,488938  2% 2% 0% 100%
 mandelbrot 
C# Mono30.627.8451,700986  99% 98% 97% 97%
Java27.036.9181,940796  98% 99% 97% 98%
 fasta-redux 
C# Mono2.302.3019,3201438  0% 99% 2% 0%
Java1.921.8719,7921443  2% 2% 2% 99%
 binary-trees 
C# Mono20.2420.24137,756654  98% 1% 2% 1% †
Java18.8013.20476,640584  38% 37% 32% 37% †
 fannkuch-redux 
C# Mono114.9829.2819,7881096  99% 99% 98% 98%
Java64.3816.3319,9081282  98% 100% 98% 99%
 spectral-norm 
C# Mono31.608.0919,0361063  98% 97% 98% 98%
Java16.564.3020,064950  95% 96% 99% 96%
 reverse-complement 
C# Mono2.962.97175,5201099  0% 99% 1% 2% †
Java2.671.36306,1561661  81% 33% 38% 47% †
 k-nucleotide 
C# Mono104.3634.12515,5281696  98% 68% 71% 70%
Java35.8910.661,200,3201844  82% 83% 92% 82%
 regex-dna 
C# Mono90.4634.55342,492638  79% 64% 60% 60%
Java26.349.02714,924929  64% 75% 86% 67%
 fasta 
C# Mono7.167.1719,4121180  1% 100% 1% 1% †
Java5.231.7329,1042457  70% 68% 95% 70% †

† 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/9fd3c7a Thu Sep 11 15:32:17 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