[Hot Discussion] VB.NET vs. C#.NET by performance

Which one have the much better performance?

Which one is the best?
Parco Lee
Owner + Webmaster + System Engineer + Professional Programmer

SoftDweller Lab (a software laboratory)
A professional laboratory for new technology softwares developing by .NET.

3/9/2004 6:49:28 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

9 Replies

Similar Articles

[PageSpeed] 14
Get it on Google Play
Get it on Apple App Store

Hmmm, the discussion doesn't appear very hot.

By the way, the answer is its all personal taste,
give or take a few things that aren't important.
Thanks, Paul Wilson, ASPInsider, MC**

For the best .NET code, examples, and tools, visit:
WilsonDotNet.com, WilsonWebPortal.com, ORMapper.net
3/10/2004 3:38:53 AM
I'd think that VB.net written with Option Strict On would give much the same performance as C# since you're compiling to much the same MSIL.

What will slow down performance in VB though is using Option Strict off, this allows you to have things like late binding and integer arithmetic on objects of unspecified type, so you'll be having a lot of work (boxing and unboxing, late binding, type conversion etc) happening at runtime that otherwise be put into your code at compile time. Yes it saves you a bit of typing, but it slows down your code.
3/10/2004 10:28:33 AM
Neither is Cobol.net is much faster than both.

Sorry couldn't resist. The Common Language Runtime uses IL. How you create the IL should be unimportant in terms of performance. Granted each language may steer you into writing code a certain way but you can write rubbish code in any language. Personally I've spent the last 10 years writing VB code and I've found C# easier than VB.net. But like others have said, its a personal choice. Having said that there are some things you can't do in each langauge. For example you can have different visibility of accessors on the same property in c# but you can in vb.net (although that's changing in the next version).
3/13/2004 10:53:45 AM
::The Common Language Runtime uses IL. How you create the IL should be unimportant in 

