[Mono-devel-list] Why is latest Mono runtime slow on Windows?

Sunil Venkateswara sunvenk at hotmail.com
Sat Mar 13 10:00:37 EST 2004


Hi

I have executed the following code in
the latest mono runtime  on Windows 2000 platform and also in MS.Net .
And I found that mono runtime is 10 times slower
than MS.Net for executing this code.

Do anybody has an idea as why mono runtime is very slow?.

Thanks
Sunil

using System;
namespace HelloWorld
{
	class Class1
	{
		static void Main()
		{
			long start;
			long end;
			long time;
			long a, b, c, d, e;
			double dStart, dStop;
			//Ticks in 100-nanosec intervals
			start = DateTime.Now.Ticks;
			for(int i=0;i<10000000;i++)
			{
				++i;
				a = i;
				b = a+1;
				c = a + b;
				if (a == (b-1)) d = c;
				e = b - a;
			}
			end = DateTime.Now.Ticks;
			time =  end - start;
			Console.WriteLine("Time taken for execution = {0} (in 100 nanosecs)", 
time);
		}
	}
}

_________________________________________________________________
Protect your PC from viruses. Get in the experts. 
http://www.msn.co.in/pcsafety/ Click here now!




More information about the Mono-devel-list mailing list