[Mono-list] Performance benchmark

Robert Jordan robertj at gmx.net
Sat Feb 27 12:32:38 EST 2010


On 27.02.2010 09:59, James Mansion wrote:
> Rodrigo Kumpera wrote:
>> Things like page faults and hardware traps (raising a NRE) are
>> significantly slower when running under a VMM.
> But this code is looping in user space and should not make many. Why do
> you think it will make
> many in this case?

It was an example why results might be different.

>> Because mono is better optimized for linux, simple as that. Some
>> codepaths are slightly faster under linux.
>
> In its runtime library interaction with system services - yes. This
> example is compute
> bound in user space.

It is not. The GC is interacting with low-level OS parts and can
be triggered any time during your benchmarks.

For similar results, you should run the benchmarks with
the same Mono version on the same hardware with a disabled
GC. It's not realistic, but so are micro benchmarks.

Robert



More information about the Mono-list mailing list