AB test Site Throughput Rate Introduction

Source: Internet
Author: User

Throughput Rate Introduction

What is the throughput rate, explained, is the number of requests processed by the server in the unit time, this may be our measure of a Web site is a very important indicator, when 10 users simultaneously initiated 100 requests and 1 users simultaneously to the server to initiate 1000 requests, our effect is not the same, Here is a concept to illustrate that the continuous request means that a user's request is made through the server and returns to the next request, the process becomes a continuous request, when we 10 users to initiate 100 requests, each user's request will be blocked in the buffer, waiting for the next request to return, So obviously the effect of the two ways of operation on the site is completely different, below we use Apache's own performance test Tool AB to test our throughput rate, in the Linux environment input (oneself hit the Apache installation directory),
[email protected]:/usr/ali/apache2/bin$ ab-n1000-c10 http://cn.my.alibaba.com:12608/index.htm
Get the following results
This is apachebench, Version 2.3 < $Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/
Licensed to the Apache software Foundation, http://www.apache.org/

Benchmarking cn.my.alibaba.com (Be patient)
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Finished requests


Server Software:

apache/2.0.59
Server Hostname:cn.my.alibaba.com
Server port:12608

Document Path:/index.htm
Document length:0 bytes

Concurrency level:10
Time taken for tests:8.636 seconds
Complete requests:1000
Failed requests:0
Write errors:0
Non-2xx responses:1000
Total transferred:1023000 bytes
HTML transferred:0 bytes
requests per second:115.79 [#/sec] (mean)
Time per request:86.364 [MS] (mean)
Time per request:8.636 [MS] (mean, across all concurrent requests)
Transfer rate:115.68 [Kbytes/sec] Received

Connection Times (MS)
Min MEAN[+/-SD] Median max
Connect:0 1 3.1 0 36
Processing:8 85 282.2 27 3242
Waiting:8 85 281.6 27 3242
Total:8 86 282.5 28 3242

Percentage of the requests served within a certain time (MS)
50% 28
66% 49
75% 64
80% 77
90% 132
95% 289
98% 513
99% 1370
100% 3242 (Longest request)

-N1000 represents 1000 requests,-C10 represents 10 users, below to explain the next few important result indicators
request per request: This is our focus on the throughput rate, he equalsComplete Requests/time taken for tests
Time per request: The average user waits, and he equals taken for/(complete requests/concurrency level)
Time per Requestmean, across all concurrent requests) Server average processing of the request, he equals
Time taken For/complete requests
Here are some important indicators.
When we change to 1 users 10 requests, his throughput will increase (because of the length of the reason will not print out the data), but when we are 10 users, 10,000 requests when the throughput rate will drop, this shows a problem, when we reached a critical point, when we have the highest throughput time, When the number of requests and users can increase the throughput will be reduced, for example, we run 20.1-meter points do not feel tired, run 30 meters will not feel tired, when you run to 100 meters when feeling just not tired is not easy, but when you more than 100 meters, you will feel panting, that 100 meters is A critical point, the ability of the server to process is similar to this, but just as we grasp the best concurrency policy of the use of the Web server, we can deal with a variety of concurrent user requests, the answer is obviously not,



just test, home throughput rate, see Request per second


Although this value does not represent meaning, just the optimization of the Hotspot page, but the performance is still amazing
2509*60*60*12=108388800 (12 hours per day, 100 million + PV for single machine)
2509*60*60*8=72259200 (less, count 8 hours, more than 70 million PV)
2509*60*60*2=18064800 (according to the peak period, the general situation is one-fourth, to cope with 18 million PV)

AB test Site Throughput Rate Introduction

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.