How to do some preformance testing in asp.net mvc?

Posted by chobo2 on Stack Overflow See other posts from Stack Overflow or by chobo2
Published on 2010-05-20T23:10:05Z Indexed on 2010/05/20 23:20 UTC
Read the original article Hit count: 248

Hi

I am using asp.net mvc 2.0 and I want to test how long it takes to do some of my code.

In one senario I do this

  1. load xml file up.
  2. validate xml file and deserailze.
  3. validate all rows in the xml file with more advanced validation that cannot be done in the schema validation.
  4. then I do a bulk insert.

I want to know how long steps 1 to 3 take and how long step 4 takes.

I tried to do like DateTime.UtcNow in areas and subtract them but it told me it took like 3 seconds but I know that is not right as steps 1 to 4 take 2mins to do.

© Stack Overflow or respective owner

Related posts about Performance

Related posts about asp.net-mvc