Adeel
Adeel

Reputation: 19238

Performance wise Is MVC better than Web Forms in ASP.NET

We are going to develop a website in ASP.NET. So is it better to use MVC or web forms.

Upvotes: 4

Views: 5872

Answers (4)

Raymond
Raymond

Reputation: 609

Personally, I don't think there are big performance gap between asp.net mvc and web form. Because they actually employ the same underlying engine. In most cases, what makes performance a problem is how developers write their code, and the structure of the application. Usually, people tend to compare mvc and web form on the elegance, maintainability. http://weblogs.asp.net/shijuvarghese/archive/2008/07/09/asp-net-mvc-vs-asp-net-web-form.aspx

Upvotes: 2

Brian Behm
Brian Behm

Reputation: 6299

Web Forms and MVC each have their strengths. Web Forms typically has the familiar code-behind style of coding where you hook up a handler for something like a button click and write the code to handle it. MVC has a more separations of concerns style of coding and is generally more unit testable.

It all depends on your coding preferences and time required to deliver the project with respect to learning curves.

I would imagine this question has been answered a million times on this site an many other blogs.

Upvotes: 1

Robert Harvey
Robert Harvey

Reputation: 180898

My completely unscientific opinion: Yes; ASP.NET MVC is faster than web forms.

ASP.NET MVC gives screen pops on the order of 1 to 2 seconds. Web forms is more like 3 to 5 seconds.

I don't know if they switched to ASP.NET MVC when they did the lightweight version of the MSDN library, but the speed improvement is similar to what I described. And let me tell you, the usability improvement is like night and day.

YMMV

Upvotes: 3

Andrew Hare
Andrew Hare

Reputation: 351688

It depends on what kind of site you want to build and your knowledge and experience creating websites.

If you know your stuff and are confident in your ability to work "close to the metal" (as it were) I would imagine that you could build a faster website using ASP.NET MVC since you would be able to optimize your site to have as little overhead as possible. However it is more than possible to build a very fast site using standard ASP.NET as well so it really depends on exactly on the requirements of your project.

Upvotes: 5

Related Questions