|
You all probably know this already, but I thought
it was quite funny to write a tiny performance test program to see if there was
any difference between Mono and Microsoft .NET Framework 1.0.3705. There
was:
Red Hat Linux 8.0 running Mono 0.18: Approx. 7.2 seconds
Windows XP running MS .NET Framework 1.0.3705:
Approx 5.02 seconds
My program basically counts 1 million and prints
out how long it took.
The test was performed on my computer, which is an
Athlon 650 Mhz.
Many of you will probably consider this
information irrelevant, but I think it is a little interesting.
I don't know whether the difference of about 2
seconds is because one was on Linux and the other on Windows or because one was
with Mono and the other was on .NET Framework.
Source attached...
// Simon
// This sentence no
verb.
|
using System;
public class PerformanceTester
{
public static void Main(string[] args)
{
DateTime dstart = DateTime.Now;
int i = 0;
while (i<1000000000)
{
i++;
}
Console.WriteLine("Time taken:
"+DateTime.Now.Subtract(dstart).ToString());
}
}
