Browsing as a guest
Hello! You are currently browsing this thread as a guest, If you would like to reply to this thread, please
or Register


Hype
C# vs. VB.NET Speed Test
#1
So I was interested to see which language was faster. So I made a program to test if one was faster than the other.

My findings concluded that VB runs a bit faster than C#. I believed it would be the other way around. They are only ~0.1 seconds apart though, so no GROUNDBREAKING difference. But the VB file is larger by about 4 KB, and that's a lot when both progams aren't in the double 

If you want to try this yourself then here are the copies of the 2 programs, both function the same way but are in different langauges.
https://mega.nz/#!p8REEIhJ!IwnVPEurGa0Zq...vAa2Sm5OyQ
[Image: QDcxlgI.png?1]
Reply
#2
(10-23-2016, 12:55 AM)Hype Wrote: So I was interested to see which language was faster. So I made a program to test if one was faster than the other.

My findings concluded that VB runs a bit faster than C#. I believed it would be the other way around. They are only ~0.1 seconds apart though, so no GROUNDBREAKING difference. But the VB file is larger by about 4 KB, and that's a lot when both progams aren't in the double 

If you want to try this yourself then here are the copies of the 2 programs, both function the same way but are in different langauges.
https://mega.nz/#!p8REEIhJ!IwnVPEurGa0Zq...vAa2Sm5OyQ

File is no longer available. But if you actually think VB.NET is faster than C# then you didn't compare equivalent code, or your compiler settings were not the same or you didn't consider the GC or perhaps some other things. I doubt this was tested reliably. They will be pretty much identical for the most part. And the reason for the larger filesize is probably because of that VisualBasic DLL that has the My namespace in it.
Reply
Browsing as a guest
Hello! You are currently browsing this thread as a guest, If you would like to reply to this thread, please
or Register