開源性能測試工具Curl-Loader

curl-loader 是一個用C語言編寫的Web應用測試和模擬負載工具,可模擬成千上萬的客戶端請求,而且每一個請求來自不一樣的IP地址,支持用戶認證、登陸等Web交換過程。php

  項目主頁:http://curl-loader.sourceforge.net/html

  文檔地址:http://curl-loader.sourceforge.net/doc/fast.html併發

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

  安裝:#tar zxvf crul-loader.tar.gzide

  #cd curl-loader工具

  #make測試

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

  配置文件詳解:this

  ########### GENERAL SECTION ################################url

  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 

相關文章
相關標籤/搜索