/mobile Handheld Friendly website

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 Perl 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 Perl 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
 mandelbrot1/117 
 n-body1/51 ±
 fasta-redux1/38 
 fannkuch-redux1/22 
 fasta1/15 ±
 binary-trees †1/121/8±
 spectral-norm1/7 
 k-nucleotide1/21/3
 pidigits± 
 reverse-complement±1/2
 regex-dna±
 C# Mono used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1171/1171/271/121/2±

† 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 Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 mandelbrot 
C# Mono31.207.9549,152986  98% 99% 98% 98%
Perl3,708.99928.3637,660579  100% 100% 100% 100%
 n-body 
C# Mono23.1023.1214,9161305  0% 100% 1% 0%
Perl1,177.821,178.232,2801401  24% 16% 61% 1%
 fasta-redux 
C# Mono2.292.3015,4521438  99% 0% 0% 1%
Perl86.1986.222,288854  1% 100% 0% 0%
 fannkuch-redux 
C# Mono113.9928.9515,2281096  98% 99% 99% 98%
Perl2,489.00624.266,292565  100% 100% 99% 100%
 fasta 
C# Mono7.927.9215,3601180  0% 1% 100% 0%
Perl116.40116.4599,960838  0% 94% 0% 7%
 binary-trees 
C# Mono21.8521.85119,736654  66% 1% 1% 34% †
Perl863.86258.43912,720706  94% 69% 100% 72% †
 spectral-norm 
C# Mono29.507.4914,6361063  99% 99% 99% 99%
Perl212.5754.356,780551  97% 98% 98% 99%
 k-nucleotide 
C# Mono107.3434.65543,9201696  100% 71% 72% 68%
Perl242.0769.891,774,668648  82% 88% 85% 92%
 pidigits 
C# Mono3.943.9515,3601026  99% 1% 2% 1%
Perl5.465.473,600261  0% 1% 100% 0%
 reverse-complement 
C# Mono2.822.82171,2721099  1% 74% 2% 26%
Perl3.043.05374,472284  0% 1% 1% 100%
 regex-dna 
C# Mono78.5031.81376,872638  67% 53% 51% 77%
Perl34.5613.84140,296527  36% 77% 59% 78%

† 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 Perl 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 Perl 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.2.3 (tarball Wed Oct 30 12:15:41 PDT 2013)
LLVM: yes(3.3svn-mono-mono/8bdedb5)
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