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
1. You may not vote on this poll
  • The VB6 Project

    0 0%
  • The .NET Project

    0 0%
  • Inconclusive results / A Tie

    1 100.00%
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2001
    Posts
    6,332

    Re: net vs 6 - Sort Test 1

    I've moved this post from the other sorting thread. This is obviously a better place for it, though it looks out of order due to the time this thread was created.

    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.
    Attached Files Attached Files
    Last edited by WizBang; July 23rd, 2008 at 03:17 PM.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

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

    net vs 6 - Sort Test 1

    This test is to see how fast the two Languages can sort items inside a listbox. there will be more Sorting tests with different types of objects..

    The VB6 source code is available on this article, i saw no need to repost it here..
    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 1

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

    200 numbers with a max value of 100

    VB6:
    Bubble : 10780ms
    Incertion : 5460ms
    Heap : 1731ms
    Shell : 873ms
    Selection : 281ms
    Quick sort 1 : 468ms
    Quick sort 2: 577ms

    VB.NET:
    Bubble : 12418ms
    Incertion : 4040ms
    Heap : 2075ms
    Shell : 1107ms
    Selection : 249ms
    Quick sort 1 : 468ms
    Quick sort 2: 374ms

    Because .net wasfaster in some and slower in others, i'd call this one inconclusive..
    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