Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which performs best: Classic ASP, ASP.NET WebForms or ASP.NET MVC?

i have recently converted a classic asp application to ASP.NET 3.5, but i feel that my Classic ASP version was a bit faster (i don't know may be buyers remorse).

So can you guys help me with this and let me know which one is faster, asp, asp.net or ASP.NET MVC.

I searched for this question on so and didn't find anything, if you find anything, please point to that question and mark my question as duplicate

Thank you guys.

like image 503
Vamsi Avatar asked Nov 28 '22 18:11

Vamsi


2 Answers

Classic ASP will interpret the script for a page on every page request. ASP.NET will compile the code for the page once. ASP.NET will almost always perform better than classic ASP. ASP.NET MVC is simply a (better?) way to write ASP.NET applications.

Also, in my oppinion the features ASP.NET is far superior to classic ASP. You should be able to spend fewer developer resources on creating a more complex website if you choose ASP.NET.

like image 101
Martin Liversage Avatar answered Dec 06 '22 13:12

Martin Liversage


As ASP uses interpreted code and ASP.NET uses compiled code, ASP.NET is waaaay faster to execute code.

However, this does not automaticaly mean that an ASP.NET application always is faster than an ASP application. A lot of the performance depends on database efficiency and how much data you send between the server and the browser.

When using ASP.NET webforms, it's easy to get a lot of overhead in the viewstate that is send back and forth between the server and browser, which is probably why you don't see much of an improvement in your application.

ASP.NET MVC doesn't have the same form of controls that uses viewstate, so you won't accumulate overhead as easily.

like image 30
Guffa Avatar answered Dec 06 '22 14:12

Guffa