• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

web性能测试工具

发布: 2009-12-29 11:53 | 作者: 不详 | 来源: 领测软件测试网采编 | 查看: 240次 | 进入软件测试论坛讨论

领测软件测试网

  web性能测试工具   性能测试用例 

    http_load runs multiple http fetches in parallel, to test the throughput of a web server. However unlike most such test clients, it runs in a single process, so it doesn't bog down the client machine. It can be configured to do https fetches as well.

  You give it a file containing a list of URLs that may be fetched, a flag specifying how to start connections (either by rate or by number of simulated users), and a flag specifying when to quit (either after a given number of fetches or a given elapsed time). There are also optional flags for checksums, throttling, random jitter, and progress reports.

  

  1.2 具体操作及说明

  常用样例

  http_load -parallel 5 -fetches 1000 urls.txt http_load -rate 2 -seconds 300 urls.txt

  样例含义

  -parallel 简写-p :含义是并发的用户进程数。

  -fetches 简写-f :含义是总计的访问次数

  -rate 简写-r :含义是每秒的访问频率

  -seconds简写-s :含义是总计的访问时间

  urls.txt 是一个url 列表,每个url 单独的一行;不可以直接跟一个url,有些博客主说的可以跟一个url是错误的说法。

  返回结果

  http_load -rate 5 -seconds 10 urls 49 fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds 5916 mean bytes/connection 4.89274 fetches/sec, 28945.5 bytes/sec msecs/connect: 28.8932 mean, 44.243 max, 24.488 min msecs/first-response: 63.5362 mean, 81.624 max, 57.803 min HTTP response codes: code 200 -- 49

  结果含义

  49 fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds

  说明在上面的测试中运行了49个请求,最大的并发进程数是2,总计传输的数据是289884bytes,运行的时间是10.0148秒

  5916 mean bytes/connection

  说明每一连接平均传输的数据量289884/49=5916

  4.89274 fetches/sec, 28945.5 bytes/sec

  说明每秒的响应请求为4.89274,每秒传递的数据为28945.5 bytes/sec

  msecs/connect: 28.8932 mean, 44.243 max, 24.488 min

  说明每连接的平均响应时间是28.8932 msecs,最大的响应时间44.243 msecs,最小的响应时间24.488 msecs

  msecs/first-response: 63.5362 mean, 81.624 max, 57.803 min

  HTTP response codes: code 200 -- 49

  说明打开响应页面的类型,如果403的类型过多,那可能要注意是否系统遇到了瓶颈。

  特殊说明

  一般会关注到的指标是fetches/sec、msecs/connect,它们分别对应的常用性能指标参数QPS-每秒响应用户数和response time,每连接响应用户时间。测试的结果主要也是看这两个值。当然仅有这两个指标并不能完成对性能的分析,我们还需要对服务器的cpu、men进行分析,才能得出结论;

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/

21/212>

关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网