当前位置:网站首页>Soft test (VII) performance test (1) brief introduction
Soft test (VII) performance test (1) brief introduction
2022-07-26 15:08:00 【M1kasal】
Preface
This chapter mainly introduces 【 Performance testing 】
- ps: Why write performance test related content , To be honest, at present, the company I work in rarely conducts performance testing , Not that a complete performance testing platform has been built , It is simply used for some interfaces Jmeter Test it , But what? , This kind of problem is often encountered during the interview , So simply summarize
One 、 Basic concepts of performance testing
First of all, let's briefly mention Why should we do performance testing ?
- 1、 It can meet users' needs : For example, like some Large amount of visits Website ( Microblogging , Take-out food ), When the concurrent traffic reaches a certain level, the system will crash .
- 2、 Minimize costs : For example, I don't know how many servers to deploy when a new service goes online , Simply put, if a server is slow , Just deploy a few more .
- 3、 Evaluate application system performance , Provide basis for system capacity planning of operation and maintenance 、 Provide application tuning reference for development
What aspects of development can we optimize performance ?
Under normal circumstances , The performance needs to be optimized , for instance High concurrency scenario , The whole performance is very low , Performance optimization is definitely needed in development , that How to optimize the performance of development , In fact, this is Java During the interview in the project, I often encounter ( Then I'll explain it briefly from my point of view )
ps: There are many performance optimization methods , Here I will briefly talk about several things I know
- 1、sql tuning ( Query avoids full table query / avoid where After the statement or/and/>=/<=/like Full blur, etc )
It was written a long time ago blog, It's easy to look at :https://blog.csdn.net/Makasa/article/details/101218523 - 2、 Implementing distributed services
For example, the current popular springboot Microservice architecture ,zookeeper+Dubbo Distributed service architecture , Simply put, it is to divide modules , We integrate the functions provided by a single service , Reduce the coupling before the code - 3、 The page is static
It is mainly generated dynamically html The page is saved as static content , Later, the user's request comes , Direct access to static pages , No longer rendered by services . It can greatly improve the response speed and concurrency of pages - 4、 Use caching (redis…)
It can reduce the reading and writing of the database , You can read the database for the first time , Then save the data to redis Inside , Then take the data directly from redis Take in - 5、 You can buy more servers , Distribute concurrent visits
So what is performance testing ?
- Performance testing : namely Simulate the impact of multiple user operations on server hardware performance
It has some indicators :
1、 Concurrency
2、TPS( throughput , Every time s Processing ability )
3、RT( response time )
4、 Server resource usage (cpu The occupancy rate of 、 Memory usage 、 Inquire about Cache Command rate 、 disk IO Literacy rate )
Two 、 Common performance testing tools
About Performance testing tools This piece of , At present, the following kinds are commonly used in the market , You can choose the corresponding performance testing tool according to your personal habits , It's about Jmeter,LoadRunner,Locust I have written relevant blogs briefly , If you want to learn more , Self access to information
Jmeter special column :https://blog.csdn.net/makasa/category_10230324.html
LoadRunner:https://blog.csdn.net/Makasa/article/details/112471214
Apache ab:Apache HTTP Server performance benchmark tool
Apache Jmeter: Support a lot of protocols , Free open source , Use Java Language Development
LoadRunner: Support a lot of protocols , Toll collection software , Use C Language Development
Locust: Yes Web Interface , Support a lot of protocols , Free open source , Use python Language Development
nGrinder:Naver The company is based on Grinder Developed Performance test platform .Grinder Is one that can run jython( stay JVM Running on python)、groovy Application idioms for writing test scripts . Freeware , Use Java Language development .( function ngrinder-controller.war, The default account and password are admin)
边栏推荐
- SiamFC:用于目标跟踪的全卷积孪生网络
- Write a summary, want to use a reliable software to sort out documents, is there any recommendation?
- Partial learning of PHP deserialization
- Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
- Prometheus adds email alarm and enterprise wechat robot alarm
- 下一代视觉Transformer:解锁CNN和Transformer正确结合方法
- 怎样在nature上查文献?
- Double the efficiency of dual screen collaboration lingyao x dual screen Pro leads the new trend of dual screen technology
- SA-Siam:用于实时目标跟踪的孪生网络
- DICOM学习资料收集
猜你喜欢

Whaledi message queue stability improvement practice

CAS single sign on

Usage of nn.conv2d and nn.convtranspose2d functions in pytorch

Write a summary, want to use a reliable software to sort out documents, is there any recommendation?

Unity URP入门实战

数据挖掘之数据预处理

VBA upload pictures

CVE-2022-33891漏洞复现

9. Learn MySQL delete statement

数据权限就该这么设计,yyyds!
随机推荐
Prometheus adds redis and MySQL node monitoring
关于工控网关物联网串口转WiFi模块与串口转网口模块的选型
华为应用已经调用了checkAppUpdate接口,为什么应用内不提示版本更新
Lean product development: principles, methods and Implementation
DevSecOps,让速度和安全兼顾
js 实现数字转金额价格千分符
Leetcode summary
晋拓股份上交所上市:市值26亿 张东家族企业色彩浓厚
大学论文格式怎么写?
写综述,想用一个靠谱的整理文献的软件,有推荐的吗?
2. 两数相加
RPN: region proposal networks
数据权限就该这么设计,yyyds!
哪里有写毕业论文需要的外文文献?
Difference between filter and interceptor
次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
R语言使用lm函数构建带交互项的多元回归模型、使用step函数构建逐步回归模型筛选预测变量的最佳子集(step regression)
R语言wilcox.test函数比较两个非参数样本的总体的中心位置是否具有显著差异(如果两个样本数据是配对数据设置paired参数为TRUE)
The leader took credit for it. I changed the variable name and laid him off
Deep Packet Inspection Using Cuckoo Filter论文总结