AB测试命令

[root@chuangyuegou ~]# ab -n 10000 -c 49 http://192.168.0.99/index.html

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.0.99 (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:        Apache/2.4.10     //服务器版本

Server Hostname:        192.168.0.99   //地址

Server Port:            80 //端口

 

Document Path:          /index.html  //位置

Document Length:        208 bytes //文档大小

 

Concurrency Level:      49 //并发量

Time taken for tests:   1.438 seconds //测试持续时间

Complete requests:      10000 //总访问量

Failed requests:        0 //失败的请求数

Write errors:           0 //写错误数

Non-2xx responses:      10000 //成功访问量

Total transferred:      3970000 bytes //网络传输量

HTML transferred:       2080000 bytes //html内容传输量

Requests per second:    6952.52 [#/sec] (mean) //吞吐量,每秒事务数

Time per request:       7.048 [ms] (mean) //用户平均请求等待时间

Time per request:       0.144 [ms] (mean, across all concurrent requests) //服务器平均请求等待时间

Transfer rate:          2695.46 [Kbytes/sec] received 平均每秒网络流量

 

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    1   0.6      1       7

Processing:     4    6   0.8      6      13

Waiting:        0    5   0.9      5      12

Total:          4    7   0.9      7      19

 

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

  50%      7   // 50%的处理时间在7ms

  66%      7 //66%的处理时间在7ms

  75%      7 .

  80%      7 .

  90%      7 .

  95%      9 .

  98%      9 .

  99%     10 //99%的处理时间在10ms

 100%     19 (longest request)

原创文章,作者:luobocai,如若转载,请注明出处:http://www.178linux.com/49662

(0)
luobocailuobocai
上一篇 2016-12-05
下一篇 2016-12-05

相关推荐

  • linux筛选数据和用户基本操作

    linux筛选数据的基本操作 列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。   [root@localhost script]# who   chenjianhang tty1      …

    Linux干货 2016-10-17
  • openssl&openssh

    安全和加密 不加密流量的易受攻击性       密码/数据嗅探       数据操作       验证操作       相当于邮寄明信片 不安全的传统协议       telnet、FTP、POP3等等;不安全…

    Linux干货 2016-09-26
  • N22-妙手-第四周博客作业

    1、复制/etc/skel目录为/home/tuser1,要求/home/tuser1及其内部文件的属组和其它用户均没有任何访问权限。 [root@localhost ~]# cp -r /etc/skel /home/tuser1 [root@localhost ~]# chmod&nb…

    Linux干货 2016-09-05
  • 第一周记录

    列出Linux的发行版,描述不同发行版之间的联系与区别。    发行版多达100多种,其中主要的有Debian旗下的Ubuntu、knopix,Slackware旗下的S.u.S.E,RedHat公司旗下的RedHat、CentOS、Fedora。其中各个版本之间的区别:包管理器的区别;但其内核都是Linux内核。 ifconfig: 查…

    Linux干货 2016-08-15
  • httpd-2.4 功能生动实现 (Blog 13)

    CentOS 7 与 CentOS 6 访问控制区别、虚拟主机

    2017-12-01
  • 8.9作业

    删除/etc/grub2.conf文件中所有以空白开头的行,行首的空白字符 [root@English6 ~]# sed "s@^[[:space:]]\+@@" /etc/grub.conf  # grub.conf generated by an…

    Linux干货 2016-08-11