"Apache" AB tool

Source: Internet
Author: User
Tags response code server port

Format: AB [options] [http://]hostname[:p Ort]/path

-N Requests number of requests to perform//The number of requests executed in the test session (the total number of times the page was visited for this test). By default, only one request is executed. -c concurrency number of multiple requests to make//the number of requests produced at one time (number of concurrent). The default is one at a time. -T TimeLimit Seconds to Max. Wait forResponses//the maximum number of seconds the test takes. Its internal implied value is-n 50000. It allows you to limit the testing of the server to a fixed total time. By default, there is no time limit. -p postfile File containing data to POST//A file that contains the data that needs to be post, such as "p1=1&p2=2". The method of use is-P 111.txt. (with-T)-T Content-type Content-type header forPOSTing//the Content-type header information used by the post data, such as-T "application/x-www-form-urlencoded". (with-P)-v verbosity how much troubleshooting info to print//set the verbosity of the display information –4 or greater displays header information, 3 or greater values can display a response code (404, 200, and so on), and 2 or greater values can display warnings and other information. -V Displays the version number and exits. -W Print outResultsinchHTML Tables//outputs the result in the format of an HTML table. By default, it is a table with a two-column width on a white background. -I use HEAD instead of GET//executes the head request instead of get. -X attributes String to insert asTable Attributes-Y attributes String to insert asTR Attributes-Z attributes String to insert astd or TH attributes-C attribute Add cookie, eg. -C "c1=1234, c2=2, c3=3″ (repeatable)//-C Cookie-name=value attach a cookie to the request: line. Its typical form is a parameter pair of Name=value. This parameter can be repeated, separated by commas. Tip: You can use the session implementation principle to pass Jsessionid parameters, to achieve the function of maintaining the session, such as-C "c1=1234, c2=2, c3=3, jsessionid=Ff056cd16da9d71cb131c1d56f0319f8″. -H attribute Add arbitrary header line, eg. ' Accept-Encoding:gzip ' Inserted after all normal header lines. (repeatable)-a attribute Add Basic WWW authentication, the Attributesare a colon separated username and password.-P attribute Add Basic Proxy authentication, the Attributesare a colon separated username and password.//-P Proxy-auth-username:password provides a Basic authentication trust to a transit agent. The user name and password are separated by a: and sent in Base64 encoded form. This string is sent regardless of whether the server is required (that is, if the 401 authentication requirement code is 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 ( ThisMessage

1  -  - ' session= "Lfbb2pkp6i9iscivtodmsqmlo7" ' http://live-rd.xuebadev.com/www/manage/pc/orderlist

This isApachebench, Version2.3Copyright1996Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Foundation, http://www.apache.org/Benchmarking192.168.80.157(Be patient) completed -requestscompleted -requestscompleted -requestscompleted therequestscompleted -requestscompleted2400requestscompleted2800requestscompleted3200requestscompleted3600requestscompleted4000requestsfinished4000Requestsserver Software:apache/2.2. theServer Hostname:192.168.80.157Server Port: theDocument Path:/phpinfo.php# test page document Length:50797bytes# Page size concurrency level: +#测试的并发数Time taken forTests11.846seconds# The duration of the entire test complete requests:4000#完成的请求数量Failed Requests:0#失败的请求数量Write Errors:0Total Transferred:204586997bytes# The entire process of network traffic HTML transferred:203479961bytes# The amount of HTML content transferred throughout the process requests per second:337.67[#/sec] (mean) #最重要的指标之一, equivalent to the number of transactions per second in LR, followed by mean in parentheses indicates that this is an average time per request:2961.449[MS] (mean) #最重要的指标之二, which is equivalent to the average transaction response time in LR, followed by the mean in parentheses indicates that this is an average hour per request:2.961[MS] (mean, across all concurrent requests) #每个连接请求实际运行时间的平均值Transfer rate:16866.07[kbytes/sec] received# average per second network traffic, can help to eliminate the problem of excessive network traffic resulting in extended response time connection times (ms) min mean[+/-SD] Median Maxconnect:0 483 1773.5  One 9052Processing:2 556 1459.1 255 11763Waiting:1 515 1459.8  - 11756Total:139 1039 2296.6 275 11843#网络上消耗的时间的分解, the specific algorithm of the data is not very clear percentage of the requests served within a certain time (MS) -%275 the%298 the%328 the%373 -%3260 the%907598%9267 About%11713 -%11843(longest request) #整个场景中所有请求的响应情况. There is a response time for each request in the scene, where 50% of the user's response time is less than 275 milliseconds, the% of user response time is less than 298 milliseconds and the maximum response time is less than 11843 milliseconds. In the case of concurrent requests, the CPU is not actually processed at the same time, but is rotated on a per-request basis, so basically the first time of the request is approximately equal to the second time per requests multiplied by the number of concurrent requests.

"Apache" AB tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.