美文网首页
ab测试并发

ab测试并发

作者: Init_d236 | 来源:发表于2019-05-05 15:53 被阅读0次

$ ab  -n 100  -c 10 https://www.rcnits.com/index/index/index/ds/3536192018122022588345787.html
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.rcnits.com (be patient).....done


Server Software:        nginx  #web服务器
Server Hostname:        www.rcnits.com  #域名  ,ip
Server Port:            443  #端口
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
TLS Server Name:        www.rcnits.com

Document Path:          /index/index/index/ds/3536192018122022588345787.html  #请求的页面文档
Document Length:        34228 bytes #文档大小

Concurrency Level:      10  #并发数
Time taken for tests:   65.488 seconds  #整个测试持续时间(秒)
Complete requests:      100    #请求完成数
Failed requests:        0          #失败数
Total transferred:      3463000 bytes  #整个场景中的网络传输量
HTML transferred:       3422800 bytes  #整个场景中HTML内容传输量
Requests per second:    1.53 [#/sec] (mean) #每秒事务数  mean 表示这是一个平均值(每秒并发数)
Time per request:       6548.806 [ms] (mean) #平均事务响应时间 
Time per request:       654.881 [ms] (mean, across all concurrent requests) #每个请求实际运行时间的平均值
Transfer rate:          51.64 [Kbytes/sec] received  #均每秒网络上的流量

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      791 4640 2066.4   4952    8657
Processing:   150 1672 1832.1    827    8664
Waiting:      141 1665 1834.5    820    8661
Total:       1622 6311 1277.9   6050    9461

Percentage of the requests served within a certain time (ms)
  50%   6050
  66%   6543
  75%   6801
  80%   6825
  90%   8284
  95%   8821
  98%   9461
  99%   9461
 100%   9461 (longest request)


#由于对于并发请求,cpu实际上并不是同时处理的,而是按照每个请求获得的时间片逐个轮转处理的,所以基本上第一个Time per request时间约等于第二个Time per request时间乘以并发请求数

ab [options] [http://]hostname[:port]/path
参数:

-n

在测试会话中所执行的请求个数。默认时,仅执行一个请求

ab  -n 100  https://www.rcnits.com/index/index/index/ds/3536192018122022588345787.html

-c

一次产生的请求个数。默认是一次一个。

ab  -n 100  https://www.rcnits.com/index/index/index/ds/3536192018122022588345787.html

-t

测试所进行的最大秒数。其内部隐含值是-n 50000。它可以使对服务器的测试限制在一个固定的总时间以内。默认时,没有时间限制。

ab  -t 10  https://www.rcnits.com/index/index/index/ds/3536192018122022588345787.html

相关文章

  • ab测试并发

    ab [options] [http://]hostname[:port]/path参数: -n 在测试会话中所执...

  • ab测试

    yum install httpd-tools ab测试,5000并发,20000次./bin/ab -c 500...

  • apache-ab并发负载压力测试

    ab命令原理Apache的ab命令模拟多线程并发请求,测试服务器负载压力,也可以测试nginx、lighthttp...

  • Apache的ab命令模拟多线程并发请求,测试服务器负载压力

    ab命令原理 Apache的ab命令模拟多线程并发请求,测试服务器负载压力,也可以测试nginx、lighthtt...

  • Apache ab 压力测试

    ab命令原理 Apache的ab命令模拟多线程并发请求,测试服务器负载压力,也可以测试nginx、lighthtt...

  • apache ab压力测试说明

    ab命令原理Apache的ab命令模拟多线程并发请求,测试服务器负载压力,也可以测试nginx、lighthttp...

  • ab--并发测试

    1、下载ab包。 2、使用cmd进入ab.exe所在的bin文件夹。 cmd>cd\ cd 文件夹路径 执行命令:...

  • 并发测试Apache ab

    ab是apache自带的压力测试工具。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也...

  • ab并发压力测试

    在Windows系统下,打开cmd命令行窗口,定位到apache安装目录的bin目录下 cd C:\Program...

  • Apache ab并发测试

    下载安装 下载Win安装包:https://www.apachehaus.com/cgi-bin/download...

网友评论

      本文标题:ab测试并发

      本文链接:https://www.haomeiwen.com/subject/xurhoqtx.html