ab命令输出内容的简单讲解

  • A+
所属分类:运维教程

上篇文章我们使用ab命令做了个简单测试,有些朋友可能对返回的结果不太理解,这里分别说下每个返回值的作用。

ab命令输出内容的简单讲解

我们可以看到服务器采用的是nginx,域名是birdteam.net,端口是443。

ab命令输出内容的简单讲解

关于请求url的相关信息,所在位置为网站根目录,请求大小为76487bytes。

ab命令输出内容的简单讲解

Concurrency Level: 10  //并发请求数量

Time taken for tests: 62.541 seconds  //整个测试持续时间

Complete requests: 100  //完成的请求数

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

Total transferred: 7665085 bytes  //整个场景中网络传输量

HTML transferred: 7648685 bytes  //整个场景中的HTML内容传输量

ab命令输出内容的简单讲解

Requests per second: 1.60 [#/sec] (mean)  //吞吐速率,大家最关心的指标之一

Time per request: 6254.054 [ms] (mean)  //用户平均请求等待时间,大家最关心的指标之二

Time per request: 625.405 [ms] (mean, across all concurrent requests)  //服务器平均请求处理的时间,大家最关心的指标之三

Transfer rate: 119.69 [Kbytes/sec] received  //平均每秒网络上的流量,可以帮助排除是否有存在网络流量过大导致响应时间延长的问题

ab命令输出内容的简单讲解

这段表示网络上消耗时间的分解。

ab命令输出内容的简单讲解

这段是每个请求处理时间的分布情况(注意:重点看90%处理时间)

  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:29   其中:访客  29   博主  0

    • avatar Buy Hair Extensions UK

      Good website! I truly love how it is simple on my eyes and the data are well written. I’m wondering how I could be notified when a new post has been made. I have subscribed to your feed which must do the trick! Have a great day!

      • avatar buy mens fitness shirts online

        Hi! I’ve been reading your blog for some time now and finally got the courage to go ahead and give you a shout out from Huffman Tx! Just wanted to say keep up the fantastic work!

        • avatar grolyrto lemcs

          I’d should check with you here. Which is not something I normally do! I get pleasure from reading a post that may make individuals think. Additionally, thanks for permitting me to comment!

          • avatar Robert Bergman

            I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

            • avatar cbd oil that works 2020

              An outstanding share! I have just forwarded this onto a coworker who had been conducting
              a little research on this. And he actually bought me lunch due to the fact that I found it for him…
              lol. So allow me to reword this…. Thank YOU for the meal!!

              But yeah, thanx for spending time to talk about this matter here
              on your web site.

              • avatar hop over to these guys

                I don’t ordinarily comment but I gotta admit thanks for the post on this amazing one : D.

                • avatar tinyurl.com

                  If you are going for most excellent contents like I do, only go to
                  see this site all the time as it gives quality contents, thanks

                  • avatar www.osaka-toshin.com

                    fantastic issues altogether, you just received a new reader.
                    What would you suggest in regards to your post that you simply made a few days in the past?
                    Any certain?

                    • avatar the original source

                      Good write-up, I’m regular visitor of one’s web site, maintain up the nice operate, and It’s going to be a regular visitor for a long time.