我正在尝试使用各种基准测试工具来测试我正在开发的网站,发现Apache Bench
(ab)是一个非常适合进行负载测试的工具。它是一个命令行工具,而且非常容易使用。不过我对其中两个基本标志存在疑问。我阅读的网站上说:
Suppose we want to see how fast Yahoo can handle 100 requests, with a maximum of 10 requests running concurrently:
ab -n 100 -c 10 http://www.yahoo.com/
并且标志的解释如下:
Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make
我想我只是无法理解要执行的请求数
和要进行的多个请求数
。当我像上面的例子一样同时给出它们时会发生什么?
有人能给我一个更简单的解释,说明这两个标志在一起做了什么吗?