Apache benchmark
ApacheBench is super simple and typically included with your Apache install, or
as part of the Apache development package—the binary is called simply ab. To use
ab, just specify the total number of requests (-n), and the number of simultaneous
threads (-c), and let it go to work. For example, here we are using –n 10000 –c 40
to create 40 simultaneous threads to perform 1,000 requests:
$ ab -n 10000 -c 40 http://www.test.com/
Connect: 1 6 4.8 4 30
Processing: 62 233 49.6 229 708
Waiting: 62 231 50.1 227 705
Total: 63 239 49.5 235 714
The Connection Times section is very interesting, as it comprises four different
numbers:
Connection: how long it takes the web server to open a connection
Processing: how long the request takes, from the time of connection to the end
of the request
Waiting: how long it takes Apache to process the request and send the full
response
Total: how long the request takes from start to finish
ApacheBench is super simple and typically included with your Apache install, or
as part of the Apache development package—the binary is called simply ab. To use
ab, just specify the total number of requests (-n), and the number of simultaneous
threads (-c), and let it go to work. For example, here we are using –n 10000 –c 40
to create 40 simultaneous threads to perform 1,000 requests:
$ ab -n 10000 -c 40 http://www.test.com/
Connect: 1 6 4.8 4 30
Processing: 62 233 49.6 229 708
Waiting: 62 231 50.1 227 705
Total: 63 239 49.5 235 714
The Connection Times section is very interesting, as it comprises four different
numbers:
Connection: how long it takes the web server to open a connection
Processing: how long the request takes, from the time of connection to the end
of the request
Waiting: how long it takes Apache to process the request and send the full
response
Total: how long the request takes from start to finish
No comments:
Post a Comment