[Mono-list] Speed difference Windows - Linux

Miguel de Icaza miguel at novell.com
Sat Jan 5 02:07:05 EST 2008


Hello,

    One possibility is that Mono is using a managed string collation
library as opposed to using a native library to do this.

> I'm seeing the same performance delta you're seeing. Mono 1.2.5 is
> roughly speaking 4 times slower loading the dictionary and 10 times
> slower running the sort. I'll update myself to mono 1.2.6 later on
> today and see if there's much of a difference with that, if not, i'll
> see if i can find a way to improve. 
> 
> If there's anyone out there who's more familiar with this area of
> code, you could also take a gander ;)
> 
> Alan
> 
> On Jan 4, 2008 12:15 PM, Ventsislav Mladenov
> <ventsislav.mladenov at gmail.com> wrote:
>         Hi again, obviously my test was wrong i completely rewrote my
>         code and now is much faster and there is no difference between
>         Windows ( 1.2.6) and Linux (Ubuntu 1.2.5.1)  but there is
>         still huge performance difference between Microsoft .NET and
>         Mono  : 
>         Load XML (Deserialize) + Sorting records in it.
>         
>         Microsoft .NET : 2 - 3  seconds 
>         Mono : 10 - 11 seconds
>         
>         The PC is - Intel Pentium 4 - 3.0Ghz and 1.5GB RAM - running
>         Ubuntu Gutsy. 
>         
>         Here it is source and XML: SortTest.7z
>         
>         P.P. 
>             Now I'm glad to see my English - Bulgarian dictionary
>         working both on Windows and Linux. Thanks Mono Team keep
>         moving ahead. 
>         
>         2008/1/3, Alan McGovern < alan.mcgovern at gmail.com>:
>         
>                 Hi,
>                 
>                 Are you using the same version of the mono runtime on
>                 both your windows box and linux box? The sorting
>                 algorithm should be the same, so if there's a
>                 difference in performance, it's from something else.
>                 Also, if you can create a testcase which easily
>                 demonstrates the problem, it'd make things easy to
>                 debug. 
>                 
>                 Alan.
>                 
>                 On Jan 2, 2008 10:22 PM, Ventsislav Mladenov
>                 <ventsislav.mladenov at gmail.com> wrote:
>                 
>                         Hi, I have a speed problem with Mono 1.2.6
>                         I have to sort List<String> with 88 000
>                         records (Bulgarian and English words)
>                         on Windows Mono sort it for about 5 seconds
>                         but on Linux it takes at least 30 - 40
>                         seconds. 
>                         
>                         I think Mono have to use same algorithm for
>                         sorting?
>                         
>                         
>                         
>                         _______________________________________________
>                         Mono-list maillist  -
>                          Mono-list at lists.ximian.com
>                         http://lists.ximian.com/mailman/listinfo/mono-list
>                         
>                 
>         
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list