ab--n--c - 关于Apache ab 如何确定
给我你的怀抱
给我你的怀抱 2017-05-16 17:03:26
0
1
454
D:\Apache\bin>ab.exe -n10000 -c10 http://www.tm.net/
This is ApacheBench, Version 2.3 <$Revision: 1554214 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.tm.net (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.9
Server Hostname:        www.tm.net
Server Port:            80

Document Path:          /
Document Length:        4501 bytes

Concurrency Level:      10
Time taken for tests:   387.812 seconds
Complete requests:      10000
Failed requests:        184
   (Connect: 0, Receive: 0, Length: 184, Exceptions: 0)
Non-2xx responses:      85
Total transferred:      48375059 bytes
HTML transferred:       44510851 bytes
Requests per second:    25.79 [#/sec] (mean)
Time per request:       387.812 [ms] (mean)
Time per request:       38.781 [ms] (mean, across all concurrent requests)
Transfer rate:          121.81 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.8      0      31
Processing:    58  386 511.3    313    6009
Waiting:       58  343 225.3    311    4090
Total:         59  386 511.3    313    6010
WARNING: The median and mean for the initial connection time are not within a no
rmal deviation
        These results are probably not that reliable.

Percentage of the requests served within a certain time (ms)
  50%    313
  66%    370
  75%    410
  80%    439
  90%    539
  95%    633
  98%    861
  99%   3458
 100%   6010 (longest request)

如上代码测试了本机的Apache 服务 有点不明白的是这一段

HTML transferred:       44510851 bytes
Requests per second:    25.79 [#/sec] (mean)
Time per request:       387.812 [ms] (mean)
Time per request:       38.781 [ms] (mean, across all concurrent requests)
Transfer rate:          121.81 [Kbytes/sec] received

html传输是指的什么包含页面中的图片、css、js吗?

给我你的怀抱
给我你的怀抱

全部回复(1)
左手右手慢动作
  1. HTML transferred: 44510851 bytes 传输字节数
    Requests per second: 25.79 [#/sec] (平均每秒完成请求个数)
    Time per request: 387.812 [ms] (完成一次并发平均时间,n=10000)
    Time per request: 38.781 [ms] (平均每个请求花的时间38.781,nc = 1000010)
    Transfer rate: 121.81 [Kbytes/sec] 下载速度

  2. 不包含css,js,图片

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板