-- 1. 安裝壓力測試工具
$ yum install httpd-tools
-- 2. 測試
$ ab -c10 -n50000 http://localhost:8003/
...
Concurrency Level: 10
Time taken for tests: 2.825 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 8050000 bytes
HTML transferred: 650000 bytes
Requests per second: 17697.26 [#/sec] (mean)
Time per request: 0.565 [ms] (mean)
Time per request: 0.057 [ms] (mean, across all concurrent requests)
Transfer rate: 2782.48 [Kbytes/sec] received
...