Several Basic concepts to be mastered in stress testing

Source: Internet
Author: User

1: Requests per second)

The quantitative description of the server's concurrent processing capability. The unit is reqs/s. It refers to the number of requests processed per unit time under a number of concurrent users. The maximum number of requests that can be processed per unit time under a number of concurrent users is called the maximum throughput.

Remember: The throughput is based on the number of concurrent users. This statement represents two meanings: 1. throughput is related to the number of concurrent users; 2. throughput is generally different for different concurrent users.

Calculation formula: Total number of requests/time taken to process the number of completed requests, that is

Request per second = Complete requests/Time taken for tests

2: number of concurrent connections)

The number of concurrent connections refers to the number of requests received by the server at a certain time point. Simply put, it is a session.

3: number of concurrent users (The number of concurrent users, Concurrency Level)

Note the difference between this concept and the number of concurrent connections. A user may have multiple sessions, that is, the number of connections. In HTTP/1.1, IE7 supports two concurrent connections, IE8 supports six concurrent connections, and FireFox3 supports four concurrent connections. Therefore, the number of concurrent users must be divided by this base.

4: average user request wait Time (Time per request)

Calculation formula: time spent on processing all requests/(total number of requests/number of concurrent users), that is

Time per request = Time taken for tests/(Complete requests/Concurrency Level)

5: Average Server request wait Time (Time per request: Wait SS all concurrent requests)

Calculation formula: the time/total number of requests processed

Time taken for/testsComplete requests

We can see that it is the reciprocal of the throughput.

At the same time, it also = average user request wait time/number of concurrent users, that is

Time per request/Concurrency Level

II. Specific Practices

1: select a stress testing tool

Heavyweight tools include Visual Studio Tools and Loader Runner (LR). Lightweight tools include apachetings in the Apache project, or AB for short. You can download it here:AB .zip.

2: simple use of AB and parameter Introduction

The above test is based on one of my asp.net pages. Stress testing must be performed all the time. If you do not know how many concurrent users your application can host, it is basically a time bomb.

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.