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 17:03
下一篇 2016-12-05 17:03

相关推荐

  • 马哥教育网络班21期-第七周课程练习

    第七周作业 1、创建一个10G分区,并格式为ext4文件系统; [root@qq ~]# fdisk /dev/sdb         #使用fdisk命令进行分区; Device contains neither&nb…

    Linux干货 2016-08-08
  • 细数Linux发行版

    什么是Linux 广义上讲:Linux内核+应用程序狭义上讲:Linux内核  > Linux内核指的是我们通常所说的Kernel,主要用于负责系统调用、进程管理、内存管理、文件系统管理等功能。  应用程序指的是由GNU组织提供的开源的、通用的应用程序,如gcc、glibc、vi等。 我们平常所说的Linux,通常指广义层面上的Li…

    Linux干货 2017-08-30
  • 马哥教育网络班21期+第六周课程练习

    第六周作业 1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#; cp /etc/rc.d/rc.sysinit /tmpvim /tmp/rc.sysinit # 命令模式下,输入一下内容:%s@\(^[[:space:]]…

    Linux干货 2016-10-17
  • 使用Storm实现实时大数据分析

    摘要:随着数据体积的越来越大,实时处理成为了许多机构需要面对的首要挑战。Shruthi Kumar和Siddharth Patankar在Dr.Dobb’s上结合了汽车超速监视,为我们演示了使用Storm进行实时大数据分析。CSDN在此编译、整理。 简单和明了,Storm让大数据分析变得轻松加愉快。 当今世界,公司的日常运营经常会生成TB级别的数据。数据来源…

    Linux干货 2015-04-04
  • Linux发行版的基础目录名称、命名法则及功能规定

    Linux发行版的基础目录名称、命名法则及功能规定 / 主层次的根,也是整个文件系统层次结构的根目录  /bin 存放系统的命令。  /boot 存放系统的启动文件,及其内核。  /dev 系统设备文件主目录。  /etc 系统主要配置文件主目录。  /home 普通用户家目录。  /lib 系统库…

    Linux干货 2016-10-31
  • mariadb的主从复制、主主复制、半同步复制

    主从服务器的时间要同步,数据库版本最好是一致的,以免造成函数处理、日志读取、日志解析等发生异常。 以下三个主从复制的设置是独立的。 注意防火墙和selinux的影响。 1、简单主从复制的实现 (1)主服务器的配置 1)安装mariadb-server [root@localhost ~]# yum -y install…

    Linux干货 2016-11-21