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

相关推荐

  • shell脚本编程之一

    shell脚本编程之一 shell脚本基础 shell脚本是包含一些命令或声明,并符合一定格式的文本文件 格式要求:首行shebang机制 #!/bin/bash #!/usr/bin/python #!/usr/bin/perl shell脚本的用途有: 自动化常用命令 执行系统管理和故障排除 常见简单的应用程序 处理文本或文件 创建shell脚本 第一步…

    Linux干货 2016-08-18
  • N22期-第四周博客作业

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

    Linux干货 2016-08-30
  • 第二十一周作业

    1、回顾并详细总结MySQL的存储引擎、索引; 常用存储引擎的对比: 特点 MyISAM InnoDB MEMORY MERGE NDB 存储限制 有 64TB 有 没有 有 事务安全 支持 锁机制 表锁 行锁 表锁 表锁 行锁 B树索引 支持 支持 支持 支持 支持 哈希索引 支持 全文索引 支持 集群索引 支持 数据缓存 支持 支持 支持 索引缓存 支持…

    2017-07-29
  • Linux文件系统:从inode理解软链接与硬链接

    什么是inode? 在Linux磁盘存储文件系统中,我们以块划分磁盘为两部分:超级块(superblock)和数据块(data block);同时划分单文件为用户数据(user data)和元数据(meta data)两个部分。 用户数据记录的是文件的真实内容。比如你的血液、骨骼和各器官等等。 元数据这是附加于文件的属性信息。比如身高、体重、血型和年龄等等。…

    Linux干货 2016-08-07
  • N26 – 第二周作业

    1、文件管理类命令和常用使用方法 2、bash命令执行后返回值,和目录展开:     命令执行返回值,存储在“$?”这个特殊变量内。可以使用echo显示或在shell脚本中引用。其中0表示正常执行完成,1-255表示不同的错误类型。     目录展开的特殊符号:  &n…

    Linux干货 2016-12-30
  • Homework week-5 grep及find

    1、显示/boot/grub/grub.conf中以至少一个空白字符开头的行; grep -E "^[[:space:]]+" /boot/grub/grub.conf 2、显示/etc/rc.d/rc.sysinit文件中以#开头,后面跟至少一个空白字符,而后又有至少一个非空白字符的行; grep&nbsp…

    Linux干货 2016-09-06