is “ab” or “httperf” better for checking performance of a website?

前端 未结 2 1879
感情败类
感情败类 2021-02-01 09:02

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

相关标签:
2条回答
  • 2021-02-01 09:09

    I found it was a bit of a mission to find useful documentation on httperf but there's a good (if you like screencasts) peepcode screencast that got me going with it.

    I haven't used ab mind but I found that httperf seemed to work quite well once I figured out how to use it.

    UPDATE: The link is now at pluralsight and you need a subscription or use their 10 days free trial.

    0 讨论(0)
  • 2021-02-01 09:33

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

    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.

    0 讨论(0)
提交回复
热议问题