Based on the first article, this article explains if you have not installed the curl-loader performance testing tool. Please refer to Performance Testing Tool curl-loader (Linux) first
This section analyzes the usage of curl-loader and the meanings of parameters.
Simple performance testing and requirements Environment:
Certificate --------------------------------------------------------------------------------------------------------------------------------------------
Visit Baidu home: http://www.baidu.com/index.html
Number of virtual users: 20
Initial User: 1
Start every second: 1 (all 20 users started after 20 seconds)
Network Environment: local Linux ----- Internet Baidu homepage bandwidth: 45kb/s (unstable)
Performance tool: curl-loader
Certificate ----------------------------------------------------------------------------------------------------------------------------------------------
Performance File Configuration:
You canCurl-loader-0.56/Find a configuration file in the conf-examples/directory and copy the file with the name "Baidu. conf ".
[Root @ youname conf-Examples] #VIBaidu. confOpen the configuration file and modify it.
########### General section ########################### #####
Batch_name = Baidu // Name of the test object
Clients_num_max = 20 // Maximum number of virtual users
Clients_num_start = 1// Number of users started at the beginning
Clients_rampup_inc = 1 // Start several users every second
Interface = eth0 // Used Nic eth0
Netmask = 16 // Subnet Mask count
Ip_addr_min = 192.168.1.1 // Start IP Address
Ip_addr_max = 192.168.53.255 # actually- This Is For Self-control // Last IP address range
Cycles_num =-1 // -1 indicates an infinite loop
Urls_num = 1
########### URL section ########################### #########
Url = http://Www.baidu.com/index.html//URL to be tested
# 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 canceling URL fetch on timeout
Timer_after_url_sleep = 20
For the meaning of each parameter, the precedingCodeAnnotations have been added.Save the modification and exit!
========================================================== ========================================================== ========
Run the performance test:
Run the following command to run the configuration file and start the test.
[Root @ youname curl-loader-0.56] #Curl-loader-F./conf-examples/Baidu. confStart running the file 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: 273 ms, D-2xx: 273 ms, 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: 0 ms, D-2xx: 0 ms, Ti: 0b/s, to: 0b/s
--------------------------------------------------------------------------------
Summary stats (runs: 114 secs, caps-average: 24 ):
H/F Req: 2731, 1xx: 0, 2XX: 2713, 3xx: 0, 4xx: 0, 5xx: 0, err: 15, T-err: 46, D: 280 ms, D-2xx: 280 ms, 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: 0 ms, D-2xx: 0 ms, Ti: 0b/s, to: 0b/s
========================================================== ========================================================== =
Manual: clients: Max [20], curr [20]. inc num: [+ | *].
========================================================== ======================================
Note: The above information is being refreshed. Press the keyboardCTRL + cKey termination Test
Parameters:
Interval statsInterval statistics
LatestLatest data (within 3 seconds)
ClientsConcurrent user count
Caps-currNumber of last sent requests
Req:Request)
-1xxSuccessfulNum;- 2XX Successful Num ;- 3xxOf Redirection Quantity ;- 4xx Client Error Quantity ;- 5xx Server Error Quantity ;
Average2XX(Successful)HTTPResponseMediumOfApplicationServer latency,Above,Only2XX has a response.ComePush is3xxRedirectionAnd 5xxServer Error/RejectNot necessarilyTrue reflectionOneTest ServerWorkOfFunction(D2XX);
Ti(T-in) throughput "swallowed", average value, byte/Per second
To(T-out) throughput "vomit", average value, byte/Per second
Summary statsSummary Statistics
RunsRunning time
Caps-averageTotal Average number of requests sent (in seconds)
Error Type:
Err-OthersNumError,For exampleAnalysis, TCPConnection,ServerClose orNullResponse;
T-err-URLCompletion TimeExpirationOfError;
========================================================== ========================================================== ======
Test result information
K mentioned abovePress the keyboardCTRL + cThe key will terminate the test, and the curl-loader will give the following prompt:
======== SIGINT received ====================.
H/F Req: 97, 1xx: 0, 2XX: 97, 3xx: 0, 4xx: 0, 5xx: 0, err: 0, T-err: 0, D: 211 ms, D-2xx: 211 ms, Ti: 257228b/s, to: 5852b/s
H/f/s Req: 0, 1xx: 0, 2XX: 0, 3xx: 0, 4xx: 0, 5xx: 0, err: 0, T-err: 0, d: 0 ms, D-2xx: 0 ms, Ti: 0b/s, to: 0b/s
========================================================== ========================================================== ========
End of the testForBatch: mysimp
========================================================== ========================================================== ========
Test total duration was 117 seconds and caps average 23:
H/F Req: 2828, 1xx: 0, 2XX: 2810, 3xx: 0, 4xx: 0, 5xx: 0, err: 15, T-err: 46, D: 277 ms, D-2xx: 277 ms, Ti: 189301b/s, to: 4423b/s
H/f/s Req: 0, 1xx: 0, 2XX: 0, 3xx: 0, 4xx: 0, 5xx: 0, err: 0, T-err: 0, d: 0 ms, D-2xx: 0 ms, Ti: 0b/s, to: 0b/s
Exited. For details look in the files:
-Baidu. LogForErrors and traces;
-Baidu.txtForLoading statistics;
-Baidu. CTXForVirtual client based statistics.
-Baidu. OpsForOperational statistics.
Add-V and-u options to the command lineForVerbose output to mysimp. log file.
You haveNewMail in/var/spool/mail/root
KTestTotalTime is117SecondsAnd capsAverage23
KNumber of requests sent by caps per second
--------------------------------------------------
-Baidu. log for errors and traces; -Baidu.txt for loading statistics; -Baidu. CTX for virtual client based statistics. -Baidu. OPS for operational statistics
Baidu. LogErrorAnd traces;
Baidu. TxtForLoadStatistics
Baidu. CTXVirtual ClientStatistics.
Baidu. OpsBusinessStatistics.
After the test is completed, the above files (bidu. log worker baidu.txt, Baidu. CTX, Baidu. OPS). You can view the files to obtain more detailed test data.
-----------------------------------------------
If you want to obtain more detailed information during the test, you can add the-V and-U parameters in the command to run the test. The command is as follows:
[Root @ youname curl-loader-0.56] #Curl-loader-V-F./conf-examples/Baidu. conf
[Root @ youname curl-loader-0.56] #Curl-loader-U-F./conf-examples/Baidu. conf
Summary: Through the analysis of the above content, we have a preliminary understanding of the parameters of curl-loader. Of course, the content I listed is not detailed. There is also a bit vague, such as runningH/FAndH/f/sI have not fully understood the specific meaning.
This article refer to the official FAQ document: http://curl-loader.sourceforge.net/doc/faq.html