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

相关推荐

  • N26-第四周博客

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

    系统运维 2017-02-08
  • N22-第一周练习作业-冥界之王

    1.描述计算机系统的组成及功能硬件组成(输入设备,输出设备,存储器,运算器,控制器) 输入设备:鼠标,键盘,麦克,声卡(输入声音),扫描仪,手写板等输出设备:显示器,声卡(输出声音),音箱,投影仪等存储器:内存,硬盘,磁带,CPU内部还可以分1,2,3级缓存运算器:主要完成对二进制数据的定点算术运算(加减乘除)、逻辑运算(与或非异或)以及移位操作。在某些CP…

    Linux干货 2016-08-15
  • httpd

      httpd http服务器程序:   httpd (apache) nginx lighttpd httpd的特性:   高度模块化: core + modules DSO:dynamic shared object(模块的动态加载) MPM:Multipath processing Modules (多路处理模块) &nb…

    Linux干货 2017-06-04
  • iptables, sudo N28

    2018/2/25 17:14 第十二周

    2018-02-25
  • 始于此

         “路漫漫其修远兮,吾将上下而求索”,一段路程的结束,意味着一段路程的开始,同岁月般,永远也不能回到出发的那一刻,你所能做的,就是一路走下去。回顾珍惜,却不能逗留。         我的学习宣言是“功崇惟志,业广惟勤”,时刻告诉自己,“功”出…

    Linux干货 2016-11-28
  • 文件压缩和软件包管理

    Linux压缩打包 压缩是一种通过特定的算法来减小计算机文件大小的机制。有利于文件在网络上的传输,节约带宽。在Linux中,压缩是以后缀名区分文件的。(Linux中很少见)压缩文件都会呈现醒目的红色。 注意!以下压缩软件只能压缩文件而不能压缩目录。不能对目录直接压缩! compress命令 compress这个命令是非常老旧的一款命令,现在基本已经不用了 而…

    Linux干货 2016-08-24