Open Source Performance test Tool Apache AB uses

Source: Internet
Author: User
Tags response code server port

Apache AB is a small tool that comes with the famous Web server Software Apache, which can simultaneously simulate multiple concurrent requests and test the maximum load capacity of Web servers such as Apache.

The basic usage of Apache AB is: AB [options] [http://]hostname[:p Ort]/path, several of the most common options are as follows:


-N: Indicates the total number of requests.
-C: Indicates the number of concurrent users, the number of concurrent users can not be greater than the total number of requests, or error.
-url: Represents the destination URL of the request.


Apache AB Combat:

using Apache AB to test Uncle Kim's Sina blog homepage http://blog.sina.com.cn/jcy77 , a total of 10 concurrent 1000 tests were performed, with the following command:


AB-N1000-C10 http://blog.sina.com.cn/jcy77

The test results are as follows:
Server Software : nginx/1.2.8//tested Web server Software name
Server Hostname: blog.sina.com.cn// URL host name of the request
Server Port : 80//The listening port of the Web server Software being tested

Document Path : c35>/jcy77//The root absolute path in the requested URL
Document Length : 62437 bytes// The body length of the HTTP response data

Concurrency level:10//Number of concurrent users
Time taken for tests:12.038 seconds//Total time spent on all these requests processing completed
Complete requests:1000//test number of successful requests
Failed requests:0//number of requests failed to test
Write errors: 0
Total Transferred:63010000 bytes
HTML Transferred:62437000 bytes
Requests per second:83.07 [#/sec] (mean)//Throughput, equivalent to TPS in LoadRunner (number of transactions per second)
Time per request:120.377 [MS] (mean//User average request wait time, equivalent to average transaction response time in LoadRunner
Time per request:12.038 [MS] (mean, across all concurrent requests)//average request waiting time for the server
Transfer Rate: 5111.71 [kbytes/sec] received//request the length of data fetched from the server within the unit time

Connection Times (MS)
MinMEAN[+/-SD] MedianMax
Connect: 3113.41131
Processing:5110818.3104239
Waiting:83215.629 108
Total:7112019.7115252

Percentage of the requests served within a certain time (MS)//This part of the data is used to describe the distribution of processing times per request. For example, the following test 80% request processing time is no more than 128ms. This processing time refers to the previous time per request, that is, for a single user, the average processing times for each of the requests.
50% 115
66% 120
75% 124
80% 128
90% 147
95% 164
98% 180
99% 191
100% 252 (longest request)

The above test results show that in the case of 10 concurrent users, the response time of the access Golden Chaoyang blog is below 252ms. Intuitively, I think this time seems to be a problem? So test several times to get rid of the obvious anomalies (every time I use the LoadRunner test, I also do this, that is, more tests to eliminate the value of the obvious anomaly).

NOTE: Apache AB judge success is only to determine the 2xx response code, not receive the server's return value, so the response and network bandwidth advantage, but loadrunner to fully accept the server's return value, so in the same response time, Apache The number of concurrent users supported by the AB test will be greater than the LOADRUNNER,TPS value and correspondingly larger than the LoadRunner.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Open Source Performance test Tool Apache AB uses

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.