[Mono-dev] String class speed improvements

marek safar marek.safar at seznam.cz
Wed Nov 22 08:30:44 EST 2006


Hello,

Here are some figures which illustrates the speed up. I ran
enclosed C# micro benchmark with following results.

MS .NET 1.1

00:00:01.0941420
00:00:00.9534666
00:00:02.0476086
00:00:02.0788698

MS .NET 2.0

00:00:01.2660786
00:00:00.9378360
00:00:00.9847278
00:00:05.6113854

Mono SVN HEAD

00:00:02.2820000
00:00:02.0790000
00:00:04.2360000
00:00:04.5800000

Mono patch applied

00:00:01.0290000
00:00:00.9510000
00:00:01.0440000
00:00:04.6140000

You can get even better figures when you make the string longer.
Also the figures are not 100% accurate but I think they illustrate
the speed up.

Regards,
Marek 



> ------------ Původní zpráva ------------
> Od: Atsushi Eno <atsushi at ximian.com>
> Předmět: Re: [Mono-dev] String class speed improvements
> Datum: 21.11.2006 23:05:07
> ----------------------------------------
> Hi Marek,
> 
> It is quite impressive :-)  Can you post your examples
> for 1-1.5 speed improvements?
> 
> Cheers,
> Atsushi Eno
> 
> Marek Safar wrote:
> > Hello all,
> > 
> > The attached patches contain speed improvement for some
> > char oriented string methods. The speed up is in overall
> > between 1-1.5 times but it can vary depends on the input
> > data and test pattern.
> > 
> > Please review.
> > 
> > Regards,
> > Marek
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bench_2.cs
Type: text/x-csharp
Size: 777 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061122/f2e6a520/attachment.bin 


More information about the Mono-devel-list mailing list