nginx test

[root@memblaze-lyk1 html]# ps -ef |grep nginx
root     19529     1  0 16:47 ?        00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody   19530 19529  0 16:47 ?        00:00:33 nginx: worker process
root     22401  5912  0 17:56 pts/3    00:00:00 grep --color=auto nginx
[root@memblaze-lyk1 html]#


[root@memblaze-lyk3 ~]# ab -kc 1000 -n 10000 -p /tmp/1mfile  -T 'application/x-www-form-urlencoded'   http://40.0.0.1/index.html
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/

Benchmarking 40.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.9.4
Server Hostname:        40.0.0.1
Server Port:            80

Document Path:          /index.html
Document Length:        172 bytes

Concurrency Level:      1000
Time taken for tests:   11.962 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10000
Keep-Alive requests:    10000
Total transferred:      3280000 bytes
Total body sent:        10487610000
HTML transferred:       1720000 bytes
Requests per second:    835.96 [#/sec] (mean)
Time per request:       1196.224 [ms] (mean)
Time per request:       1.196 [ms] (mean, across all concurrent requests)
Transfer rate:          267.77 [Kbytes/sec] received
                        856178.14 kb/s sent
                        856445.91 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   83 295.6      0    2349
Processing:     3 1112 225.6   1136    2345
Waiting:        2 1111 225.5   1135    2343
Total:          3 1196 419.7   1136    3947

Percentage of the requests served within a certain time (ms)
  50%   1136
  66%   1154
  75%   1163
  80%   1173
  90%   1586
  95%   2178
  98%   2561
  99%   2677
 100%   3947 (longest request)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值