1

What is the latest data on ASP.Net MVC performance? How does it scale and perform under heavy load?

I have profiled my ASP.Net MVC 1 application and most of the time is wasted in System.Web.MVC assembly, so I thought it might be a concern.

6
  • 5
    So Runs on MVC 1, seems to fair well :) If you're having performance trouble in MVC 1: your might be more concerned with how your current code is using it rather than the framework itself, it's very lightweight. Commented Apr 10, 2010 at 11:05
  • My code is more lightweight than MVC. MVC uses more time than nHibernate, that's why I'm conserned. Commented Apr 10, 2010 at 11:13
  • How are you measuring this, based strictly on time percentage? If I fire up a for loop and call an MVC function (even the lightest function of almost anything is more expensive than a for) a few thousand times, percentage wise it looks like the framework is a hog...but that's not true, it's the use of the framework that results in the time spent % being skewed. Without knowing how you're measuring it's hard to tell, but MVC being heavier than nHibernate (with more than 1 or 2 queries, e.g. actually doing work) has never been a case I've seen. Commented Apr 10, 2010 at 11:21
  • 1
    I assume you are talking about LINQ2SQL vs. nHibernate. Because that comparison would make more sense to me... Commented Apr 10, 2010 at 20:57
  • 1
    How are you profiling it? Elapsed time or cpu time? What profiler? Commented Apr 11, 2010 at 1:40

3 Answers 3

6

"MVC uses more time than nHibernate"

This can't be true.

Even with a simple select with nHibernate your probably looking at more than 50ms for connection, query translation, query execution, and finally materialization against MSSQL.

A base MVC request against with no logic returns in < 1 ms.

Sign up to request clarification or add additional context in comments.

2 Comments

+1 I support this, according to my experience with MVC and NHibernate, I have never encountered a situation where MVC code is slower than NHibernate. @Heavy Wave: May be some thing more serious is going on in your MVC code!
Yeah, MVC methods were waiting for nHibernate, that's what was going on. Still would be nice to see some data on MVCs performance.
1

In fact this site (stack overflow) is done in asp.net MVC 1. How does it seem speed wise?

Comments

0

We have a high traffic ASP.NET MVC website and it performs well.

Dont worry about the time spent in MVC itself. This will not be an issue.

The main issue I see for even more traffic on our site is that we can only cache complete Actions. But right now this all looks better then expected.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.