[Mono-list] string/buffer allocation speed issue
robertj at gmx.net
Mon Feb 23 11:30:07 EST 2009
> the performance difference (caused by the string and buffer allocation) when
> running this simple program on windows xp using microsoft vs. mono 2.2 is
> pretty big...and i was hoping there's something i can do to reduce or
> eliminate the difference.
> here are the performance numbers for test 1 (allocating the char array once,
> microsoft/windows xp: duration: 0.047sec; rate: 10638298/sec
> mono 2.2/windows xp: duration: 0.234sec; rate: 2136752/sec
Since your sample does nothing, MS.NET has probably optimized out
parts of the code.
If you're benching mono, do it under Linux and with real world code.
More information about the Mono-list