[Mono-list] string/buffer allocation speed issue

Alan McGovern 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
good example.


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)
> 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,
> > 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.
> Robert
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090223/b87735bb/attachment.html 

More information about the Mono-list mailing list