::terms of performance.
Interestingly enough, this simply is not true.
If you want performance, use Managed C++ - it ALSO emits IL, but somehow the C++ compiler - emits less and better optimized IL.
he language CAN do a difference, depending on how good the compiler is. And there ARE differences.
Thomas Tomiczek
PowerNodes ApS
(Microsoft MVP C#/.NET)
Building a Website? Try the PowerNodes CMS - http://www.powernodes.com/
3/15/2004 4:06:17 AM
I'm not disputing your claim, but could you give some examples? Afterall the bulk of what you do uses the common framework. I'm interested cause that could have a real impact on the project I'm about to start.
3/15/2004 8:22:12 AM
If you want performance, use Managed C++ - it ALSO emits IL, but somehow the C++ compiler - emits less and better optimized IL.

The C++ compiler actually produces native code. It does emit MSIL as well but I think this is a case of "as well as" rather than "instead of". You can compile to native code only using the /clr:noassembly command line option.
3/16/2004 9:33:58 AM
Isn't that the same as pre-compiling any IL, i.e you skip the JIT phase - NGEN is it?

3/16/2004 11:18:07 AM
Not quite. The compiler can produce more tightly optimised code if it compiles directly to native code rather than IL.
3/16/2004 11:44:57 AM
Huh, interesting. I suppose the Microsoft defence for not doing that is you don't always know the spec of machine you're deploying to. So compiling to the target machine early on might produce far worse performance. Still, I have to say that for the majority (if not all) of the projects I work on, I know what machine it's going on. But then they'd have to call us back every time they upgraded their kit...I'm beginning to see a revenue stream here!! ;)

3/16/2004 12:47:00 PM

Similar Artilces:

vb.net vs c#.net vs j#.net
just out of curiousity which looks, acts most like java? i'm still learning trying to used to vb.net but it seems that it was easier to do some stuff with java. C# is Java++ in my opinion. If you have done C or Jave you will prefer C#.Mike Schellenberger - MCAD If you are looking for language similar to java go for J#. However most code samples you find on the net will be in VB.NET and C#....

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

C#.NET in VS.NET vs. C# in Web Matrix
Hi all, I am very new to .NET ... I realized C#.NET is only available from Visual Studio.NET ... however, I realized Web Matrix also allowed us to choose C# as language but not C#.NET ... they are not the same, right? If not, then why it's in Web Matrix which runs ASP.NET?? If I need to run C#.Net, I MUST GET VS.NET, right? Can C#.NET has the abality to create chat program? Thank you very much. C#.NET and C# are the same thing. JimMS MVP ASP.NET [VC++/MFC emeritus]Old Dog Learns New TricksPreferred programming language: cuneiform on clay tablets So ... that means I can use web matrix t...

use VB.NET and C#.NET code in the same C#.NET project
All-- Here is a sample that is "off the beaten path", (at least for me). Is it possible, in an ASP.NET application, using the code-behind page building technique, to have both pages written in VB.NET and pages written C#.NET?At http://www.WebLogicArts.com/DemoList.aspx there is a sample that shows that, (contrary to popular belief), it IS possible to mix ASP.NET pages built with C#.NET with ASP.NET pages built with VB.NET in the same VS.NET 2003 project. Note that this is just a "fun" sample to see if it can be done and I do not recommend this practice as a "standard" way of develo...

converting to vb.net from c#.net authorize.net
authorize.net offered me some sample code when I signed up with them the only problem is the sample code is in c#.net but my page that they type all of their credit card into is vb.net <code><%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { myPage.Text = readHtmlPage("https://certification.authorize.net/gateway/transact.dll"); } private String readHtmlPage(string url) { ...

.Net 2.0 Web application using Vb.net is unable to create object of another dll writen in C# .net 2.0
Hi, I habe created one ASP.net web application using Vb.net which is adding reference of dlls written in C# and .net 2.0. But whenever trying to create object of referencing dll, it is throwing error :Object reference does not set to an object. But, locally it is working fine,. In the server i have deployed the .aspx files and dll files in the bin. There were already an web.config in the server which is of .net 1.1. But checked it is retrieving value for that web.config correctly. Should i have to deply any other files and if not what can be the solution for this? Please help. Thanks, So...

VB.Net To C#.Net
Hello... Since Last from 1 year i had develope web application in using vb.net now i want to transfer from vb.net to c#.net so what should i do to transform to c# language any link or book related to me through i can easily understand and coding using c# in a short time... Thanks~ Mark As Answer If UseFull ~Kaushal. Hi, you can read the specifications of the language. You're already familiar with .NET and how to program in an OO manner thanks to your experience with vb.net. The only thing you need to learn is the new syntax of C#. You can also convert parts of your v...

vb .net or c# .net
I currently develop websites using php but have been requested to develop a site using asp.net. The question I have is for someone who knows php would it be better to transition to vb.net or c#.net? Thanks, Fr. Robert C# -> There is a converter that will transition about 60% or more of your PHP code to C#. Plus C# is closer to PHP than VB.NET.Jason N. GaylordASPInsider and Microsoft MVPhttp://jasongaylord.com...

what lang does everyone prefer? Thanks, Peter Iuvara, MCP It's a very famous debatable question in forums! I would say if you are from Java/C/C++, then C# would be easy to use for you. If you are from ASP/VB, then VB.NET would be easy for you! As long as if you follow CLS, then what ever the language you use, it's going to be the same for CLR!Sreedharhttp://www.w3coder.orgweblog http://weblogs.asp.net/skoganti I would agree with that ... just curious as to what user's on this forum predominantly code in?Thanks, Peter Iuvara, MCP I came from no real programming background, started i...

True OOPS c#.net vs vb.net
Hi, Can i get the comparison between c#.net vs vb.net on the basis of supported object oriented feature. Which one supports more features of OOPS. They both support the same features since they are both based off the same IL code.  You will see no difference between the two.  Hope this helps.P.S.  By using the term "C#.NET" is a dead give away that you are new to the language.  Because C#.NET is a redundant term since C# is only available for the .NET Framework. View My Blog Download My URL Rewriter and Reverse ProxyOnly $9.95/month, ASP.NET, 2GB & SQL 2005 ...

Both C# ASPX pages and VB.NET ASPX in single VB.NET Web Applcation Template
Hi.. Is it possible to have both c# pages and VB pages in same Webapplication, what i chose is VB.NET Web application Template. With Thanks, Jaya.... I don't see why you couldn't, but for the sake of consistency I don't know why you would want to do this. When you choose a C# or VB.NET application template(I'm assuming you're using VS or WebMatrix), it simply creates a .aspx file that includes a page directive that specifies the page language. If you created a C# template but want to use VB.Net instead, you need to go from: <%@ Page Language="C#" .... to...

VB.NET vs. C#.NET Behavior of Visual Studio
I'm transitioning from coding in VB to coding in C#. Maybe I have something set wrong, but a behavioral difference is driving me bananas. When I edit a VB source file, the two drop-downs at the top of the edit view are Class Name and Method Name, and it makes it easy to add a new event handler for any of the controls on the page. Choose which one on the left, pick your event on the right, and VS inserts an empty, properly formatted subroutine. In C# mode, however, those two drop-downs are labeled Types and Members, and there doesn't appear to be a way to tell it to create the empty framew...

VB.NET Standard vs VS.NET Professional
Hello, I've been using the Trail Version of Visual Studio .NET Professional Edition 2003 and I now need to ask my Boss to buy the Full Version. I'm going to be developing ASP.NET Web Applications that are Data-driven with SQL Server 7.0 and 2000. I'm only going to need Visual Basic for coding my applications. My Question is what version of Visual Studio .NET should I buy??? Since I'm only going to be using Visual Basic should I buy Visual Basic .NET Standard 2003???? or stick with Visual Studio .NET Professional Edition 2003 (bearing in mind is about 10x more expensive). Obvio...

How To Convert c#2005.net web template to vb2005.net Forms Template
I need  Convert c#2005.net web template to vb2005.net Forms Template   There are some free c# to vb converters out there which will allow you to upload a project and convert it to vb.   The programming models for windows forms and web projects are very different there is no way to convert a web to windows forms project.   http://www.carlosag.net/Tools/CodeTranslator/Default.aspx      Silverlight-helpVb TipsSpace Coast .Net User Group Hey Ajax-y, This tool really helps all programmers. I thought I would share this wit...

Web resources about - [Hot Discussion] VB.NET vs. C#.NET by performance - asp.net.web-forms

Wikipedia:Arguments to avoid in adminship discussions - Wikipedia, the free encyclopedia
This is intended as a guide to getting the most out of the request for adminship (RfA) procedure. It is not intended to be binding policy, nor ...

‘Rush’ Director Ron Howard, Star Chris Hemsworth To Participate In Live Interactive Discussion On Facebook ...
Rush director Ron Howard and star Chris Hemsworth will partake in a live interactive discussion on the film’s Facebook page this Sunday at 4:35 ...

Ms. Magazine - "Hobson sparks a discussion among other pop... - Facebook
"Hobson sparks a discussion among other pop culture critics about female empowerment, combining feminism and 'traditional' roles, and the 'politics ...

[...] Discussion in Facebook Groups and Pages is Public and Searchable, Inside Facebook [...]
While discussion on Facebook Pages has always been publicly accessible to the world and indexed by search engines like Google, wall posts and ...

Front - The best stories and discussions in Kinja
The best stories and discussions in Kinja

Through The Fence Baseball - Baseball news, discussion, rumors, and stats from around MLB.
The 2013 MLB draft is a little less than three months away. With the college season in full swing, and the high school season just starting out ...

Neuromarketing Expert Discussion Group - Conflict-Free
Counter the biggest LI neuromarketing group, this group is strictly business conflict-free and agnostic about methodologies and technologies. ...

#Techonomy2015 discussion at minute 20 in the video: http://techonomy.com/conf/te15/videos-human-val ...
jurvetson posted a photo: Are we optimizing the future? The Techonomy2015 discussion with Jaron Lanier and Sir Colin Blakemore. We begin the ...

Malcolm Turnbull should shut down the discussion about raising GST
A change of leader plus the upcoming summer break make it a good time to dump unsuitable policies - like the proposal to increase the rate of ...

Radicalisation: the tone of Muslim community discussion must change
Young Muslims can be sucked into extremism without their realising it.

Resources last updated: 12/3/2015 9:01:04 PM