当前位置:网站首页>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
边栏推荐
- Revit secondary development - intercept project error / warning pop-up
- Why is network i/o blocked?
- IP network active evaluation system -- x-vision
- What does it mean to prefix a string with F?
- Line test - graphic reasoning -7- different graphic classes
- Debezium系列之:引入对 LATERAL 运算符的支持
- Xcode modifies the default background image of launchscreen and still displays the original image
- Variables and constants
- 微服务架构开源框架详情介绍
- Details of the open source framework of microservice architecture
猜你喜欢
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
Line test - graphic reasoning - 4 - alphabetic class
行测-图形推理-8-图群类
Sword finger offer 27 Image of binary tree
Explain in detail the communication mode between arm A7 and risc-v e907 on Quanzhi v853
Line test - graphic reasoning - 6 - similar graphic classes
LeetCode707. Design linked list
ASEMI整流桥KBPC1510的型号数字代表什么
Line test - graphic reasoning - 3 - symmetric graphic class
Transparent i/o model from beginning to end
随机推荐
面试百问:如何测试App性能?
Unity与WebGL的相爱相杀
Aspose. Word operation word document (I)
Ueeditor custom display insert code
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
Loki, the "open source star picking program", realizes the efficient management of harbor logs
Visual design form QT designer design gui single form program
Unity FAQ (I) lack of references
Revit secondary development - Hide occlusion elements
7-51 combination of two ordered linked list sequences
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
Debezium series: support the use of variables in the Kill Command
Debezium series: MySQL tombstone event
Revit secondary development - get the project file path
Nx10.0 installation tutorial
Debezium series: set role statement supporting mysql8
Years of summary, some core suggestions for learning programming
一次搞明白 Session、Cookie、Token,面试问题全稿定
0-5VAC转4-20mA交流电流隔离变送器/转换模块
IP network active evaluation system -- x-vision