Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 958
Adeel Avatar asked Dec 22 '22 07:12

Adeel


2 Answers

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.

like image 133
Andrew Hare Avatar answered Jan 11 '23 07:01

Andrew Hare


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

like image 31
Robert Harvey Avatar answered Jan 11 '23 08:01

Robert Harvey