当前位置:网站首页>Common interview questions for performance test
Common interview questions for performance test
2022-07-01 03:04:00 【Software testing Lao Mo】
Catalog
1、 Briefly describe the performance test process ?
2、 How to determine the maximum load of the system ?
3、 Where do you system ( What functions ) Performance testing was done ?
4、 How do you determine the number of concurrent users ?
5、 Where do you run your performance tests ?
6、 When do you perform the performance test ?
7、 How to analyze performance test results ?
8、think_time What is the role of ?
9、 How to identify system bottlenecks ?
10、 How to judge whether the performance of the system is getting better or worse
11、 Where are your performance test requirements ?
12、 How to achieve 200 Concurrency of users ?
13、 When to make connections , How does association work ?
14、 It has the function of verification code , How to do performance test ?
15、 Is your performance test done in the foreground or background ?
16、 What are the performance test indicators
17、 How to script enhancements ?
1、 sketch Performance testing process ?
1. Analyze performance requirements . Select the scenarios that users use most frequently to test , such as : land , Search for , Order and so on . Determine performance indicators , such as : The transaction pass rate is 100%,TOP99% yes 5 second , The maximum concurrent users are 1000 people ,CPU And memory usage in 70% following
2. Make a performance test plan , Define the test time ( Usually after the function is stable , Such as after the first round of testing ) And test environment and test tools
3. Write test cases
4. Set up the test environment , Prepare the test data
5. Write performance test scripts
6. Performance test script tuning . Set checkpoint 、 A parameterized 、 relation 、 Marshal Point 、 Business , Adjust your thinking time , Remove redundant scripts
7. Design test scenarios , Run the test script , Monitoring server ,
8. Analyze test results , Collect relevant log bills of lading for development
9. Regression performance test
10. Write test report
2、 How to determine the maximum load of the system ?
Pass load test , Increasing the number of users , As the number of users increases , Each performance index will change accordingly , When there is a performance inflection point , such as , When the number of users reaches a certain order of magnitude , A sudden increase in response time , Then the number of users corresponding to this inflection point is the maximum number of users that the system can carry .
3、 Where do you system ( What functions ) Performance testing was done ?
The most frequently used function of users is selected for testing , such as : land , Search for , place order
4、 How do you determine the number of concurrent users ?
1) Will be online for a while , Based on the collected user access data, estimate
2) To determine according to demand ( Use peak hours , Number of registered users , Single response time, etc
5、 Where do you run your performance tests ?
Refer to the answer : We will build a set of independent performance test environment for testing
6、 When do you perform the performance test ?
The benchmark : After the function test , Do it when the system is stable .
The load test : All is quiet at dead of night , When the system is not used
7、 How to analyze performance test results ?
First of all, check the pass rate of things , Then analyze other performance indicators , such as , Confirm response time , Transaction pass rate ,CPU Whether the indicators meet the needs ; If the test results are not credible , Analyze the cause of the abnormality , Retest after modification
8、think_time What is the role of ?
Simulate real production user operation , Look at the impact on the server .
After confirming that the performance test results are reliable , If the following problems are found , Follow the ideas below to locate the problem
Question 1 : Response time not up to standard
Check whether the time consumed by the transaction is mainly in the network transmission or the server , If it's the Internet , Just combine Throughput( Network throughput ) chart , Is there a bottleneck in computing bandwidth , If there is a bottleneck , Consider increasing bandwidth , Or compress the data transmission ; If there is no bottleneck , that , Maybe it's the instability of the Internet . If the main time is spent on the server , Just look at it separately web Server and database server CPU, Is the memory usage too high , Because it's too high CPU, Memory is bound to cause long response times , If it is web Server issues , Just put web Take down the corresponding user operation log on the server , Send development orientation ; If it's a database problem , Take down the corresponding log on the database server , Send development orientation .
Question two : The server CPU Indicators are abnormal
Analysis methods : Just put web Take down the corresponding user operation log on the server , Send development orientation .
Question 3 : database CPU Indicators are abnormal
Analysis methods : Take down the corresponding log on the database server , Send development orientation .
Question 4 : Memory leak
Analysis methods : Put the memory heap Take out the data , Analyze which object consumes the most memory , Then send it to the development location .
Question five : The program runs successfully in the single user scenario , Multi user operation fails , Prompt that the server cannot be connected .
reason : The program may be a single threaded processing mechanism
9、 How to identify system bottlenecks ?
from TPS Index analysis ,TPS That is, the number of transactions processed by the system per unit time . Observe whether the number of transactions that the system can process per second will increase with the number of users
10、 How to judge whether the performance of the system is getting better or worse
Benchmarking against performance metrics
11、 Where are your performance test requirements ?
1: Customers provide demand
2: O & M provides demand
3: Development provides requirements
12、 How to achieve 200 Concurrency of users ?
Add a collection point after the request corresponding to the script
13、 When to make connections , How does association work ?
When the context of the script is connected , Just use correlation .
For example, login token relation , Add, delete, and change the primary key id relation
14、 It has the function of verification code , How to do performance test ?
1、 Mask the verification code temporarily , After the performance test , To restore
2、 Use universal verification code
15、 Is your performance test done in the foreground or background ?
BS project : It tests the performance of the background server and the browser ;
APP project : Mobile and server-side performance
16、 What are the performance test indicators
response time
throughput
cpu
Memory
io
disk
17、 How to script enhancements ?
1、 Do parameterization
2、 Make connections
3、 Add transaction
4、 Add assertions
5、 Add assembly point
6、 Add thinking time
边栏推荐
- [exsi] transfer files between hosts
- 鼠标悬停效果三
- Redis分布式锁的8大坑
- Introduction to webrtc concept -- an article on understanding source, track, sink and mediastream
- Network address translation (NAT) technology
- A small document of JS method Encyclopedia
- Restcloud ETL practice to realize incremental data synchronization without identification bit
- [linear DP] longest common subsequence
- Mnasnet learning notes
- The best learning method in the world: Feynman learning method
猜你喜欢

Communication protocol -- Classification and characteristics Introduction

POI exports excel and displays hierarchically according to parent-child nodes

Huawei operator level router configuration example | BGP VPLS configuration example

Prototype and prototype chain in JS
![[applet project development -- JD mall] uni app commodity classification page (first)](/img/6c/5b92fc1f18d58e0fdf6f1896188fcd.png)
[applet project development -- JD mall] uni app commodity classification page (first)

xxl-job使用指南
![Lavaweb [first understanding the solution of subsequent problems]](/img/8a/08cb2736c2c198d926dbe00c004c3f.png)
Lavaweb [first understanding the solution of subsequent problems]

世界上最好的学习法:费曼学习法

【EXSI】主机间传输文件

Cloud native annual technology inventory is released! Ride the wind and waves at the right time
随机推荐
Network address translation (NAT) technology
Catch 222222
Error accessing URL 404
Redis 教程
调试定位导航遇到的问题总结
Redis分布式锁的8大坑
[exsi] transfer files between hosts
The 'mental (tiring) process' of building kubernetes/kubesphere environment with kubekey
Use ipmitool to configure BMC network and user information of X86 server
Lenovo x86 server restart management controller (xclarity controller) or TSM method
【微信小程序開發】樣式匯總
Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
Ipmitool download address and possible problems during compilation and installation
[applet project development -- Jingdong Mall] classified navigation area of uni app
PTA 1017
Mouse over effect VI
Optimal transport Series 1
Gartner research: in China, the adoption of hybrid cloud has become the mainstream trend
JS to find duplicate elements in two arrays
Const and the secret of pointers