performance - 衡量应用程序性能的技术

标签 performance concurrency max

我维护的一个应用程序在两年的时间里,由于插入的新用户/新数据量不断需要新硬件才能使用。然而,有时很难证明投资的合理性。

我开始想知道 - 如何确定 Web 应用程序当前支持的最大用户数?

我考虑过使用 JMeter 脚本,但在必须模拟文件传输和决策树时,它们的实现起来确实很麻烦。你们都用什么?

最佳答案

您可以使用此性能算法:

http://i.msdn.microsoft.com/cc500561.fig02_L(en-us).gif

R Response time. The total time from the user requesting a page (by clicking a link, and so on) to when the full page is rendered on the user's computer. Typically measured in seconds. Payload Total bytes sent to the browser, including markup and all resources (such as CSS, JS, and image files).

Bandwidth Rate of transfer to and from the browser. This may be asymmetrical and might represent multiple speeds if a given page is generated from multiple sources. Usually, it is averaged together to create a single bandwidth expressed in bytes per second.

AppTurns The number of resource files a given page needs. These resource files will include CSS, JS, images, and any other files retrieved by the browser in the process of rendering the page. In the equation, the HTML page is accounted for separately by adding in round-trip time (RTT) before the AppTurns expression.

RTT The time it takes to round-trip, regardless of bytes transferred. Every request pays a minimum of one RTT for the page itself. Typically measured in milliseconds.

Concurrent Requests Number of simultaneous requests a browser will make for resource files. By default, Internet Explorer performs two concurrent requests. This setting can be adjusted but rarely is.

Cs Compute time on the server. This is the time it takes for code to run, retrieve data from the database, and compose the response to be sent to the browser. Measured in milliseconds.

Cc Compute time on the client. This is the time it takes for a browser to actually render the HTML on the screen, execute JavaScript, implement CSS rules, and so on.

了解更多详情:

http://msdn.microsoft.com/en-us/magazine/cc500561.aspx

关于performance - 衡量应用程序性能的技术,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/184873/

相关文章:

php - MySQL JOIN 和 MAX

performance - 算法的伪多项式分析

C# - ADO.NET 的一些高性能最佳实践/技巧是什么

perl - 我可以在通过分割有条件地插入散列时避免字符串复制吗?

Android 7 GraphicBuffer 替代方案,用于直接访问 OpenGL 纹理内存

python - 为什么 `max` 和 `min` 与 numpy.nan 有如此奇怪的行为?

c# - 断开连接的 LINQ 使用触发器更新 : rowversion vs. 日期时间?

java - 当不存在共享对象时使用ThreadLocal

java - ScheduledThreadPoolExecutors 和自定义队列

c++ - 在没有 Xcode IDE 的情况下开发 C++