当前位置:网站首页>Performance test - analyze requirements
Performance test - analyze requirements
2022-07-24 14:45:00 【Splendid Qianyang 813】
Preliminary preparation for demand analysis
- Collect performance requirements : Including business transactions 、 Business volume 、 Business volume trends 、 User information 、 System architecture 、 Business indicators 、 System hardware index, etc ;
- Analyze the performance requirements of the collection : Determine the scope of the performance test , What can be measured , Which should be tested 、 What are the indicators of the test ; Analyze user usage , Distribution of business volume , Business volume ; Estimate TPS And the number of concurrent users ;
Performance test indicators
- Business indicators : Include TPS、RT、 Transaction success rate ;
- Hardware performance index :CPU Usage rate 、 Memory utilization 、 Disk utilization, etc ;
The main content of performance test collection
- System architecture : Middleware configuration 、 Database configuration, etc ;
- Business volume information
- Expansion trend of business volume
- Whether the system has archiving mechanism
- Peak period of business volume
- The number of online users of the system 、 Number of active users 、 Business distribution ;
- Whether the system is associated with a third-party system ;
- System business performance index
- System hardware index
Take a chestnut
With jforun Forum as an example for performance testing ;
1) The collected demand information is shown in the following table :
The main function information of the forum can be given through the requirements document , For example, what can a forum do , Other information needs to be given through statistical tools , Take Baidu statistics as an example Statistical tools 


The above is the collected data , With this data, we begin to analyze the performance requirements , Including throughput TPS、 Guess the number of concurrent users ;
2) Analyze performance test requirements (TPS、 Number of concurrent users, etc )
- Business volume : Through statistics, we can get the date PV Quantity is 2 ten thousand , The system expansion trend is 3 Annual growth 30%, therefore 3 Day after year PV≈2*(1+30%)*(1+30%)≈3.38 ten thousand
- TPS: Average transactions per second . According to the forum system , Sending a new post is a matter , Replying to a new post is a matter ;
and pv It represents a page request , Only the requested content may include pictures 、JS etc. , When calculating PV≈TPS;
Calculation TPS It is usually calculated according to the data of peak period , It can be seen from the peak data table that in the morning 9 Point to 10 00 p.m 14 Point to 15 Point is the advanced time period , Calculate according to ten o'clock in the morning . It can be seen from the data in the table ,10 At the time of the PV The number of 1300+2706+526+676=5208PV, that TPS=5208PV÷3600s≈1.45, The result of this calculation is an approximate value , Generally speaking, if you can get the business volume per minute, it will be more accurate , Usually when calculating TPS When using 28 principle ( The box 20% Time to finish 80% The business of ) So another better calculation method is the following table :
- Number of concurrent users : Commonly used Method of calculating concurrency 1) from TPS Count to estimate concurrency ;2) The number of concurrent users is estimated by the number of online users ;3) Estimate the number of concurrent users based on experience ;
Use... In most cases : Number of concurrent users =TPS (Runtime+Thinktime) among Thinktime by 3;Runtime It is the time required for the test program to run once ;
The number of concurrent users of this forum system is estimated to be 76=5.813; Select the number of concurrent users for each service as shown in the following table :
PS:
The average number of concurrent users is as follows
1) The average number of concurrent users is C = nL/T
2) Peak number of concurrent users C‘ = C + 3* Radical sign C
C Is the average number of concurrent users ,n yes login session The number of ,L yes login session Average length of ,T It's the length of time worth examining ;C’ Is the peak number of concurrent users
Use... In most cases : Number of concurrent users =TPS *(Runtime+Thinktime) among Thinktime by 3;Runtime It is the time required for the test program to run once ; Or there's another one Runtime、Thinktime Classified as response time
边栏推荐
- After reading this article, I found that my test cases were written in garbage
- 打假Yolov7的精度,不是所有的论文都是真实可信
- 茅台冰淇淋“逆势”走红,跨界之意却并不在“卖雪糕”
- Overview of dobesie wavelet (DB wavelet function) in wavelet transform
- PIP source switching
- 不要灰心,大名鼎鼎的YOLO、PageRank影响力爆棚的研究,曾被CS顶会拒稿
- 使用 Fiddler Hook 报错:502 Fiddler - Connection Failed
- Data analysis and mining 2
- VS编译后的应用缺少dll
- XOR procedure
猜你喜欢
![Rasa 3.x 学习系列-Rasa [3.2.4] - 2022-07-21 新版本发布](/img/1e/27f107d514ded6641410cc5a45764b.png)
Rasa 3.x 学习系列-Rasa [3.2.4] - 2022-07-21 新版本发布

Moving the mouse into select options will trigger the mouseleave event processing scheme

2022 IAA industry category development insight series report - phase II

onBlur和onChange冲突解决方法

Spark: get the access volume of each time period in the log (entry level - simple implementation)

多数据源配置下,解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
![Rasa 3.x learning series -rasa [3.2.4] - 2022-07-21 new release](/img/1e/27f107d514ded6641410cc5a45764b.png)
Rasa 3.x learning series -rasa [3.2.4] - 2022-07-21 new release

Beijing all in one card listed and sold 68.45% of its equity at 352.888529 million yuan, with a premium rate of 84%
![Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布](/img/fd/c7bff1ce199e8b600761d77828c674.png)
Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布

Problem handling of repeated restart during Siemens botu installation
随机推荐
After reading this article, I found that my test cases were written in garbage
Moving the mouse into select options will trigger the mouseleave event processing scheme
C operator priority memory formula
How vscode debug nodejs
2022 IAA industry category development insight series report - phase II
Can you buy 6% of financial products after opening a stock account?
Solve the problem that uni starter can log in to wechat with local functions, but fails to log in with cloud functions
Notes on the use of IEEE transaction journal template
Is it safe for Huatai Securities to open an account? Can it be handled on the mobile phone?
Usage differences of drop, truncate and delete
C# unsafe 非托管对象指针转换
Rasa 3.x learning series -rasa fallbackclassifier source code learning notes
Rasa 3.x learning series -rasa [3.2.4] - 2022-07-21 new release
REST风格
"After 00" is coming! Digital data ushers in a new generation of "codeless" forces
Comparison of traversal speed between map and list
PrestoUserError: PrestoUserError(type=USER_ERROR, name=INVALID_FUNCTION_ARGUMENT, message=“Escape st
Atcoder beginer contest 261e / / bitwise thinking + DP
Extjs4 instance address and Chinese document address
PCA of [machine learning]