Hi Adeel,
My name is Allen Chen. It's my pleasure to work with you on this issue.
From your description you want to know the performance difference between
Web Site and Web Application.
Based on my experience, given a Web Site ("allow this precompiled site to
be updatable" is checked when publishing web site) and a Web Application,
if their codes are same the performance almost has no difference.
If the "allow this precompiled site to be updatable" is unchecked all the
code will be compiled in the assembly after publishing. In this case the
drawback is that we lose the flexibility to edit code without recompilation
after publishing but get some performance elevation for the first request
to the page since the code has all been compiled into the assembly after
publishing the web site.
Therefore, comparing to a non precompiled Web Application, a Web Site has
better performance only if it is precompiled or "allow this precompiled
site to be updatable" is checked. And performance elevation is only for the
first request to the page. Any subsequent requests should has same
performance.
If we precompile the Web Application, I believe its startup performance
should be identical with Web Site.
http://msdn.microsoft.com/en-us/library/ms227972.aspx
If what you observed is, the performance of Web Application is not so well
even on the second request to the page, I would guess code of your Web
Application is not the same as the Web Site's.
Hope my reply can provide some assistance and please feel free to ask if
you have additional questions.
Regards,
Allen Chen
Microsoft Online Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.