当前位置:网站首页>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
边栏推荐
- 鼠标悬停效果一
- Redis高效点赞与取消功能
- Install vcenter6.7 [vcsa6.7 (vCenter server appliance 6.7)]
- Huawei operator level router configuration example | configuration optionA mode cross domain LDP VPLS example
- Metadata in NFT
- Mouse over effect 10
- PTA 1017
- [exsi] transfer files between hosts
- Restcloud ETL WebService data synchronization to local
- php批量excel转word
猜你喜欢

Introduction and basic knowledge of machine learning

咱就是说 随便整几千个表情包为我所用一下

The best learning method in the world: Feynman learning method

# 使用 KubeKey 搭建 Kubernetes/KubeSphere 环境的'心路(累)历程'

【机器学习】向量化计算 -- 机器学习路上必经路

js中的原型和原型链

PHP batch Excel to word

Mnasnet learning notes

How to verify whether the contents of two files are the same

MySQL index --01--- design principle of index
随机推荐
鼠标悬停效果四
Introduction to the core functions of webrtc -- an article to understand peerconnectionfactoryinterface rtcconfiguration peerconnectioninterface
VMware vSphere 6.7虚拟化云管理之12、VCSA6.7更新vCenter Server许可
MySQL knowledge points
【微信小程序開發】樣式匯總
[linear DP] shortest editing distance
UE4 rendering pipeline learning notes
IEDA 右键源码文件菜单简介
Druid监控统计数据源
The 'mental (tiring) process' of building kubernetes/kubesphere environment with kubekey
鼠标悬停效果六
Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
[small program project development -- Jingdong Mall] the home page commodity floor of uni app
Introduction to kubernetes resource objects and common commands (II)
Magnetic manometer and measurement of foreign coins
第03章_用戶與權限管理
Redis分布式锁的8大坑
Restcloud ETL practice to realize incremental data synchronization without identification bit
Mouse over effect I
HTB-Lame