简体   繁体   English

测量ASP.NET应用程序的调试与发布

[英]Measuring debug vs release of ASP.NET applications

Which has the biggest impact? 哪个影响最大?

  • Building ASP.NET applications in release vs debug mode 在发布与调试模式下构建ASP.NET应用程序
  • Setting <compilation debug="true"> in web.config 在web.config中设置<compilation debug="true">

Has anyone done any testing to get actual numbers about what the differences are, considering performance and memory usage? 考虑到性能和内存使用情况,是否有人进行过测试以获取有关差异的实际数字? (Perhaps other metrics are useful 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 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. 在我看来,这似乎比“ Web项目”应用程序对“网站”应用程序的影响更大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM