Click to See Complete Forum and Search --> : net vs 6 - GDI Test 1


GremlinSA
July 23rd, 2008, 06:08 AM
This was the First GDI test Done..

The task is to simply tile a Bitmap image across the form's background.

A loop counter is included so that we can loop over the code multiple times and get more accurate time data..

Apart from the two project files attached there was one more submition to this test that needs mention..

Hannes posted the following Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
Me.BackgroundImageLayout = ImageLayout.Tile
Me.BackgroundImage = PictureBox1.Image
End Sub

GremlinSA
July 23rd, 2008, 06:17 AM
Results of this test as run on my Vista dev system..

code loops 100 times, on same sized form (Critical)

VB6 - API = 94ms
VB.NET - GDI = 640ms
VB.NET - Std Control = 1.38ms(back calculated from 10000000 loop)

Re tested on full screen... (1280 * 768)

VB6 - API = 312ms
VB.NET - GDI = 2637ms
VB.NET - Std Control = 2.15ms(back calculated from 100000 loop)