Table of contents
What is the difference between performance testing and functional testing?
What are the factors that affect the performance of a software?
Transactions passed per second
Classification of Performance Tests
Performance Test Execution Process
Performance Test Definition
Testers use test tools to simulate whether the corresponding system performance can meet expectations in different scenarios.
What is the difference between performance testing and functional testing?
Functional testing is to rely on manual testing to test whether the function of the software can be realized, no matter what the scene is, as long as the function can be run normally
Performance testing relies on tools to test whether the software can still work normally in extreme scenarios or in stressful environments
What are the factors that affect the performance of a software?
Hardware: server CPU utilization, memory, disk operating frequency, number of CPU cores
Software: algorithms, programming languages
Users: number of users, user usage time, user access frequency
performance test index
The performance test indicators mainly include the number of concurrent users, response time, transaction response time, number of transactions per second, click rate and throughput rate.
concurrent users
Concurrency includes in performance testing: a large number of users, at the same time.
From a business perspective, the number of concurrent users refers to the number of users accessing the server at the same time
From the back-end server, the number of concurrent users refers to the number of requests to the server at the same time
Response time
Systematically speaking, the time required for the whole process from the user sending a request to receiving the system feedback
Response time is divided into front-end display time and system response time .Front-end display time refers to the time it takes for the client to render the front-end page after receiving the data returned by the server. (N1+A1+N2+A2+N3+A3+N4)The response time of the system is divided into the communication and request processing time between various servers such as web server, application server, and database server. (A1+N2+A2+N3+A3)
transaction response time
Transactions passed per second
click rate
throughput
Throughput refers to the number of user requests processed by the system.
The throughput rate refers to the number of user requests that the system can handle within a unit of time. The higher the throughput rate, the better the system performance.
Classification of Performance Tests
Performance testing is divided into benchmark performance testing, load performance testing, stress performance testing and reliability testing
Benchmarking
Benchmark performance test definition: Let the system run under normal conditions and observe software performance indicators
Application scenario: When the software is just launched, it is necessary to thoroughly understand the performance of the software system
load performance test
Load performance test definition: Verify that the software is under a certain pressure, and observe whether the performance index has an inflection point
stress performance test
When the system is in a saturated state and is at a critical value, perform an increased stress test on the system to observe system performance indicators (stress performance tests often crash the system)
reliability test
Reliability testing is to verify that the system operates in a continuous period of time, and observe whether the performance indicators of the system are normal during this period of time
Reliability test time: continuous 1day -> continuous operation for a week -> continuous operation for a month -> continuous operation for a quarter -> continuous operation for a year
Examples of benchmark performance tests, load performance tests, and stress performance tests are as follows:
Performance Test Execution Process