开发者

Measuring debug vs release of ASP.NET applications

开发者 https://www.devze.com 2022-12-29 16:53 出处:网络
Which has the biggest impact? Building ASP.NET applications in release vs debug mode Setting <compilation debug=\"true\"> in web.config

Which has the biggest impact?

  • Building ASP.NET applications in release vs debug mode
  • Setting <compilation debug="true"> in web.config

Has anyone done any testing to get actual numbers about what the differences are, considering performance and memory usage? (Perhaps other metrics are u开发者_运维知识库seful as well?)

For example, something like:

Execution time     | Debug build   | Release build
-------------------+---------------+---------------
Debug web.config   | average 1     | average 2
Retail web.config  | average 3     | average 4


Max memory usage   | Debug build   | Release build
-------------------+---------------+---------------
Debug web.config   | average 1     | average 2
Retail web.config  | average 3     | average 4


Output file size   | Debug build   | Release build
-------------------+---------------+---------------
                   | size    1     | size 2


Here is an article that explains the drawbacks.

http://www.aspnetresources.com/articles/debug_code_in_production.aspx

In my opinion it seems to affect 'web site' applications more than 'web project' application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号