網站壓力測試

利用Apache 內建的ab.exe來進行測試(Apache\bin 目錄下)

指令:

E:\xampp\apache\bin>ab -n 100 -c 5 http://www.yourweb.com/

代表同時 5 個連線,連續點擊 100 次

結果:

Benchmarking www.yourweb.com (be patient).....done

Server Software:        Microsoft-IIS/8.5
Server Hostname:        www.yourweb.com
Server Port:            80

Document Path:          /
Document Length:        25992 bytes

Concurrency Level:      5
Time taken for tests:   46.813 seconds
Complete requests:      100
Failed requests:        1
(Connect: 1, Receive: 0, Length: 0, Exceptions: 0)
Total transferred:      2630700 bytes
HTML transferred:       2599200 bytes
Requests per second:    2.14 [#/sec] (mean)
Time per request:       2340.625 [ms] (mean)
Time per request:       468.125 [ms] (mean, across all concurrent requests)
Transfer rate:          54.88 [Kbytes/sec] received

Connection Times (ms)
min  mean[+/-sd] median   max
Connect:        0   37 301.0      0    3016
Processing:   266 1964 4304.3    375   21234
Waiting:      250 1905 4318.6    328   21234
Total:        266 2001 4302.6    391   21234

Percentage of the requests served within a certain time (ms)
50%    391
66%    609
75%    844
80%   3297
90%   5422
95%   6563
98%  21188
99%  21234
100%  21234 (longest request)

注意紅色欄位的數值:

  • Failed requests:失敗的要求數(Requests)
  • Requests per second:平均每秒可回應多少要求
  • Time per request:平均每個要求所花費的時間(單位: 豪秒)

參考:
The Will Will Web:http://blog.miniasp.com/post/2008/06/30/Using-ApacheBench-ab-to-to-Web-stress-test.aspx
壓力測試網站:
https://www.blitz.io/
https://loadimpact.com/

與大家分享...
網站壓力測試
Facebook
0網站壓力測試
Google+
0網站壓力測試
Pinterest
0網站壓力測試
email
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *