当前位置:网站首页>Full stack performance testing theory - Summary
Full stack performance testing theory - Summary
2022-06-30 07:54:00 【Automated test】
What is performance testing
Definition : It simulates a variety of normal functions through automated testing tools 、 Peak and abnormal load conditions to test the performance of the system , The problems found in the performance test are not called defects or Bug, It's called Performance bottleneck , Not called repair , It's called Optimize .
1. It mainly contains three meanings :
Performance testing needs tools to implement
In addition to paying attention to normal conditions, performance testing , It also focuses on many peaks or abnormal system operation in space and time
The performance test analyzes the performance of the system with the help of various indicators monitored and collected
2. Angle of black box test
Data requests are sent over the network
The server front end receives and processes
Get relevant data from the database server
The front end returns data after processing
Application interface receives data response
3. From a programmer's point of view
Structural rationality
Database design rationality
Code and algorithm
How resources are used in the system
4. From the perspective of system operation and maintenance
Hardware resource utilization
What kind of hardware can improve system performance
Can the system support 7*24 Service for
Extensibility 、 Compatibility 、 The maximum capacity 、 Possible bottlenecks
5. Analyze performance tests from a professional perspective
Server hardware performance
Set performance goals based on requirements and historical data
Build performance model
Analyze the performance of the development code framework and hardware framework
Benchmarking against development releases
Perform performance acceptance and stability test on the software
Configuration and optimization of production environment
Develop performance test cases
Develop performance test scenario design
Specific performance analysis
Factors affecting performance
Performance test categories
General performance test : Verify whether the software can meet the performance index under normal conditions and system conditions .
The load test : Verify that the system runs longer under certain pressure , Until the system performance appears " Inflection point ".
Pressure test : Verify the performance of the system under the limit load or a certain index has been saturated .
Stability test : Verify that the system operates continuously , Check the performance indicators of the system . 11 MTBF ( The average time interval between errors )
Big data test : Verify whether various indicators of the system are normal when the system uses a large number of data to exert pressure or influence on the system .
Configuration testing : Verify that the system has different software and hardware configurations , Find out the optimal allocation of various resources of the system .
Common terms for performance
Virtual user : The performance test tool simulates the users of processing , Simulate the operation behavior of actual users .
Concurrent and concurrent users
Concurrent : emphasize ” A large number of users ” Of " Simultaneity ” operation ( This operation requires pressure on the server )
Number of concurrent users : It refers to the number of users who simultaneously perform operations that affect the server at a certain time .
Be careful : And " Number of system users " and " Number of online users ” Differences between .
Number of system users : The total number of users using a particular system .
Number of online users : Login system , Number of people using the system .
response time : contain “ Request response time ” and “ Transaction response time ”
Thinking time : The interval between requests .
Click through rate : It generally refers to the number of requests submitted by the user to the server per second .
(Web In the test, it refers to HTTP Number of requests )
Transactions per second : It refers to the number of transactions or transactions that the system can process per second .
(Transaction Per Second, TPS)
throughput : In a single business , The total amount of data interaction between client and server ; Affected by server performance and network performance .
Throughput rate : Throughput divided by transmission time . One of the important indicators to measure server performance and network performance ; It can be used in general " Number of requests / second 、 Number of pages / second 、 Number of bytes / second ” Measure in equal units .
Performance counters : Performance counters are a series of indicators used to describe the performance of various types of servers or operating systems , It plays an important role in resource monitoring and system bottleneck analysis .
Performance testing process
Performance testing process :( performance ) Demand analysis ->( performance ) test plan -> Test environment construction ( Infinitely close to the actual operating environment )-> Performance test tool selection -> The test execution -> Find performance bottlenecks -> Performance tuning and optimization -> Verification and closure .
1、 Demand analysis ( Example )
2、 Test scenarios
3、 Performance testing process
3.1 Criteria for judging whether the test results pass ( For reference only )
3.2 Skills required for performance tuning
3.3 Key points and difficulties in performance testing
Demand analysis
Scene design
Performance diagnostics tuning
Environment construction and simulation
4、 Performance test cases ( Test scenarios )-( Example )
notes : There is no reverse verification of data in the performance test ( Functional test completed )
Terms in use cases :
Marshal Point : All users come together , Concurrent .
Business : The general name of user's operation behavior 、 To measure TPF、 The basis of transaction success rate .
Expected results : After the performance test , Criteria for judging the results .
Skills required for performance testing
Performance testing tools
If you want to know, you are welcome to interact with us in the message area ~
If you think it's helpful, give it a compliment
Finally, I made up some notes of learning materials : Want to make up the learning materials, notes, and the above-mentioned full set of Huawei interview questions 【 Private letter my key words “999” Free access 】 High salary resume template ( Interview collection is free )
High salary resume template ( Interview collection is free )
边栏推荐
- 深度学习——BRNN和DRNN
- Projection point of point on line
- Final review -php learning notes 2-php language foundation
- November 16, 2021 [reading notes] - macro genome analysis process
- Go 数据类型篇之基本数据类型之间的转化
- Xiashuo think tank: 28 updates of the planet reported today (including the information of flirting with girls and Han Tuo on Valentine's day)
- At the end of June, you can start to make preparations, otherwise you won't have a share in such a profitable industry
- TP5 set direct download file
- Digital white paper on total cost management in chain operation industry
- Lodash filter collection using array of values
猜你喜欢
Simple application of generating function -- integer splitting 2
Final review -php learning notes 7-php and web page interaction
Deep learning -- Realization of convolution by sliding window
深度学习——卷积的滑动窗口实现
Final review -php learning notes 2-php language foundation
期末复习-PHP学习笔记4-PHP自定义函数
Disk space, logical volume
Analysys analysis: online audio content consumption market analysis 2022
At the end of June, you can start to make preparations, otherwise you won't have a share in such a profitable industry
Digital white paper on total cost management in chain operation industry
随机推荐
Permutation and combination of probability
Inversion Lemma
Construction of module 5 of actual combat Battalion
Hit the industry directly | the flying propeller launched the industry's first model selection tool
Final review -php learning notes 1
深度学习——循环神经网络
Summary and common applications of direction and angle operators in Halcon
November 22, 2021 [reading notes] - bioinformatics and functional genomics (Section 5 of Chapter 5 uses a comparison tool similar to blast to quickly search genomic DNA)
Deep learning - embedding matrix and learning word embedding andword2vec
Analysys analysis: online audio content consumption market analysis 2022
想问问,炒股怎么选择证券公司?网上开户安全么?
Tencent and Fudan University "2021-2022 yuan universe report" with 102 yuan universe collections
深度学习——LSTM
December 13, 2021 [reading notes] | understanding of chain specific database building
期末复习-PHP学习笔记3-PHP流程控制语句
Deep learning -- recurrent neural network
Deep learning -- Realization of convolution by sliding window
深度学习——GRU单元
2022 Research Report on China's intelligent fiscal and tax Market: accurate positioning, integration and diversity
Combinatorial mathematics Chapter 1 Notes