C# vs. VB.NET Speed Test

Hype

Emerald
Emerald Upgrade
1 January 2016
468
0

Reputation:

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!IwnVPEurGa0ZqhJscJvuZv3UQX4YFQwF0vAa2Sm5OyQ

https://www.virustotal.com/en/file/...a462085ada5573d323ea2678/analysis/1479695237/
 

Arma

Member
15 November 2016
117
0

Reputation:

I personally believe C# still allows for more freedom when coding, even if there is a 0.1 second speed difference.
 

Hype

Emerald
Emerald Upgrade
1 January 2016
468
0

Reputation:

Arma said:
I personally believe C# still allows for more freedom when coding, even if there is a 0.1 second speed difference.
I can do either one, a 0.1 seconds difference doesn't really mean much to me either. It was just a little experiment.
 

Hype

Emerald
Emerald Upgrade
1 January 2016
468
0

Reputation:

SlapThaBox said:
Nice experiment, how long did it take?
Took me almost no time to make the 2 programs. All they do are take an integer (0) and add 1 on a loop until they get to like 50k I believe is the end number, then it outputs the time it took to finish.
 

About Us

Forum Authority is a general discussion forum. We currently have a variety of categories to choose from, where you can participate in discussions. We also have many features such as a powerful credits & awards system, custom upgrades, plugins + more! Here you have the opportunity to meet new people, learn something new, find unique resources & tutorials, win contests & prizes, receive freebies and be given advice or help.

Top