• <legend id='yBVgD'><style id='yBVgD'><dir id='yBVgD'><q id='yBVgD'></q></dir></style></legend>

    <small id='yBVgD'></small><noframes id='yBVgD'>

    <i id='yBVgD'><tr id='yBVgD'><dt id='yBVgD'><q id='yBVgD'><span id='yBVgD'><b id='yBVgD'><form id='yBVgD'><ins id='yBVgD'></ins><ul id='yBVgD'></ul><sub id='yBVgD'></sub></form><legend id='yBVgD'></legend><bdo id='yBVgD'><pre id='yBVgD'><center id='yBVgD'></center></pre></bdo></b><th id='yBVgD'></th></span></q></dt></tr></i><div id='yBVgD'><tfoot id='yBVgD'></tfoot><dl id='yBVgD'><fieldset id='yBVgD'></fieldset></dl></div>
        <tfoot id='yBVgD'></tfoot>

          <bdo id='yBVgD'></bdo><ul id='yBVgD'></ul>

        有哪些方法可以找到 Web 应用程序中的瓶颈?

        时间:2023-10-03
          <tbody id='EZhkE'></tbody>

              <small id='EZhkE'></small><noframes id='EZhkE'>

            1. <i id='EZhkE'><tr id='EZhkE'><dt id='EZhkE'><q id='EZhkE'><span id='EZhkE'><b id='EZhkE'><form id='EZhkE'><ins id='EZhkE'></ins><ul id='EZhkE'></ul><sub id='EZhkE'></sub></form><legend id='EZhkE'></legend><bdo id='EZhkE'><pre id='EZhkE'><center id='EZhkE'></center></pre></bdo></b><th id='EZhkE'></th></span></q></dt></tr></i><div id='EZhkE'><tfoot id='EZhkE'></tfoot><dl id='EZhkE'><fieldset id='EZhkE'></fieldset></dl></div>
              <legend id='EZhkE'><style id='EZhkE'><dir id='EZhkE'><q id='EZhkE'></q></dir></style></legend>

                <bdo id='EZhkE'></bdo><ul id='EZhkE'></ul>

                  <tfoot id='EZhkE'></tfoot>
                1. 本文介绍了有哪些方法可以找到 Web 应用程序中的瓶颈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  如何对网络应用程序的性能进行基准测试?

                  How do I benchmark the performance of my web applications?

                  有没有办法找出网络应用程序中的瓶颈?

                  Is there a way to find out the bottlenecks in a web application?

                  我不是在询问任何前端调整,如图像、CSS 等.我想知道的是如何分析应用程序的后端,以便我知道要修改哪些方法/查询以提高性能.

                  I am not asking about any front end tweaks like images, css etc. What I want to know is how to profile the back end of the application so that I will know which methods/queries to modify to increase the performance.

                  推荐答案

                  关于应用服务器上的瓶颈,您可以使用 分析工具,用于查看代码的每个部分花费了多少时间、使用了多少内存等.对于 PHP,webgrind 似乎是一种流行的基于 GUI 的分析方式.像 dotTrace 之类的东西会对 ASP.NET 应用程序做同样的事情.请注意,当涉及到数据库时,像这样的分析工具只会显示哪些数据库查询很慢——而不是为什么它们很慢.为此,您需要查看特定于数据库的分析...

                  Regarding bottlenecks on the application server, you can use a profiling tool to see how much time is spent in each part of your code, how much memory is used, etc. For PHP, webgrind seems to be a popular, GUI-based way of profiling. Something like dotTrace would do the same thing for an ASP.NET app. Note that when it comes to databases, profiling tools like this will only show you which database queries are slow--not why they are slow. For that, you'd need to look into database-specific profiling...

                  Web 应用程序瓶颈的另一个方面是浏览器下载所有内容(CSS 和 JavaScript 导入、图像等)并呈现页面实际需要多长时间.有几家公司,例如 Keynote,他们的机器人会从世界各地访问您的网站,分析性能,并向您提供有关更改的建议,以使您的应用输出到浏览器并尽快呈现(例如,使用 gzip 压缩并将您的 JavaScript 放在页面的末尾而不是头部"等).当然,您也可以在更小规模的情况下自行完成此操作.例如,像 Jiffy 和 YSlow 将完成这项工作.

                  Another aspect of web app bottlenecks is how much time it actually takes a browser to downlad everything (CSS and JavaScript imports, images, etc.) and render the page. There are several companies like Keynote who have bots that will hit your site from all around the world, analyze the performance, and give you recommendations about changes you can make to get the output of your app to the browser and rendered as quickly as possible (e.g., "use gzip compression and put your JavaScript at the end of the page instead of the head", etc.). You can also do this yourslelf on a much smaller scale, of course. For example, Firefox plug-ins like Jiffy and YSlow will do the job.

                  这篇关于有哪些方法可以找到 Web 应用程序中的瓶颈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:XML 解析错误:找不到根元素位置 下一篇:如何在 Web 应用程序中使用条码扫描仪

                  相关文章

                  最新文章

                  <legend id='FStjz'><style id='FStjz'><dir id='FStjz'><q id='FStjz'></q></dir></style></legend>

                2. <tfoot id='FStjz'></tfoot>

                  • <bdo id='FStjz'></bdo><ul id='FStjz'></ul>
                  <i id='FStjz'><tr id='FStjz'><dt id='FStjz'><q id='FStjz'><span id='FStjz'><b id='FStjz'><form id='FStjz'><ins id='FStjz'></ins><ul id='FStjz'></ul><sub id='FStjz'></sub></form><legend id='FStjz'></legend><bdo id='FStjz'><pre id='FStjz'><center id='FStjz'></center></pre></bdo></b><th id='FStjz'></th></span></q></dt></tr></i><div id='FStjz'><tfoot id='FStjz'></tfoot><dl id='FStjz'><fieldset id='FStjz'></fieldset></dl></div>

                    1. <small id='FStjz'></small><noframes id='FStjz'>