[Mono-list] string/buffer allocation speed issue
alan.mcgovern at gmail.com
Mon Feb 23 14:14:55 EST 2009
All this test does is allocate memory non-stop which is a GC stress test. It
is known that monos GC is currently slower than the MS GC. If you're
wondering what kind of performance you can get out of a C#, gmcs would be a
On Mon, Feb 23, 2009 at 4:30 PM, Robert Jordan <robertj at gmx.net> wrote:
> tomjohnson3 wrote:
> > the performance difference (caused by the string and buffer allocation)
> > 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
> > upfront):
> > 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.
> Mono-list maillist - Mono-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list