[Performance Test] Number of concurrent users + analysis of important indicators of e-commerce software performance stress test...


Preface

1. How to choose the number of concurrent users for performance testing

Concurrent users: refers to users who operate services at the same time in the real system. They are generally called virtual users (VirutalUser) in performance testing tools.

There is a big difference between concurrent users, registered users, and online users. Concurrent users will definitely put pressure on the server. The number of online users only "hangs" on the system and does not put pressure on the server. Registered users generally refer to users that exist in the database.

TPS: TransactionPerSecond, the number of transactions per second, is an important indicator of system performance.

Transactions are generated by virtual users. If a virtual user completes a transaction within 1 second, then TPS is 1. To achieve 1000TPS, at least 1000 users are needed; if the response time of a certain business is 1 millisecond, then 1 user will If 1,000 transactions can be completed in 1 second, TPS is 1,000.

Therefore, one user can generate 1000TPS, and 1000 users can also generate 1000TPS. It mainly depends on the response time.

For the selection of the number of concurrent users, you can select the number of people who use the system during a certain period of time during the peak time of the online system. These numbers can be considered as the number of online users, and 10% of the number of concurrent users is enough.

For example, if the number of users using the system within one hour is 10,000, then taking 10% as the number of concurrent users is basically enough.

For the evaluation of TPS, TPS can be calculated based on the number of business transactions completed per unit time by the online system within 10 minutes during the peak time, that is, the number of business transactions/unit time (10*60).

For newly launched systems, there is no historical data for reference, so various indicators can only be predicted based on business development trends.

Performance testing requires a set of standardized processes and testing strategies. During stress testing, the number of users is generally increased according to a gradient pressure method to observe the various reactions of the system under different pressures. If the next time is not fully evaluated, Stressing a large number of users will lead to high system failure rates and long response times, and the final test results will not be of much meaning.

Under normal circumstances, 5,000 concurrent users are enough for performance testing of large systems (large business volumes and many machines), and 1,000 concurrent users are enough for small and medium-sized systems.

2. E-commerce software performance testing-performance indicators

When shopping carnivals or major sales festivals come, it is also a time to test the stability and performance of e-commerce platforms. For e-commerce platforms or most shopping websites, website platform performance problems such as excessive visitor traffic or unstable network environment pose huge challenges to e-commerce platforms, because these problems are likely to have a negative impact on user experience. .

Therefore, for website maintainers, doing a good job in e-commerce platform performance testing is of great significance for the website to handle high traffic bursts and improve platform stability.

So how to conduct e-commerce platform performance testing and what is the specific testing process? The editor will conduct a simple analysis on this and use a specific performance testing solution process template to help everyone better understand e-commerce platform performance testing.

1) How to conduct e-commerce platform performance testing?

E-commerce platform performance testing, as the name suggests, is to perform performance testing on the e-commerce platform or website, throughout the entire e-commerce platform work cycle. From sorting out the early testing business to later scenario modeling, test capacity planning, etc., testers are required to conduct detailed performance testing.

2) What are the performance test indicators of e-commerce platforms?

In daily e-commerce platform testing work, the test indicators to measure platform performance usually include the following:

Response time: The response time referred to here includes network response time, the time it usually takes for the server to complete a transaction request, and the client's response time.

Server resource usage: The usage of memory, CPU and other resources of the e-commerce platform during the test process.

Number of concurrent users: The maximum number of users that the platform can carry while executing the same operation at the same time.

Throughput: System processing capability.

3) E-commerce platform performance test charges

As for the fees for e-commerce platform performance testing, it should be determined based on the specific conditions of the website. For example, if some shopping websites have a large number of users and some websites have complex functions, then the requirements for performance testing must be higher.

4) Specific performance testing solution template

The specific solution template for e-commerce industry platform or software performance testing is as follows:

Business sorting and analysis:
In this part, it is necessary to clearly distinguish core business and basic business, conduct classification analysis on priority and importance, and clarify tester management and testing tasks.

Online traffic assessment:
Evaluate the possible traffic and determine the approximate test range.

Scenario modeling:
Based on the preliminary preparation work, establish clear business scenarios and conduct stress testing.

Test implementation phase:
Execute the test work, observe various indicators during the test process, and discover problems in the system.

Test result analysis:
Determine possible bottlenecks and perform performance tuning.

The following is the most comprehensive software testing engineer learning knowledge architecture system diagram in 2023 that I compiled.

1. Python programming from entry to proficiency

Please add image description

2. Practical implementation of interface automation projects

Please add image description

3. Web automation project actual combat

Please add image description

4. Practical implementation of App automation project

Please add image description

5. Resumes of first-tier manufacturers

Please add image description

6. Test and develop DevOps system

Please add image description

7. Commonly used automated testing tools

Please add image description

8. JMeter performance test

Please add image description

9. Summary (little surprise at the end)

Only by taking risks can you gain more. Don't stay in your comfort zone and pursue excellence. Only by constantly breaking through yourself can you write your own brilliant life. Believe in yourself and persevere, and you will become the best version of yourself.

Only by constantly challenging ourselves can we create a better tomorrow. Keep chasing your dreams and try your best. Only in this way can you harvest your own wonderful things on the long road of life. Believe in yourself and move forward bravely, and you will create your own glorious journey.

No matter what the starting point is, as long as you move forward firmly, you will eventually reach the other side of success. Be brave enough to chase your dreams, surpass yourself, never give up, never get discouraged, and you will write your own magnificent chapter and bloom a dazzling life.

Guess you like

Origin blog.csdn.net/shuang_waiwai/article/details/134926888