当前位置:网站首页>Test experience data
Test experience data
2022-04-23 03:09:00 【T_ yoo_ csdn】
1. Test indicators
1.1 Average response time ART:
Response time follows 2、5、8s principle , The response time of this test is less than or equal to 8s;
1.2 Number of concurrent users :
Now the number of operators on peak days 500 people ,20% Calculation of concurrency , The number of concurrent users on peak days is greater than or equal to 100
Planning for the future 2 The annual peak operation reaches 600 people ,20% The concurrency value , The number of concurrent users is greater than or equal to 120
It is planned that the number of operators will reach... In the next three years 700 people ,20% The concurrency value , The number of users is greater than or equal to 140.
1.3 Resource usage indicators :
cpu The utilization rate is less than or equal to 80%
Memory utilization is less than or equal to 80%
The disk exchange rate is less than or equal to 80%
1.4 tps value :
Number of transactions processed per second ,80% My deal is in 20% Time to finish , Daily trading volume 10 Ten thousand brush , One day 8 Hours
tps=80%*100000/(8*3600*20%)=13.89
Concurrent transaction success rate : Greater than or equal to 95%
2. Test type
2.1 The benchmark
Single transaction single user test , It takes time for a typical transaction to obtain a single transaction without pressure , Provide a data reference for subsequent concurrent testing , A user runs 5 minute .
Verify the correctness of test script and test parameters .
Get the performance data of a single transaction , It is mainly the average response time of a single transaction 、TPS.
2.2 Concurrent test
It is mainly divided into : Single transaction multi-user test and mixed transaction multi-user test , Because you have to run stability in the end , This time, only single transaction multi-user test is conducted .
Each typical transaction is executed through single transaction and multi-user iteration , Get performance metrics , such as TPS、ART、 System resource usage , Tune performance as needed .
tps When there is an inflection point , Continue to measure 2 Group data , If this 2 Group data tps Obvious decline , At this point, the maximum number of concurrent users is measured .
remarks : The transaction database has current flow table and historical flow table , Therefore, delete the data of the current flow table before each scenario run .
2.3 Stability test
Multi transaction and multi-user concurrent hybrid mode , Carry out long-term stability test on the tested system , Obtain the performance index under continuous pressure . Investigate whether there will be downtime 、 Response time is getting longer 、 The success rate of the transaction decreased 、 The utilization rate of resources reaches 99% The situation of .
Select the maximum number of concurrent users when a single transaction is concurrent, and take the intermediate value .
3. Test summary
3.1 Bottlenecks and solutions
1、 The disk exchange rate has reached 99%;
2、 Memory usage 5% about ; Increase the number of system processes and concurrent users .
3、 Memory usage up to 99%; After checking the real-time log of the system , The reason is that some optional parameter is not configured .
4、 Single transaction sql execution time 2s; Add index .
5、 The execution time of single transaction is too long ; Every time sum Amount when , Too many transactions , Execution time is too long , Add a table for each transaction sum once , Shared the burden .
6、tps The value decreases significantly at some point in time , After query, the current flow table data is greater than 100 Ten thousand ; At present, there is no solution to tuning the database .
版权声明
本文为[T_ yoo_ csdn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220629204631.html
边栏推荐
- 宁德时代地位不保?
- Use of metagroup object tuple in C
- 最通俗易懂的依赖注入与控制反转
- 編碼電機PID調試(速度環|比特置環|跟隨)
- ASP. Net 6 middleware series - execution sequence
- ASP. Net and ASP NETCORE multi environment configuration comparison
- Source generator actual combat
- TP5 customization in extend directory succeeded and failed. Return information
- Improvement of ref and struct in C 11
- The whole network is the most complete. How to do interface automation test? Proficient in interface automation test details
猜你喜欢
Tencent video VIP member, weekly card special price of 9 yuan! Tencent official direct charging, members take effect immediately!
编码电机PID调试(速度环|位置环|跟随)
OLED多级菜单记录
微软是如何解决 PC 端程序多开问题的——内部实现
2022山东省安全员C证上岗证题库及在线模拟考试
MySQL port is occupied when building xampp
腾讯视频VIP会员,周卡特价9元!腾讯官方直充,会员立即生效!
Openfeign timeout setting
Drawing polygons with < polygon / > circular array in SVG tag
ASP. Net and ASP NETCORE multi environment configuration comparison
随机推荐
对.NET未来的一点感悟
2022A特种设备相关管理(电梯)上岗证题库及模拟考试
使用两种方法来解决“最大回文数乘积”问题
MySQL port is occupied when building xampp
c#可变参数params的介绍
求二叉树的叶子结点个数
C# 读写二进制文件
樹莓派開發筆記(十二):入手研華ADVANTECH工控樹莓派UNO-220套件(一):介紹和運行系統
使用split来解决“最常见的单词”问题
Systemctl start Prometheus + grafana environment
PID debugging of coding motor (speed loop | position loop | follow)
The most detailed in the whole network, software testing measurement, how to optimize software testing cost and improve efficiency --- hot
Xamarin effect Chapter 22 recording effect
Impact of AOT and single file release on program performance
C# 11 的这个新特性,我愿称之最强!
TP5 where query one field is not equal to multiple values
Blazor University (11) component - replace attributes of subcomponents
Array and collection types passed by openfeign parameters
类似Jira的十大项目管理软件
What kind of experience is it to prepare for a month to participate in ACM?