This article is based on the first article, if you have not installed the Curl-loader Performance testing tool. Please refer to the Performance Test tool Curl-loader (Linux) First
This section specifically analyzes the use of Curl-loader, as well as the meaning of the parameters.
Simple performance testing and requirements environment:
------- -------------------------------------------------------------------------------------------------------- ------- ----------------------
Visit Baidu Home: http://www.baidu.com/index.html
Number of virtual users: 20
Initial start User: 1
Start per Second: 1 (20 seconds after 20 users start all)
Network environment: Local Linux-----extranet Baidu Homepage Bandwidth: 45kb/s (unstable)
Performance Tools: Curl-loader
--------------------------------------- ------------------------------------------------------------------------ -------------------------------
Performance file configuration:
You can find a configuration file in the curl-loader-0.56/conf-examples/directory, the duplicate name is: baidu.conf
[Root@youname conf-examples]# VI baidu.conf Open configuration file for modification
########### General Section ################################
batch_name= Baidu //test object name
clients_num_ Max=20 //maximum number of virtual users clients_num_start=1//First start user
clients_rampup_inc=1 //start several users
per second INTERFACE =eth0 //Used network card eth0
netmask=16 //Subnet mask number
ip_addr_min= 192.168.1.1 //Start IP Address
ip_addr_max= 192.168.53.255 #Actually-this is for self-control//FINAL IP address range
cycles_num=-1 //-1 means infinite loop
urls_num= 1
########### URL section ####################################
url=http://www.baidu.com/ index.html //URL to test
#URL =http://localhost/ace-install.html
url_short_name= "Local-index"
Request_type=get
timer_url_completion = 5000 # in msec. When positive, now it's enforced by cancelling URL fetch on timeout
timer_after_url_sleep =20
As for the meaning of each parameter, the above code has been annotated. After the modification is complete, save the exit!
To run a performance test:
Execute the following command to run the configuration file and start the test.
[root@youname curl-loader-0.56]# curl-loader -f ./conf-examples/baidu.conf & nbsp Start running the file you just configured
============ loading Batch is:mysimp ======================================------------------------------ --------------------------------------------------Interval Stats (latest:3 sec, clients:20, caps-curr:23): h/f REQ:70,1XX:0,2XX:77,3XX:0,4XX:0,5XX:0,ERR:0,T-ERR:3,D:273MS,D-2XX:273MS,TI:196498B/S,TO:4344B/S H/F/S Req:0,1xx : 0,2xx:0,3xx:0,4xx:0,5xx:0,err:0,t-err:0,d:0ms,d-2xx:0ms,ti:0b/s,to:0b/s-------------------------------------- ------------------------------------------Summary Stats (runs:114 secs, caps-average:24): h/f req:2731,1xx:0,2x X:2713,3XX:0,4XX:0,5XX:0,ERR:15,T-ERR:46,D:280MS,D-2XX:280MS,TI:187514B/S,TO:4385B/S H/F/S Req:0,1xx:0,2xx:0,3xx : 0,4xx:0,5xx:0,err:0,t-err:0,d:0ms,d-2xx:0ms,ti:0b/s,to:0b/s ================================================== =============================== manual:clients:max[20],curr[20].
Inc num: [+|*]. ===================================================================
Note: The above information is always in the refresh. Press the CTRL + C key to terminate the test