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

相关推荐

  • 测试so接口函数的脚本 [python]

    下面是一个测试solib库中调用函数的测试脚本,但该脚本还存在这一些问题,我目前无法理解和解决; 问题: 1.我定义了logging采用日志滚动的方式,写日志,并且每个日志的大小是20M,但测试结果发现日志连1M都没到就开始轮转了,并且在轮转过程中,还出现logging写日志,却发现,日志轮转了,结果竟然报了,轮转日志不存在。 Traceback (most…

    Linux干货 2016-01-05
  • lvs实践(lvs+nginx+mariadb+php—fpm+nfs搭建wordpress)

    lvs实践(lvs+nginx+mariadb+php—fpm+nfs搭建wordpress)   lvs实践(lvs+nginx+mariadb+php—fpm+nfs搭建wordpress) lvs_dr模型 nginx mariadb php-fpm wordpress   lvs实践(lvs+nginx+mariadb+php—f…

    2017-01-03
  • rsyslog+mariadb+loganalyzer实现日志采集分析

    一、总述   Linux的日志记录了用户在系统上一切操作,这些日志是使用者了解服务器的情况最好的资料。Rsyslog 是系统的一部分,能够实时的写日志,并且还可以将日志选择性的发送到远程日志服务器。   rsyslog日志服务器的优势:     1、日志统一,集中式管理     &nbsp…

    Linux干货 2017-01-10
  • 进程与计划任务详解

    时光匆匆,王老师代两周的课就这样结束了,刚适应王老师的讲课风格。王老师讲课进度非常快,能按照自己的思路把上课的内容每一个地方都贯彻下去。我觉得这样是非常好的,但是笔记方面还是南老师做的详细,各有各的风格吧。今天我们将要给大家介绍进程与计划任务,对我们的以后工作有非常大的帮助,因为我们以后工作尽可能的都自动化管理,不需要我们每天都去敲那些命令。所以我相信今天的…

    2017-09-09
  • gzip压缩输出

    一、gzip介绍          gzip是GNU zip的缩写,它是一个GNU自由软件的文件压缩程序,也经常用来表示gzip这种文件格式。软件的作者是Jean-loup Gailly和Mark Adler。1992年10月31日第一次公开发布,版本号是0.1,目前的稳定版本是…

    Linux干货 2015-07-29
  • linux 小命令

    设置自动登录、设置网络自动连接、字体颜色

    2017-11-19