当前位置:网站首页>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
边栏推荐
- 6-3 find the table length of the linked table
- Visual studio 2019 installation
- ADC采样率(HZ)是什么怎么计算
- Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
- Redis官方ORM框架比RedisTemplate更优雅
- Debezium series: MySQL tombstone event
- Xcode modifies the default background image of launchscreen and still displays the original image
- CTF练习
- Unity与WebGL的相爱相杀
- 新版代挂网站PHP源码+去除授权/支持燃鹅代抽
猜你喜欢
PHP method of obtaining image information
IP network active evaluation system -- x-vision
Visual design form QT designer design gui single form program
Line test - graphic reasoning - 2 - black and white lattice class
CTF exercise
行测-图形推理-7-相异图形类
LeetCode206. Reverse linked list [double pointer and recursion]
Sword finger offer 27 Image of binary tree
Amesim2016 and matlab2017b joint simulation environment construction
How pyGame rotates pictures
随机推荐
软件测评中心▏自动化测试有哪些基本流程和注意事项?
Robot autonomous exploration series papers environment code
This time, let's clear up: synchronous, asynchronous, blocking, non blocking
ADC采样率(HZ)是什么怎么计算
Line test - graphic reasoning - 4 - alphabetic class
GBU1510-ASEMI电源专用15A整流桥GBU1510
Unity technical notes (II) basic functions of scriptableobject
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
Debezium系列之:源码阅读之SnapshotReader
Quick sort (diagram +c code)
ASEMI整流桥KBPC1510的型号数字代表什么
全面掌控!打造智慧城市建设的“领导驾驶舱”
Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
行测-图形推理-1-汉字类
Debezium系列之:引入对 LATERAL 运算符的支持
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
Line test - graphic reasoning - 3 - symmetric graphic class
CTF练习
Revit secondary development - project file to family file
C # realizes the communication between Modbus protocol and PLC