upstream ht-server { server 0.0.0.0:3004; server 0.0.0.0:3001; server 0.0.0.0:3002; server 0.0.0.0:3003; } server { listen 80;#监听端口 #server_name 192.168.1.30;#域名 index index.html index.htm index.php; root /usr/local/webserver/nginx/pages;#站点目录
This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Concurrency Level: 1000 Time taken for tests: 10.566 seconds Complete requests: 20000 Failed requests: 0 Write errors: 0 Total transferred: 19960000 bytes HTML transferred: 13840000 bytes Requests per second: 1892.92 [#/sec] (mean) Time per request: 528.283 [ms] (mean) Time per request: 0.528 [ms] (mean, across all concurrent requests) Transfer rate: 1844.86 [Kbytes/sec] received
Connection Times (ms) min mean[+/-sd] median max Connect: 0 7 14.0 0 73 Processing: 1 508 377.1 481 1492 Waiting: 0 506 376.9 478 1492 Total: 1 515 376.3 487 1492 Percentage of the requests served within a certain time (ms) 50% 487 66% 677 75% 793 80% 922 90% 1021 95% 1142 98% 1327 99% 1386 100% 1492 (longest request)