[Mono-list] Time problems on Mono

Martin Hansen mah@cfsi.dk
Fri, 10 Dec 2004 09:52:15 +0100

> Yes, you can submit a test case that shows we're slow,=20
> so we can check and fix it.
I made some speed tests too and found mono to be slower.
If you have some sample programs that run faster on mono I would be =

My test was simple:
// project created on 8/16/2004 at 4:00 PM
using System;

class MainClass
	public static void Main(string[] args)
	   double sum=3D0;
  		for ( int m=3D0;m<9;m++){
  			for ( int n=3D0; n<=3D(1000* 1000 * 1000) ;n+=3D1 )
				sum *=3D 1.0;

The results was
Under .net 6 secs. Under mono 9 secs, adding --optimize=3Dall did not =
make a big difference.
The same program in c++ compiled by g++ -O3 is also about 6 secs.

But the most peculiar thing is that sometimes when compiled by mcs it =
takes mono above 2 minutes to finish, I have not found the differencing =
factor yet.

Med venlig hilsen

Martin Hansen
Software Specialist

Center for Software Innovation
Stenager 2=20
DK-6400 S=F8nderborg
Tlf: +45 7347 7017
Fax: +45 7347 7001
Email: mah@cfsi.dk
Web: www.cfsi.dk