[Mono-list] benchmark2 - and the winner is ...

Wes Felter wesley@felter.org
28 Mar 2002 18:40:06 -0600


On Thu, 2002-03-28 at 14:37, Guenther Roith wrote:

> using System;
> 
> class X {
> 
> static int Main (string [] args)
>  {
> Console.WriteLine("start");
> 
>     for (int i = 0; i < 2000000000;)
> {
> i++;
> }
> 
> Console.WriteLine("stop");
> 
> return 0;
> }
> }

This is dead code; I'm surprised it takes any time at all.

Also, how are you measuring the running time?

-- 
Wes Felter - wesley@felter.org - http://felter.org/wesley/