Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Speed comparation VB6 vs. C#

Speed comparation VB6 vs. C#

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetvisual-studioperformance
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fedor Hajdu
    wrote on last edited by
    #1

    Hey everybody. I would like to know speed differences between vb6 and C#. How much C# is slower because of the CLR? Do you know some good web site where this is tested? Thanks in advance, Fedor

    D G 2 Replies Last reply
    0
    • F Fedor Hajdu

      Hey everybody. I would like to know speed differences between vb6 and C#. How much C# is slower because of the CLR? Do you know some good web site where this is tested? Thanks in advance, Fedor

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I don't think anyone has tested VB6 against C#. Test it yourself if you have any doubts. But, I think you'll find that the .NET CLR doesn't make C# or VB.NET slower than VB6. I think you'll find just the opposite.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      1 Reply Last reply
      0
      • F Fedor Hajdu

        Hey everybody. I would like to know speed differences between vb6 and C#. How much C# is slower because of the CLR? Do you know some good web site where this is tested? Thanks in advance, Fedor

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        I assume that you mean how much slower managed code is compared to unmanaged, as the CLR (common language runtime) is not very different from how VB6 works. VB6 also has a runtime library, the difference is just that it's specific for VB6 and not shared with any other language. Here[^] you can find a comparison between C#, VB6 and other languages. As you see, C# is roughly twice as fast as VB6 for simple operations. When using objects the difference grows substantially, as C# is roughly 100 times faster than VB6. The difference in performance when it comes to objects is largely due to the way that the managed code handles objects, so you see that managed code doesn't make C# slower, but in fact very much faster.

        --- b { font-weight: normal; }

        F 1 Reply Last reply
        0
        • G Guffa

          I assume that you mean how much slower managed code is compared to unmanaged, as the CLR (common language runtime) is not very different from how VB6 works. VB6 also has a runtime library, the difference is just that it's specific for VB6 and not shared with any other language. Here[^] you can find a comparison between C#, VB6 and other languages. As you see, C# is roughly twice as fast as VB6 for simple operations. When using objects the difference grows substantially, as C# is roughly 100 times faster than VB6. The difference in performance when it comes to objects is largely due to the way that the managed code handles objects, so you see that managed code doesn't make C# slower, but in fact very much faster.

          --- b { font-weight: normal; }

          F Offline
          F Offline
          Fedor Hajdu
          wrote on last edited by
          #4

          Thank you for answers. It helped a lot! Regards, Fedor

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups