当前位置:网站首页>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
边栏推荐
- Unity 委托 (Delegate) 的简单理解以及实现
- Self join usage of SQL
- 多数据源配置下,解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
- PIP source switching
- Dialog manager Chapter 2: create frame window
- Notes on the use of IEEE transaction journal template
- Don't lose heart. The famous research on the explosive influence of Yolo and PageRank has been rejected by the CS summit
- [oauth2] II. Authorization method of oauth2
- C language -- three ways to realize student information management
- spark学习笔记(三)——sparkcore基础知识
猜你喜欢

Mini examination - examination system

Leetcode high frequency question 56. merge intervals, merge overlapping intervals into one interval, including all intervals
![[NLP] next stop, embossed AI](/img/fc/4997309d0d53c5b6eb441ac39e6929.jpg)
[NLP] next stop, embossed AI

Su Chunyuan, founder of science and technology · CEO of Guanyuan data: making business use is the key to the Bi industry to push down the wall of penetration

深入浅出边缘云 | 2. 架构

Decrypt "sea Lotus" organization (domain control detection and defense)

Simple understanding and implementation of unity delegate

Meaning of 7 parameters of thread pool

正则表达和绕过案例

Must use destructuring props assignmenteslint
随机推荐
Leetcode · daily question · 1184. distance between bus stops · simulation
C language -- program environment and preprocessing
XOR procedure
CSDN garbage has no bottom line!
Production environment tidb cluster capacity reduction tikv operation steps
打假Yolov7的精度,不是所有的论文都是真实可信
How vscode debug nodejs
Activate the newly installed Anaconda in the server
Learning and thinking about the relevant knowledge in the direction of building network security knowledge base
关于构建网络安全知识库方向相关知识的学习和思考
Typo in static class property declarationeslint
exchange
交换
记不住正则表达式?这里我整理了99个常用正则
2.4. properties of special profile
Su Chunyuan, founder of science and technology · CEO of Guanyuan data: making business use is the key to the Bi industry to push down the wall of penetration
AtCoder Beginner Contest 261 F // 树状数组
小熊派 课程导读
Differences between C language pointer and array A and &a, &a[0], etc
对话框管理器第二章:创建框架窗口