Advantages: RatioHttp_loadEasy to use, because the sameUrl.txtFile inHttploadSo it is easy to use.HttploadWorseSiegeFurther research is required.
Disadvantage: automatic creation is not allowed during installationSiege. LogFile, which must be created manually.
Overview:
Siege is a stress testing tool. As with http_loadparts, siegeis also a file that reads urls.txt. You can configure multiple users to access a Web site concurrently, record the response time of all request processes of each user, and repeat it with a certain number of concurrent accesses. This is more advantageous than executing stress tests on only one URL in apache.pdf. Siege supports basic authentication, cookies, HTTP and HTTPS protocols.
Http://www.joedog.org/siege/
Installation:
# Tar-zxvf siege-2.72.tar.gz
# Cdsiege-2.72
/Siege-2.72 #./configure
/Siege-2.72 # Make
/Siege-2.72 # makeinstall
Basic usage:
Xxxxxxxxxxxx :~ /Siege-2.72 $ siege-C 5-R 10-F urlsdamai.txt/* concurrent five users, 10 iterations,-F indicates the list of URLs to be read */
** Siege 2.72
** Preparing 5 concurrent users for battle.
The server is nowunder siege... done.
Operation Result:
Transactions: 50 hits/* 50 times of server access, or 50 times of Processing */
Availability: 100.00%/* 100% success rate */
Elapsed time: 8.14 secs/* total time in 8.14 seconds */
Data transferred: 5.25 MB/* Total data transmission: 5.25 MB */
Response time: 0.19 secs/* Response Time: 0.19 seconds: display the network connection speed */
Transaction rate: 6.14 TRANS/SEC/* processes 6.14 requests per second on average, and the processing speed on the server side */
Throughput: 0.65 MB/SEC/* Average data transmission per second 0.65 MB */
Concurrency: 1.15/* the actual maximum number of concurrent users is 1.15 */
Successfultransactions: 50/* 50 requests are successfully processed */
Failedtransactions: 0/* failed to process 0 requests */
Longesttransaction: 0.46/the longest processing time is 0.46 seconds/
Shortesttransaction: 0.11/the shortest processing time is 0.11 seconds/
File:/usr/local/var/siege. Log
You can disablethis annoying message by editing
The. siegerc filein your home directory; change
The directive 'show-logfile' to false.
[Error]Unable to create log file: Permission denied/* When a non-root user executes a concurrent command, siege-C 5-R 10-F urlsdamai.txt, the siege log cannot be written to "siege. the log file is not created during make & make install. Therefore, there are two solutions, and the 1st solution to this problem is to manually create a "siege. log ", the 2nd method is to directly switch to the root user, after execution, this siege is automatically created. log File */
Parameter description:
Usage: siege [Options]
Siege [Options] URL
Siege-G URL
Options:
-V, -- version, prints the version number.
-H, -- Help help, prints this section.
-C, -- config configuration, show the currentconfig.
-V, -- verbose, prints notification to screen.
-G, -- get, pull down HTTP headers anddisplay
Transaction. greatfor application debugging.
-C, -- Concurrent = num concurrent users, default is 10/* Number of concurrent users */
-I, -- Internet User Simulation, hits urlsrandomly.
-B, -- benchmark: No delays between requests.
-T, -- time = numm timed testing where "M" ismodifier S, m, or H/* test execution time, for example,-T 1 m is 60 seconds */
Ex: -- time = 1 h, one hour test.
-R, -- reps = num reps, number of times to run thetest./* number of iterations, not used together with-T */
-F, -- file = file, select a specific URLs file.
-R, -- rc = file RC, specify an siegerc File
-L, -- log [= file] log to file. If file is not specified,
Default is used: prefix/var/siege. Log
-M, -- Mark = "text" Mark, Mark the log file with a string.
-D, -- delay = num time delay, random delay before eachrequst
Between 1 and num. (not counted in stats)
-H, -- header = "text" add a header to request (can be requested)
-A, -- User-Agent = "text" setsuser-agent in request
Discussion/Question:
- What does "response time" in the test result mean?
- What does "concurrency" in the result mean?