[Mono-list] Optimize code for Mono / execution speed

Tom Fransen t.fransen@mailned.nl
Mon, 2 Sep 2002 22:55:52 +0100


Hi,

I wrote a few small benchmark that a ran on Mono and on MS .NET (I also used
C++). I looked at the man pages for MCS and Mono but I found no option for
optimizing the code (the CSC compiler however has such an option). Did I
miss something, is there a way to speedup things?

Here are the figures (AMD 1.3GHz / 512Mb / Windows XP / Linux RH73 Mono
0.15).

All times are in mSec.

		BubbleSort	Sieve	Fibonacci Hanoi	FourTrans  ImageBlur	Pi	SqrtTwo
VC++7.0	 4005		1241	591	    1182	1762	     1843		3135	8903
g++	 	 1929		2349	896	    2815	2503	     2165		3260	7303
MS .NET	 3095		2644	961	    2243	1993	     2554		6389	10645
Mono	 	20139		8666	2281	    2883	3388	     13097		7397	21618

Yes, I know these are just micro-benchmark so it is not an absolute truth
but it give some indication. I haven studied the details or tried to analyse
why things are fast or slow.

regards,
Tom