[Mono-bugs] [Bug 464929] New: Sorting strings is 10x slower than MS.NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 9 13:36:48 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=464929


           Summary: Sorting strings is 10x slower than MS.NET
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lluis at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Test case:

using System;
using System.Collections.Generic;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main (string[] args)
        {
            Random r = new Random ();
            List<string> list = new List<string> ();
            for (int n = 0; n < 50000; n++)
                list.Add (r.Next ().ToString ());
            DateTime t = DateTime.Now;
            list.Sort ();
            Console.WriteLine ((DateTime.Now - t).TotalMilliseconds);
        }
    }
}

Tested in the same Windows box, this test case takes 10x more time in mono to
run.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list