是“ab"或“httperf"更适合检查网站的性能? [英] is "ab" or "httperf" better for checking performance of a website?

查看:47
本文介绍了是“ab"或“httperf"更适合检查网站的性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我知道ab"和httperf",它们都可以检查网站的性能.一个比另一个更好吗?

so far i know of "ab" and "httperf", both can check the performance of a website. is one better than the other?

推荐答案

嗯,这确实取决于您要检查的内容,但我自己总是使用 httperf.

Well, it does depend a bit on what you want to check, but I always use httperf myself.

关键的区别在于,httperf 尝试以给定的速度发送连续的请求流,而不管它们是否得到响应.这不仅可以显示您的 Web 服务器的最大负载是多少,而且更重要的是,它可以显示过载时的行为.许多应用程序都有一个不幸的特性,即随着提供的负载超过服务器的处理能力,性能会迅速下降:即,当每秒提供 100 个请求时,它可以处理其中的 80 个,而当提供每秒 150 个请求时,它可以处理只有 10 个.

The key difference is that httperf attempts to send a continuous stream of requests at a given speed regardless of whether they are answered or not. This can show you not only what your web server's maximum load is, but more importantly, its behaviour when overloaded. Many applications have the unfortunate characteristic of performance that falls off rapidly as the offered load goes higher than the server can handle: i.e., when offered 100 requests per second, it can handle 80 of them, and when offered 150 requests per second it can handle only 10 of them.

这篇关于是“ab"或“httperf"更适合检查网站的性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