[Mono-list] Mono C# versus Java 6 -server performance

Jonathan Pryor jonpryor at vt.edu
Thu Nov 29 09:01:41 EST 2007

On Thu, 2007-11-29 at 14:54 +0100, Robert Jordan wrote:
> Robert Hulme wrote:
> > I had a look on the Language Shootout, comparing Mono 1.2.5 with Java 6 
> > -server. 
> > http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=csharp
> > 
> > In almost all the benchmarks Mono C# was significantly slower than Java 6.
> Significantly?
> Out of 17 programs, Java was 9 x 1.xx times better, 2 x 2.xx times
> better and 2 times significantly better. These 2 programs
> (pidigits & regex-dna) are slow on Mono regardless of the
> language Mono is compared with.

Then there's the memory usage figures, where Mono is usually smaller.
Not significantly smaller -- 5x 1.xx times smaller, and 9x 2.xx times
smaller -- but memory use is important.

So the speed is fairly comparable (except for pidigits and regex), while
requiring less memory.  This isn't a Java blowout; this is a tie.

In which case performance isn't the issue.  The issue is frameworks and
experience.  C# may be a nicer language, but if your team is made up
primarily of Java developers then you should probably stick with Java.
Similarly, if Java has an available framework for your problem domain
that .NET doesn't have, then Java may be a better choice.

 - Jon

More information about the Mono-list mailing list