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 First .NET Method (Button1)

    0 0%
  • The Second .NET Method (Button2)

    1 100.00%
  • Inconclusive results / A Tie

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

    net vs 6 - ListBox Test 1

    Test the speed that a listbox items are added..

    The Original .NET code used the traditional VB6 methods, So I also added a second method that has the same output, however is about 80% faster...
    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 - ListBox Test 1

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

    100 000 items test run..

    VB6 = 5912
    VB.NET (Method 1) = 7831
    VB.NET (Method 2) = 1326

    10 000 items test run..

    VB6 = 577
    VB.NET (Method 1) = 765
    VB.NET (Method 2) = 109
    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 2008
    Posts
    592

    Re: net vs 6 - ListBox Test 1

    Test results at 100,000:

    vb6(method 1): 953
    vb6(method 2): 203
    vb.net(method 1): 1812
    vb.net(method 2): 1031


    Test results at 10,000:

    vb6(method 1): 94
    vb6(method 2): 16
    vb.net(method 1): 156
    vb.net(method 2): 94
    Last edited by Joeman; July 25th, 2008 at 07:17 AM.
    0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
    0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000
    0000 0000 0000 0000

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

    Re: net vs 6 - ListBox Test 1

    This is the second method that Joeman has posted (in future please add the updates to the threads for that test...)

    New Test run ..

    100 000 Items..

    VB6 Method 1: 6115
    VB6 Method 2: 327
    .NET Method 1: 7582
    .NET Method 2: 842

    10 000 Items..

    VB6 Method 1: 609
    VB6 Method 2: 31
    .NET Method 1: 748
    .NET Method 2: 63
    Attached Files Attached Files
    Last edited by GremlinSA; July 25th, 2008 at 02:08 AM.
    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.

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

    Re: net vs 6 - ListBox Test 1

    Just a quick little something that i noticed...

    The New API Listbox loading method for VB6 has a small flaw in it.. I dont have Access to a VB6 system at work so i cant look into it right now.. However here is a screen shot of the difference, Notice the background color of the listbox..

    Left Normal method, Right API method..
    Attached Images Attached Images  
    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.

  6. #6
    Join Date
    Jun 2008
    Posts
    592

    Re: net vs 6 - ListBox Test 1

    I will look into that as soon as I can. It isn't much of a flaw, but more of the default settings. The listbox grabs the window background color and uses it.
    0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
    0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000
    0000 0000 0000 0000

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