CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

View Poll Results: Which of the test cases performed the best on your system

Voters
3. You may not vote on this poll
  • The VB6 Project

    0 0%
  • The .NET Project

    2 66.67%
  • Inconclusive results / A Tie

    1 33.33%
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    net vs 6 - Sort Test 2

    "This uses BubbleSort, and the CheckBox determines whether the array to be sorted is numeric or string. (the original button and code is still there too). A ListBox is included to show multiple test results."


    ****** No .NET code submited yet *******
    Attached Files Attached Files
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: net vs 6 - Sort Test 2

    Okay I've completed the Sorting code in .NET ...

    Results of this test as run on my Vista dev system..

    10 000 items in array...

    32bit Numeric value.. (Long in VB6, Integer in .NET)

    VB6 = 593
    VB.NET = 390

    String types..

    vb6 = 17051
    VB.NET = 3229
    Attached Files Attached Files
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: net vs 6 - Sort Test 2

    Quote Originally Posted by WizBang
    Well, I checked out the VB6 sorting code in your article, and was surprised to see that neither QuickSort algo was like the one I've been using. So I added it along with an additional button. Interestingly, I find my algo is about 1/3 faster. I don't recall where I got it, but obviously there are a number of variations out there. I've attached it here.
    when doing some research for the sorting article i came across several Quick sort algo's. I acctualy just randomly picked two, and luckly got two that perform at different levels..

    I also noticed that you added it to the Articles vb6 project.. so i wont test it in .net ...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: net vs 6 - Sort Test 2

    Quote Originally Posted by GremlinSA
    when doing some research for the sorting article i came across several Quick sort algo's. I acctualy just randomly picked two, and luckly got two that perform at different levels..

    I also noticed that you added it to the Articles vb6 project.. so i wont test it in .net ...
    I'm not sure I understand (not testing it in .net), but now that you've started the other sorting thread, with all the different algorithms, perhaps I'll move my post over there.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  5. #5
    Join Date
    Dec 2001
    Posts
    6,332

    Re: net vs 6 - Sort Test 2

    Quote Originally Posted by GremlinSA
    Okay I've completed the Sorting code in .NET ...

    Results of this test as run on my Vista dev system..

    10 000 items in array...

    32bit Numeric value.. (Long in VB6, Integer in .NET)

    VB6 = 593
    VB.NET = 390

    String types..

    vb6 = 17051
    VB.NET = 3229
    This is interesting. The BubbleSort test using a ListBox to hold the data showed VB6 is faster. Does this mean that the .net ListBox is slower than the one in VB6?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  6. #6
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: net vs 6 - Sort Test 2

    Quote Originally Posted by WizBang
    This is interesting. The BubbleSort test using a ListBox to hold the data showed VB6 is faster. Does this mean that the .net ListBox is slower than the one in VB6?
    my take on this is that the .NET listbox item object is a lot larger than in VB6.

    As seen in the Listbox add items test, .NET takes much longer to add items one at a time to the list. However now tou can add a lot more than just a String and a hidden value to each item..

    I'm still trying to think af a few more tests to do on the listbox and combobox...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured