[Mono-list] C# program in 2000 times slower than equivalent C program

Robert Jordan robertj at gmx.net
Thu Feb 28 11:05:27 EST 2008


Yury Serdyuk wrote:
> <>Running them gives:
> 
> [serdyuk at skif Quicksort]$ ./quicksort2
> read_data 0.06
> sort 0.0100000000

Your C# code is supposed to output:

Console.WriteLine ( "read_data : " + (dt2-dt1).TotalSeconds );

and

Console.WriteLine ( "sort time : " + (dt2-dt1).TotalSeconds );


but you pasted this output:

 >
 > [serdyuk at skif Quicksort]$ mono QuicksortSimple.exe
 > N = 100000
 > Elapsed time : 20.815316


Inconsistent.

Robert



More information about the Mono-list mailing list