Behind the veil of Colorado's premier Interactive Agency

DotNet Code Optimization Rob Wilburn

May 29th, 2008

I found a great blog post the other day by Shaun Walker on the performance tuning done for DotNetNuke 4.4.0. It is actually an old post (posted on 12/5/2006) but it is still worth reading.

One of the tools they used to optimize DotNetNuke was ANTS Profiler. ANTS Profiler measures how many times each method is called and how long each execution takes. When you run the profiler on an application you get the following statistics:

  1. The number of times the method ran
  2. The sum of the durations of each execution including child method execution times
  3. The sum of the durations of each execution without child method execution times
  4. The maximum amount of time an individual execution took including child method execution times
  5. The minimum amount of time an individual execution took including child method execution times

I ran the profiler on a web project that has not gone through any optimizations lately and it gave me some great data. I found that most of the time used was taken up by a small percentage of the total methods profiled. If we can half the execution time of the slowest ten methods then the average page load time on the site would drop by 33%. On a slow website this tuning could make a world of difference.

ANTS Profiler isn’t free, unfortunately, but I think the information it can provide is well worth the nominal cost.

ANTS Profiler by Red Gate

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Reddit
  • Slashdot
  • del.icio.us
  • StumbleUpon
  • Netvouz
  • ThisNext
  1. One Response to “DotNet Code Optimization”

  2. By Stephen Chambers on Aug 14, 2008 | Reply

    The Beta of ANTS Profiler 4.0 is now available from the forum. You can download and try it out now. ANTS Profiler has been completely redesigned which introduces a brand new way of profiling using an interactive timeline making the analysis of your results even easier. The profiler is now x5 - x30 times faster than before depending on level of detail.

    http://www.red-gate.com/messageboard/viewforum.php?f=80

    Regards,
    Stephen

Post a Comment