当前位置:网站首页>Interview questions: how to test app performance?
Interview questions: how to test app performance?
2022-07-07 22:56:00 【Xiaowu knock code】
APP Performance testing is almost a must for client interviews .
Why do it App Performance testing
If APP There are always jams or network delays , Reduce the user's favor , Users may abandon this App, For other applications of the same type . If APP It has better performance , High user experience , It is silky and smooth to use , Then the user stickiness of the application will inevitably improve .
What should we do App Performance testing , And what indicators should we pay attention to ?
How do you do it? App Performance testing :
at present , Basically, existing tools are used for performance testing , such as Android studio It has its own tools ,
There are also some open source products from other companies Performance testing tools , There are mainly two kinds , One is self-developed , One is externally provided open source / Rechargeable .
Since the research : Generally, every company has a self-developed platform for collecting performance data , Of course, some are purchased external services , After secondary development, it can be used .
Open source : All major companies have some open source software for free , Some of them are as follows
1、TraceView:
TraceView yes Android The platform is equipped with a performance analysis tool , Used to analyze and calculate performance , The jam problem caused by the time-consuming tracking method . It presents the results in a graphical way , Intuitively reflect the execution time of the code 、 Number of executions .
How to use : adopt Android studio Self contained traceview You can see it. (Android profiler). Developers use this tool more , Testers generally use other open source App.
2、Emmagee:
A developed by Netease Android Performance monitoring tools , It can monitor the performance of a single application , It also supports the user-defined configuration of the monitoring sampling frequency and real-time display of performance , Finally, a performance statistics file will be generated .
Open source address :https://github.com/NetEase/Emmagee , You can download to Emmagee Installation package and related instructions . Only support Android
3、GT:
GT( On the go ) Is Teng Open source , It supports iOS and Android Two mobile platforms ,
GT Android The version is Tencent MIG Developed by the special test team Android APP Take the test platform with you , It runs directly on the phone “ Integrated commissioning environment ”(ITE, Integrated Test Environment).
utilize GT, Just a cell phone , No need to connect to a computer , That's right APP Perform quick performance tests (CPU、 Memory 、 Traffic 、 Electric quantity 、 Frame rate / Fluency and so on )、 Check the development log 、Crash Log view 、 Network packet capture 、APP Debugging of internal parameters 、 Real code time consumption statistics, etc .
Open source address :https://github.com/Tencent/GT
4、soloPi:
Alipay open source Android Automation tools , Mainly recording and playback 、 Performance testing 、 Three main functions of one machine and multi control .
Recording and playback :SoloPi Have the ability to record operations , Users only need to pass SoloPi Perform use case steps ,SoloPi You can record the user's actions , And support playback on various devices , All this can be done independently on the mobile phone .
Performance testing : SoloPi Be able to record various indicators of the application to be tested , You can observe the real-time updated data in the floating window , You can also record performance data , View the chart after recording ; meanwhile ,Soloπ It also supports performance , Can be right CPU、 Memory limit , Replication is used in poor performance 、 Performance in poor network environment .
One machine with multiple controls :SoloPi It supports controlling multiple slave devices by operating one host device , There is no need to repeat redundant compatibility tests on each device , It can greatly improve the efficiency of compatibility testing .
Open source address :https://github.com/alipay/SoloPi/wiki/Performance
These are the common performance testing tools on the market , You can choose according to your own needs . The author recently used SoloPi.
APP What metrics do performance tests focus on
1、 Time to start
App The time it takes to start is an important time for us , It is also divided into hot start and cold start
The test start-up time depends on human judgment , Usually we record it on the screen , Then use the framing tool to Do a detailed time-consuming analysis of the screen rendering process at startup .
advantage : Can give real feedback App Time consuming ; No intrusion , Offline analysis , Fine analysis of competitive products
shortcoming : Judging time depends more on human eyes , Automated tools cannot judge .
2、 Power consumption per unit time 、 Network traffic consumption per unit time
3、 Utilization of mobile terminal related resources : Not just on the server side CPU、 Memory 、 disk I/O、 Network is an important part of performance testing , The mobile end CPU、 Memory is also one of the things we need to pay attention to .
cpu Focus on the runtime cpu Share and background cpu Occupancy rate
Memory Enter the memory increment under a business scenario , and Perform state purchase on multiple links Total memory consumption
4、 Business response time 、 Frame rate (fps): Due to the special structure of human beings , When the frame rate of the picture is higher than 24 When , It would be considered coherent .fps The higher the , The smoother the picture .
FPS Divided into sliding FPS, If video is involved / Animation / live broadcast , And the of the business runtime FPS,
above , Yes APP The performance test is briefly introduced , Learned about common tools and performance indicators , The next thing to learn is how to design APP Performance test cases 、APP The execution of performance tests and the preparation of reports ~
Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !
These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……
If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
Click the small card at the end of the document to receive it |
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
Zero basis transition software testing : Self taught software testing , Got the byte test post offer, Is the B The best video station !
Advanced automation testing : Huawei has landed , Salary increase 20K,2022 Most suitable for self-study python Automated test tutorial , Spend it yourself 16800 Bought , Free sharing
边栏推荐
- Line test - graphic reasoning - 2 - black and white lattice class
- What is fake sharing after filling the previous hole?
- Revit secondary development - get the project file path
- Revit secondary development - operation family documents
- Years of summary, some core suggestions for learning programming
- Line test - graphic reasoning - 6 - similar graphic classes
- Digital transformation: five steps to promote enterprise progress
- Cannot find module 'xxx' or its corresponding type declaration
- Force deduction - question 561 - array splitting I - step by step parsing
- Cause analysis and solution of too laggy page of [test interview questions]
猜你喜欢
Line test graph reasoning graph group class
知识点滴 - PCB制造工艺流程
Line test - graphic reasoning - 6 - similar graphic classes
ASEMI整流桥KBPC1510的型号数字代表什么
Gazebo import the mapping model created by blender
LeetCode707. Design linked list
Unity and webgl love each other
Line test - graphic reasoning -5- one stroke class
Two minutes, talk about some wrong understandings of MySQL index
0-5VAC转4-20mA交流电流隔离变送器/转换模块
随机推荐
「开源摘星计划」Loki实现Harbor日志的高效管理
XMIND mind mapping software sharing
Build an "immune" barrier in the cloud to prepare your data
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
Debezium系列之:mysql墓碑事件
Ren Qian code compilation error modification
C development -- WPF simple animation
Signal feature extraction +lstm to realize gear reducer fault diagnosis -matlab code
行测-图形推理-3-对称图形类
Transparent i/o model from beginning to end
Line test - graphic reasoning - 3 - symmetric graphic class
Leetcode interview question 02.07 Linked list intersection [double pointer]
Visual studio 2019 installation
Unity technical notes (I) inspector extension
Revit secondary development - project file to family file
Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
Form组件常用校验规则-2(持续更新中~)
微服務遠程Debug,Nocalhost + Rainbond微服務開發第二彈
Sword finger offer 28 Symmetric binary tree
7-18 simple simulation of banking business queue