当前位置:网站首页>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
边栏推荐
- Unity and webgl love each other
- 详解全志V853上的ARM A7和RISC-V E907之间的通信方式
- Revit secondary development - cut view
- 面试百问:如何测试App性能?
- 微服务架构开源框架详情介绍
- Line test - graphic reasoning - 4 - alphabetic class
- 行测-图形推理-5-一笔画类
- C # realizes the communication between Modbus protocol and PLC
- Ni9185 and ni9234 hardware settings in Ni Max
- Details of the open source framework of microservice architecture
猜你喜欢

Redis cluster installation

Visual studio 2019 installation

行測-圖形推理-4-字母類
Apple further entered the financial sector through the 'virtual card' security function in IOS 16

【测试面试题】页面很卡的原因分析及解决方案

Micro service remote debug, nocalhost + rainbow micro service development second bullet

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence

Gazebo import the mapping model created by blender

IP网络主动测评系统——X-Vision

Line test - graphic reasoning - 4 - alphabetic class
随机推荐
Build an "immune" barrier in the cloud to prepare your data
行测-图形推理-3-对称图形类
Details of the open source framework of microservice architecture
行测-图形推理-2-黑白格类
Redis官方ORM框架比RedisTemplate更优雅
行测-图形推理-6-相似图形类
Redis cluster installation
Debezium series: MySQL tombstone event
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
LeetCode144. Preorder traversal of binary tree
Take full control! Create a "leading cockpit" for smart city construction
How to judge whether the input content is "number"
Line test - graphic reasoning - 2 - black and white lattice class
Sword finger offer 55 - I. depth of binary tree
ASP. Net core introduction V
Yarn开启ACL用户认证之后无法查看Yarn历史任务日志解决办法
Microbial Health Network, How to restore Microbial Communities
This experimental syntax requires enabling the parser plugin: ‘optionalChaining‘
Revit secondary development - link file collision detection
C development -- WPF simple animation