ab - Apache HTTP server benchmarking tool の使い方などです
1クライアント1リクエスト
$ ab www.example.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.example.com (be patient).....done
Server Software: BigIP
Server Hostname: www.example.com
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 1
Time taken for tests: 0.242 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Non-2xx responses: 1
Total transferred: 123 bytes
HTML transferred: 0 bytes
Requests per second: 4.13 [#/sec] (mean)
Time per request: 242.177 [ms] (mean)
Time per request: 242.177 [ms] (mean, across all concurrent requests)
Transfer rate: 0.50 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 242 242 0.0 242 242
Processing: 0 0 0.0 0 0
Waiting: 0 0 0.0 0 0
Total: 242 242 0.0 242 242
総リクエスト数100 同時接続数5
$ ab -n 100 -c 5 example.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking example.com (be patient).....done
Server Software: BigIP
Server Hostname: example.com
Server Port: 80
Document Path: /
Document Length: 0 bytes
Concurrency Level: 5
Time taken for tests: 13.926 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100
Total transferred: 12300 bytes
HTML transferred: 0 bytes
Requests per second: 7.18 [#/sec] (mean)
Time per request: 696.279 [ms] (mean)
Time per request: 139.256 [ms] (mean, across all concurrent requests)
Transfer rate: 0.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 118 682 199.3 773 813
Processing: 0 5 24.0 0 126
Waiting: 0 5 24.1 0 126
Total: 237 687 186.6 773 813
Percentage of the requests served within a certain time (ms)
50% 773
66% 783
75% 787
80% 791
90% 798
95% 807
98% 812
99% 813
100% 813 (longest request)