views:

201

answers:

1

A colleague of mine ran a simple load test using VS2010 on a Webforms project and an Asp.net MVC project and noticed that Webforms was serving around 83 requests per second whereas Asp.net MVC was serving 28 requests per second. Both the sites were published on the same server with similar settings.
Webforms project had 10 pages 5 of them displayed simple text messages using labels and the other 5 had text box controls. Similar functionality was built into the Asp.net MVC site so that the output is the same as the Webforms pages. Tests were run with both constant load and incremental load with similar results.
I am a little surprised with the results. Does anyone know why MVC is slower that Webforms? Thanks!

A: 

Hmm. Without much info to go on, perhaps you should instrument your code to see what's taking a while and/or the difference between Web Forms and MVC.

You might use some aspect oriented programming techniques to remove the burden of all those logging commands.

Here's one such framework:

http://code.google.com/p/postsharp-user-plugins/wiki/Log4PostSharp

AndrewDotHay