开源性能测试工具Curl-Loader学习

curl-loader 是一个用C语言编写的Web应用测试和模拟负载工具,可模拟成千上万的客户端请求,并且每个请求来自不同的IP地址,支持用户认证、登录等Web交换过程。

  项目主页:http://curl-loader.sourceforge.net/

  文档地址:http://curl-loader.sourceforge.net/doc/fast.html

  下载地址:http://sourceforge.net/project/showfiles.php?group_id=179599

  安装:#tar zxvf crul-loader.tar.gz

  #cd curl-loader

  #make

  用法:#./curl-loader -f<configuration filename> \[other options]

  配置文件详解:

  ########### GENERAL SECTION ################################

  BATCH_NAME=my

  CLIENTS_NUM_MAX=1000   #最大并发数

  CLIENTS_NUM_START=10   #一开始的并发数

  CLIENTS_RAMPUP_INC=5   #每秒并发数

  INTERFACE   =eth0               #选择网卡

  NETMASK=16

  IP_ADDR_MIN= 192.168.1.10

  IP_ADDR_MAX= 192.168.53.255  #Actually - this is for self-control

  CYCLES_NUM= -1

  URLS_NUM= 1

  ########### URL SECTION ####################################

  URL=http://localhost/index.html

  #URL=http://localhost/ACE-INSTALL.html

  URL_SHORT_NAME="local-index"

  REQUEST_TYPE=GET

  TIMER_URL_COMPLETION = 5000      # In msec. When positive, Now it is enforced by cancelling url fetch on timeout

  TIMER_AFTER_URL_SLEEP =20

posted @ 2010-04-26 14:07  dancer  阅读(487)  评论(0编辑  收藏  举报