Apache AB Parameters--pressure test

Source: Internet
Author: User

Apache comes with AB, which is very easy to use and AB can initiate test requests locally directly on the Web server. This is critical because we want to test the processing time of the server without including the data on the network transmission time and the user PC's local computing time.

It is clear that the essence of AB's testing is HTTP-based, so it can be said that it is a black-box performance test for Web server software, and that all the data and calculations it obtains can be explained by HTTP.

If it is not installed, you will be prompted to install it at run time.

View AB version:

[Email protected]/etc/apache2 $ ab-is2.31528965 $>1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Foundation, HT TP://www.apache.org/

As an example:

[Email protected]/etc/apache2 $ ab-nTen-CTenhttp//www.baidu.com/This isApachebench, Version2.3< $Revision:1528965$>Copyright1996Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Foundation, http://www.apache.org/Benchmarking www.baidu.com (Be patient) ... doneserver software:apache-coyote/1.1Server Hostname:www.baidu.comServer Port: theDocument Path:/Document Length:521Bytes//requested page size concurrency level: volume//Concurrency Time taken forTests3.467seconds//test total time Elapsed complete requests: //completed requests Failed Requests:9 //failed requests (Connect:0, Receive:0, Length:9, Exceptions:0) Total Transferred:880759Bytes//Total transfer of data volume HTML transferred:871360bytesRequests per second: 2.88 [#/  sec] (mean) //  per second request volume. (Just the response speed of the test page)timeper request: 3466.517 [MS] (mean)  //equals time taken for tests/(the complete requests/concurrency level) that is the average request latency (the time the user waits) Time per request: 346.652  [MS] (mean, across all concurrent requests)  //equals time taken for Tests/complete requests i.e. server average please The response time is the same as the concurrency of 1 o'clock user wait time Transfer rate  :248.12[kbytes/sec] Received//average number of K per second, that is, bandwidth rate connection times (ms) min mean[+/-SD] Median Maxconnect: to    the   2.6      *       theProcessing:2 1962 909.4   2298    3432Waiting:2  336 528.4      the    1528Total: - 1996 910.9   2337    3466Percentage of the requests served within a certain time (MS) -%2337   the%2467   the%2497   the%2588   -%3466   the%3466  98%3466   About%3466  -%3466(Longest request)

Parameter description:

-N 10 indicates the total number of requests is 10 and a total of 10 requests were made
-C 10 Indicates the number of concurrent users is 10, while 10 users are accessing
http://www.baidu.com/represents the destination URL for these requests (note that the destination address must be followed by a trailing backslash/)

Parameters to follow:

Requests per second: The amount of requests per second, the so-called throughput rate. "The smaller the value, the better."

Time per request:3466.517 [MS] (mean) is the average request latency, which is also the throughput rate (the time the user waits) mean mean
Time per request:346.652 [MS] (mean, across all concurrent requests)//server average request response time at concurrency of 1 o'clock user wait times same "the bigger the better"

Briefly summarize below:

Requests per second the smaller the better, the greater the value of time per request the better

Resources:

http://blog.itpub.net/29773961/viewspace-1470071/

Https://blog.linuxeye.com/124.html

Apache AB Parameters--pressure test

Related Article

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.