Home  >  Article  >  Backend Development  >  nginx stand-alone 10,000 concurrent test

nginx stand-alone 10,000 concurrent test

WBOY
WBOYOriginal
2016-08-08 09:27:352126browse

测试机型 DELL R720  16GB内存

ab -c 1000 -n 50000 http://192.168.2.179/

Benchmarking 192.168.2.179 (be patient)

Completed 5000 requests

Completed 10000 requests

Completed 15000 requests

Completed 20000 requests

Completed 25000 requests

Completed 30000 requests

Completed 35000 requests

Completed 40000 requests

Completed 45000 requests

Completed 50000 requests

Finished 50000 requests

Server Software:        nginx

Server Hostname:        192.168.2.179

Server Port:            80

Document Path:          /

Document Length:        6 bytes

Concurrency Level:      1000

Time taken for tests:   2.462 seconds

Complete requests:      50000

Failed requests:        0

Write errors:           0

Total transferred:      11443548 bytes

HTML transferred:       301146 bytes

Requests per second:    20304.98 [#/sec] (mean)

Time per request:       49.249 [ms] (mean)

Time per request:       0.049 [ms] (mean, across all concurrent requests)

Transfer rate:          4538.30 [Kbytes/sec] received

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0   22  75.4     17    1021

Processing:     2   26  16.7     20     261

Waiting:        2   23  17.6     17     261

Total:          4   48  75.8     39    1068

Percentage of the requests served within a certain time (ms)

  50%     39

  66%     43

  75%     48

  80%     53

  90%     63

  95%     68

  98%     71

  99%     82

 100%   1068 (longest request)


ab -c 5000 -n 100000 http://192.168.2.179/

Benchmarking 192.168.2.179 (be patient)

Completed 10000 requests

Completed 20000 requests

Completed 30000 requests

Completed 40000 requests

Completed 50000 requests

Completed 60000 requests

Completed 70000 requests

Completed 80000 requests

Completed 90000 requests

Completed 100000 requests

Finished 100000 requests

Server Software:        nginx

Server Hostname:        192.168.2.179

Server Port:            80

Document Path:          /

Document Length:        6 bytes

Concurrency Level:      5000

Time taken for tests:   6.256 seconds

Complete requests:      100000

Failed requests:        0

Write errors:           0

Total transferred:      23220204 bytes

HTML transferred:       611058 bytes

Requests per second:    15984.00 [#/sec] (mean)

Time per request:       312.813 [ms] (mean)

Time per request:       0.063 [ms] (mean, across all concurrent requests)

Transfer rate:          3624.53 [Kbytes/sec] received

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0  141 157.6    122    1136

Processing:    26  162  55.4    151     565

Waiting:       25  124  54.0    109     517

Total:         41  303 164.6    272    1362

Percentage of the requests served within a certain time (ms)

  50%    272

  66%    293

  75%    303

  80%    308

  90%    321

  95%    339

  98%   1263

  99%   1300

 100%   1362 (longest request)


ab -c 10000 -n 100000 http://192.168.2.179/

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 192.168.2.179 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software:        nginx
Server Hostname:        192.168.2.179
Server Port:            80
Document Path:          /
Document Length:        6 bytes
Concurrency Level:      10000
Time taken for tests:   6.788 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Total transferred:      23125812 bytes
HTML transferred:       608574 bytes
Requests per second:    14731.20 [#/sec] (mean)
Time per request:       678.831 [ms] (mean)
Time per request:       0.068 [ms] (mean, across all concurrent requests)
Transfer rate:          3326.86 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  334 288.5    265    1299
Processing:     5  319 104.9    304     832
Waiting:        3  249  90.7    234     762
Total:          7  653 314.4    580    1835
Percentage of the requests served within a certain time (ms)
  50%    580
  66%    607
  75%    640
  80%    674
  90%    800
  95%   1571
  98%   1683
  99%   1818
 100%   1835 (longest request)


 webbench -c 10000 -t 120 http://192.168.2.179/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.2.179/
10000 clients, running 120 sec.
Speed=1415643 pages/min, 5108344 bytes/sec.
Requests: 2688602 susceed, 142684 failed.


以上就介绍了nginx单机1万并发测试,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn