Command: ab-n 10-c 10 http://www.baidu.com/
Meaning: to www.baidu.com send 10 requests (-n 10), and 10 per concurrent request (-c 10)
The following is the output of the test report ab
C: \ Java \ Tools \ ab> ab-n 10-c 10 http://www.baidu.com/
This is ApacheBench, Version 2.0.41-dev <$ Revision: 126.96.36.199 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.baidu.com (be patient )..... done
Server Software: BWS/1.0
Server Hostname: www.baidu.com
Server Port: 80
Document Path: /
Document Length: 6759 bytes
Concurrency Level: 10
Time taken for tests: 0.406244 seconds
Complete requests: 10
Failed requests: 0
Write errors: 0
Total transferred: 71410 bytes
HTML transferred: 67590 bytes
/ * These three should be the parameters we care about most, according to the literal meaning, it is easy to understand * /
Requests per second: 24.62 [# / sec] (mean)
Time per request: 406.244 [ms] (mean)
Time per request: 40.624 [ms] (mean, across all concurrent requests)
Transfer rate: 169.85 [Kbytes / sec] received
Connection Times (ms)
min mean [+ /-sd] median max
Connect: 31 31 0.0 31 31
Processing: 62 152 78.7 156 281
Waiting: 31 143 89.8 156 281
Total: 93 183 78.7 187 312
/ * The percentage of each response time * /
Percentage of the requests served within a certain time (ms)
100% 312 (longest request)
Other parameters attached other AB
Format. Ab [options] [http://] hostname [: port] / path
-N requests Number of requests to perform
/ / Execute the test sessions in the number of requests, the total number of requests. By default, only the implementation of a request
-C concurrency Number of multiple requests to make
/ / A number of requests generated, the number of concurrent requests. The default is one at a time.
-T timelimit Seconds to max. Wait for responses
/ / Test for the maximum number of seconds. The implied value of the internal-n 50000. It can test the server is limited to a fixed total time or less. By default, no time limit.
-P postfile File containing data to POST
/ / POST data contains the necessary files.
-T content-type Content-type header for POSTing
/ / POST data using the Content-type header.
-V verbosity How much troubleshooting info to print
/ / Set the display level of detail - 4 or greater header information is displayed, you can display the value of 3 or greater response code (404, 200, etc.), two or more values to display warnings and other information. -V Display version number and exit.
-W Print out results in HTML tables
/ / To HTML table format output. By default, it is the white background of the two widths of a table.
-I Use HEAD instead of GET
/ / Perform HEAD requests instead of GET.
-X attributes String to insert as table attributes
-Y attributes String to insert as tr attributes
-Z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache = 1234. (Repeatable)
/ /-C cookie-name = value attached to the request a Cookie: line. The typical form of a parameter name = value pair. This parameter can be repeated.
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (Repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
/ /-P proxy-auth-username: password for a transfer agent for BASIC authentication trust. By a user name and password: separated, and sent with base64 encoding. Regardless of whether the server (ie, whether to send a certified demand code 401), this string will be sent.
-X proxy: port Proxyserver and port number to use
-V Print version number and exit
-K Use HTTP KeepAlive feature
-D Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-G filename Output collected data to gnuplot format file.
-E filename Output CSV file with percentages served
-H Display usage information (this message)
/ /-Attributes set attribute string defects in a variety of programs statically declared buffers of fixed length.
Many parameters, usually we use the-c and-n parameters on it.
Related Posts of apache comes with the use of stress testing tool for windows
ProxyPassReverse / http://127.0.0.1:8000/ ProxyPreserveHost on # More to configure your own # Logfiles ErrorLog / var/log/apache2/linknovel.com.error.log CustomLog / var/log/apache2/linknovel.com.access.log combined </ VirtualHost> Well. Restart apa
Reproduced to http://javaee.dahe.cn/bbs/frame.php?frameon=yes&referer=http% 3A / / javaee.dahe.cn / bbs / index.php Unit testing tool JUnit 4 JUnit best practices You intend to put the code on unit testing, what places? Put it and test code mixed toge
Tomcat Configuration Guide (reprint) 1, is actually very cute kitten TOMCAT By the end of 2003, for my company, but also for the WEBAPP, TOMCAT appear in front of me (before the use of weblogic), I am somewhat at a loss, free of the good things you really
Apache java Project Introduction (2009-02-25 10:21:46) Apache java Project Introduction Recent contact with Jakarta-Common-BeanUtils this Dongdong more so on the Apache Jakarta Project interest, on their official website under the terms of the feeling a l
In fact very simple and only required two steps: 1. In the web.xml file add the following code to load the spring configuration file. <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationC
JAVA development unit testing tool for the latest card-Agitator The Value of Healthy Software. Healthy software defects than with the superiority of the software is more, they have a better structure and design, scalability, reusability, robustness, and t
To write a kind robust Ajax applications that require proper treatment in the request and response status code. HTTP status code from the three decimal digits, which appear in the HTTP server by sending the first line of response. Status code of the five
Before JavaEye news ruby memory leak culprit - the specter of a detailed analysis of the current pointer Ruby official version (MRI version) causes memory leaks. Brent Roman today issued a Super patch , Which contains 6 patch file to resolve the Ruby ...
In the Web engineering process, Web-based system testing, recognition and acceptance is an important and challenging job. Web-based system testing with the traditional software testing different, it will not only need to check and verify whether the desig