vs

 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/3±
 reverse-complement †1/21/2
 k-nucleotide±±
 fasta † 1/2
 regex-dna1/3±
 pidigits ±
 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.7721.7822,2561305  0% 0% 1% 100%
Java22.9022.8719,5721424  99% 1% 1% 1%
 fasta-redux 
C# Mono2.682.6920,2641438  2% 0% 1% 100%
Java2.632.5819,9601443  77% 1% 24% 2%
 mandelbrot 
C# Mono31.518.0657,288986  97% 97% 99% 98%
Java27.847.1162,344796  98% 97% 98% 100%
 spectral-norm 
C# Mono21.975.6624,6921063  97% 97% 98% 97%
Java17.804.5921,132950  97% 96% 99% 96%
 fannkuch-redux 
C# Mono87.7322.3122,9841096  99% 99% 98% 98%
Java70.0617.7319,7201282  99% 99% 98% 99%
 binary-trees 
C# Mono24.8824.85132,132654  98% 1% 2% 1% †
Java24.8914.48390,708584  34% 73% 38% 30% †
 reverse-complement 
C# Mono2.792.79178,7001099  85% 1% 16% 1% †
Java2.971.47300,7121661  47% 37% 78% 43% †
 k-nucleotide 
C# Mono81.1526.88534,3041696  67% 96% 70% 70%
Java44.8512.81504,3121602  93% 86% 87% 84%
 fasta 
C# Mono6.536.5420,1601180  0% 0% 100% 1% †
Java5.782.2032,6202457  62% 75% 63% 65% †
 regex-dna 
C# Mono76.2229.57273,828638  56% 80% 55% 68%
Java24.528.59707,744929  80% 64% 79% 64%
 pidigits 
C# Mono11.0311.0422,3321026  1% 1% 100% 0%
Java3.173.0323,504938  19% 80% 5% 3%

† 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.8.1 (master/db3eb16 Wed Aug 13 12:36:50 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