网站并发性能测试

E:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 10 http://www.abc.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.abc.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        nginx/0.8.54
Server Hostname:        www.abc.com
Server Port:            80

Document Path:          /
Document Length:        221 bytes

Concurrency Level:      10
Time taken for tests:   14.344 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      680000 bytes
HTML transferred:       221000 bytes
Requests per second:    69.72 [#/sec] (mean)
Time per request:       143.438 [ms] (mean)
Time per request:       14.344 [ms] (mean, across all concurrent requests)
Transfer rate:          46.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3   6.4      0      16
Processing:    16  139  14.4    141     188
Waiting:        0   72  38.3     78     172
Total:         16  143  14.7    141     188

Percentage of the requests served within a certain time (ms)
  50%    141
  66%    141
  75%    141
  80%    156
  90%    156
  95%    172
  98%    172
  99%    188
100%    188 (longest request)


E:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 50 http://www.abc.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.abc.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        nginx/0.8.54
Server Hostname:        www.abc.com
Server Port:            80

Document Path:          /
Document Length:        221 bytes

Concurrency Level:      50
Time taken for tests:   15.094 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      680000 bytes
HTML transferred:       221000 bytes
Requests per second:    66.25 [#/sec] (mean)
Time per request:       754.688 [ms] (mean)
Time per request:       15.094 [ms] (mean, across all concurrent requests)
Transfer rate:          44.00 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   3.0      0      16
Processing:    16  734  96.9    766     781
Waiting:        0  371 214.7    375     766
Total:         16  735  96.8    766     781

Percentage of the requests served within a certain time (ms)
  50%    766
  66%    766
  75%    766
  80%    766
  90%    781
  95%    781
  98%    781
  99%    781
100%    781 (longest request)


E:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 100 http://www.abc.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.abc.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        nginx/0.8.54
Server Hostname:        www.abc.com
Server Port:            80

Document Path:          /
Document Length:        221 bytes

Concurrency Level:      100
Time taken for tests:   22.547 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      680000 bytes
HTML transferred:       221000 bytes
Requests per second:    44.35 [#/sec] (mean)
Time per request:       2254.688 [ms] (mean)
Time per request:       22.547 [ms] (mean, across all concurrent requests)
Transfer rate:          29.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    9 129.9      0    2938
Processing:    31 1932 1198.5   1453    4375
Waiting:       16 1117 1132.0    797    4313
Total:         31 1941 1201.8   1453    4375

Percentage of the requests served within a certain time (ms)
  50%   1453
  66%   1469
  75%   1484
  80%   3891
  90%   4328
  95%   4344
  98%   4359
  99%   4359
100%   4375 (longest request)


杭州社区购物网

你可能感兴趣的:(apache,tomcat,nginx,ab)