1. Home
  2. Computing & Technology
  3. Visual Basic

Which is faster? VB 6 or VB.NET?

By Dan Mabbutt, About.com

7 of 8

The Benchmark Code - Part 3

         If Factor = 0 Then
            PrimesFound = PrimesFound + 1
            Primes(PrimesFound) = NumberToTest
            testfile.writeline(NumberToTest)
         End If
         NumberToTest = NumberToTest + 1
      Loop
      lngFinish = 0
      lngFinish = GetTickCount
      testfile.writeline(lngFinish)
      lngElapsed = lngFinish - lngStart
      MsgBox("lngElapsed: " & CStr(lngElapsed))
      testfile.writeline("lngElapsed: " _
      & CStr(lngElapsed))
      testfile.Close()
      MsgBox("done")
   End Sub
End Module
~~~~~~~~~~~~~~~~~~~~~~~~~
Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Opinions and Humor
  5. A benchmark investigation into the relative performance speed of VB 6 versus VB.NET

©2009 About.com, a part of The New York Times Company.

All rights reserved.