当前位置:网站首页>性能测试-01-简介
性能测试-01-简介
2022-06-28 12:17:00 【不要问我y】
1、简介:目的,种类,性能关键指标,测试流程,必备技能及hhtp协议介绍
2、测试目的
- 评估当前系统性能
- 发现系统性能瓶颈并修复,优化系统性能
- 出具具有参考价值的性能测试报告,或称为可以上线的依据
3、常用测试种类
负载测试:不断给系统增加压力(一般是指并发在线用户数量),看系统的性能表现(响应时间、资源利用率等)。负载上限:当压力增加到一定程度时,系统能正常响应,但是性能出现断崖式下降
压力测试:预估在一定的负载条件下(一般是最大用户数量),长时间运行系统给系统造成的影响,一般用来测试系统的健壮性和稳定性,以及得到当前系统的性能指标
基准测试:通过基准测试对系统建立一个一致的性能水平,称为基准线,当系统的软硬件环境发生变化之后,再进行一次基准测试以确定变化条件对系统性能的影响,损耗率
并发测试:测试某一功能承受的最大绝对并发数,一般针对高并发、瓶颈点就行测试
容量测试:可同时处理的最大用户数
配置测试:调整系统的软硬件环境,测试各种环境对系统性能的影响,从而找到系统各项资源的最优配置
4、性能指标
4.1 常规指标
- 响应时间
- 事务
- 并发数
- 错误率:失败数、总数,控制在千分之六
- TPS:系统每秒钟处理的事务或交易数
4.2服务器资源占用率
- CPU
- 网络吞吐量
- 磁盘IO
- 内存
4.3中间件指标
4.4 数据库指标
- sql(监控和分析)
- 命中率
- 锁:死锁
4.5 稳定性指标
TPS、响应时间曲线比较平滑则相对稳定,锯齿形则不稳定
4.6可扩展性指标
计算公式:(增加的性能/原始的性能)/(增加的资源/原始的资源)
5、需求分析-用例设计-用例执行-性能分析
6、实例分析:
该系统总共50000家单位在5天内完成快报快填,业务容量:50000、5 = 10000业务单元每天,按照每天8小时集中在两小时内完成的原则,得出系统两小时内总的样本数为10000,则系统需要支持10000*20% = 2000并发,并且两小时内样本数超过10000
目标确立:1、找出并优化系统性能瓶颈
2、提交部署方案及资源配置清单
3、用例设计:由于性能测试的复杂性测试用例是不可枚举的,我们选择最高使用频率的功能点用例,如登录、打开快报、切换时间、录入保存、运算、审核、取数
4、场景设计:
- 通过单节点容量测试得出单节点系统基准业务容量
- 增加一个节点后再进行容量测试并计算出拓展画比
- 结合系统需求容量评估得出部署方案及硬件资源需求
7、基础技能
sql、c语言基础语法、loaderrunner、http协议
8、调优性能
性能监控、性能调优
边栏推荐
- Daily practice of C language - day 3: calculate the number of occurrences of sub strings of strings
- MapReduce项目案例1
- 【C语言】如何很好的实现复数类型
- 深度学习又有新坑了!悉尼大学提出全新跨模态任务,用文本指导图像进行抠图...
- Levels – virtual engine scene production "suggestions collection"
- 【附源码+代码注释】误差状态卡尔曼滤波(error-state Kalman Filter),扩展卡尔曼滤波,实现GPS+IMU融合,EKF ESKF GPS+IMU
- UGUI强制刷新Layout(布局)组件
- AcWing 608. Poor (implemented in C language)
- PrecomputedTextCompat用法及原理
- JNI confusion of Android Application Security
猜你喜欢

Tips for using ugui (V) using scroll rect component

攻防世界新手入门hello_pwn

深度学习又有新坑了!悉尼大学提出全新跨模态任务,用文本指导图像进行抠图...

ByteV搭建动态数字孪生网络安全平台----助力网络安全发展

【C语言】结构体嵌套二级指针的使用
![[unity Editor Extension practice], find all prefabrications through code](/img/0b/10fec4e4d67dfc65bd94f7f9d7dbe7.png)
[unity Editor Extension practice], find all prefabrications through code

Build your own website (18)

智联招聘基于 Nebula Graph 的推荐实践分享

Ugui uses tips (VI) unity to realize vertical line display of string

Source code analysis of ArrayList
随机推荐
Prefix and (2D)
How to deploy the software testing environment?
自定义标题栏View
[Beijing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination
Unity导入资源后还手动修改资源的属性?这段代码可以给你节约很多时间:AssetPostprocessor
【Unity编辑器扩展基础】、EditorGUILayout (三)
[vi/vim] basic usage and command summary
分页样式 flex设置成在尾部显示(即使页数加长 也不会因为在末尾而换行)
Build your own website (18)
If you want to change to software testing, how can you package your resume as a test engineer with 1 year of work experience
After importing resources, unity also manually modifies the properties of resources? This code can save you a lot of time: assetpostprocessor
[C language] about scanf() and scanf_ Some problems of s()
【Unity编辑器扩展基础】、EditorGUILayout (一)
AGCO AI frontier promotion (2.16)
Mr. Zhang responded to the first live broadcast with goods
UGUI使用小技巧(五) Scroll Rect组件的使用
[source code + code comments] error state Kalman filter, extended Kalman filter, gps+imu fusion, EKF eskf gps+imu
What are the common modes of financial products in 2022?
杰理之wif 干扰蓝牙【篇】
Given two points and a point with a middle scale, find the coordinates of the point