Note | With thanks to Scott Guthrie, the inventor of ASP.NET. |
Here are Scott's top tips for maximizing performance of your ASP.NET applications, plus a few things to watch out for.
In general, ASP.NET pages take longer to respond on the first 'hit' due to the extra instantiation and compilation sequence. However, after they are first compiled, they are faster for all subsequent accesses . Although pages with very little code may provide around the same performance as ASP 3.0 pages, more complex pages are actually a lot faster due to the compilation of the code they contain.
The best benefit/cost ratio for an ASP.NET server is achievable on a two-processor machine. With ADO.NET data access, a four-processor machine can be beneficial, but is far more costly “two to three thousand dollars will buy a good twin-processor server, whereas a four-processor machine is in the twenty thousand dollar price range.