十二月 1st, 2010 @ 9:54 上午 

一个月前用C++写了一个fcgi服务程序,逻辑上已经测试很多次了,基本没什么问题。昨天又做了一个压力测试,效果还算满意,测试的工具就是http_load。

http_load运行的条件很简单,只需要一个预先装满url的文本就行了,而且安装也很简单。

下载安装

地址:http://www.acme.com/software/http_load/
下载后解压,进入源码路径,直接make。之后就可以在任何路径下使用了。

http_load使用

1
2
3
4
5
6
7
8
% ./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

其中 -rate(并发数) -second(测试时间)可以分别简写位-r -s。urls就是装满了url的文本文件

是不是很简单?另外这个这个网站还有其他的测试工具http_ping,http_get,thttpd。感兴趣的朋友可以看看。

作者: Sunny
原创文章: 转载请注明出自 Sunny Way.
最后编辑: 十二月 1st, 2010 @ 09:59 上午
Email永久链接
Tags
标签: , ,
分类: Web


 

这篇日志的回复 » (回复数 2)

 
  1. Monex 说:

    http load runs multiple http fetches in parallel to test the throughput.

发表回复

提示: 您可以使用以下标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tags
Comment Meta:
回复RSS
引用URI


 最近 50 篇日志
 后退
切换主题...
  • 访问 » 8663
  • 日志 » 59
  • 回复 » 77
切换主题...
  • VoidVoid
  • LifeLife
  • EarthEarth
  • WindWind « Default
  • WaterWater
  • FireFire
  • LightLight

留言板



    No Child Pages.