[Mono-list] Mono performance on Windows vs. Linux

John Luke jluke@users.sourceforge.net
Sat, 20 Mar 2004 14:17:14 -0500

On Fri, 2004-03-19 at 18:47 -0800, Jim Hugunin wrote:

> I'm trying to benchmark a .NET application I wrote (IronPython) under mono.
> I've developed the program completely under windows xp so far.  I've
> installed mono (0.31) on windows and my application runs on it but the
> performance is not as good as I had hoped for.  The benchmark doesn't do any
> I/O or gui work and is processor and memory bound (it's the pystone
> benchmark program).
> Before I invest the time to setup my machine to dual-boot into linux, I
> wanted to ask for some advice.  Should I expect mono to run substantially
> faster under linux for processor and memory bound programs?  Are there any
> obvious tricks I should be using to get the top performance out of mono?
> I've tried running with -O=all but that makes no difference I can see.

I don't think you can expect a huge increase for mono on linux although
I am certainly not an expert on this.  What might be helpful is
identifying the areas it is slower, using mono --profile, then the
relevent people could probably tell you and improve it.  I know there is
a relatively high demand for a python compiler, so it would be great to
get it performing well on mono also.

Also, you could use ahead of time compiling to remove the JIT cost,
using: mono --aot the.exe