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± ±
 pidigits± ±
 mandelbrot± ±
 fasta-redux± ±
 binary-trees †1/3±
 fannkuch-redux ±
 reverse-complement †1/21/2
 spectral-norm ±
 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.5024.4815,6561424  0% 100% 1% 0%
 pidigits 
C# Mono3.983.9919,6361026  1% 99% 1% 1%
Java4.154.0418,352938  16% 84% 1% 1%
 mandelbrot 
C# Mono30.627.8451,700986  99% 98% 97% 97%
Java27.176.9573,488796  97% 97% 99% 98%
 fasta-redux 
C# Mono2.302.3019,3201438  0% 99% 2% 0%
Java2.031.9815,8961443  82% 19% 2% 2%
 binary-trees 
C# Mono20.2420.24137,756654  98% 1% 2% 1% †
Java17.7512.78471,136584  77% 15% 15% 34% †
 fannkuch-redux 
C# Mono114.9829.2819,7881096  99% 99% 98% 98%
Java68.0417.2515,6961282  99% 99% 97% 99%
 reverse-complement 
C# Mono2.962.97175,5201099  0% 99% 1% 2% †
Java3.161.63296,1361661  77% 24% 39% 58% †
 spectral-norm 
C# Mono31.608.0919,0361063  98% 97% 98% 98%
Java16.564.2916,460950  96% 96% 99% 96%
 k-nucleotide 
C# Mono104.3634.12515,5281696  98% 68% 71% 70%
Java45.3313.06923,0681630  81% 83% 85% 99%
 regex-dna 
C# Mono90.4634.55342,492638  79% 64% 60% 60%
Java26.449.20713,236929  80% 66% 77% 65%
 fasta 
C# Mono7.167.1719,4121180  1% 100% 1% 1% †
Java5.341.7229,4842457  69% 75% 73% 96% †

† 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