The book next to the Android performance test on the GPU (iv)
Some of the performance test items that I've said before are probably all heard, and then we'll talk about the test items-power consumption, which we don't often focus on.
The power test mainly starts from the following aspects to test
- Test Phone install target APK front and rear standby power consumption no significant difference
- Common use in the scene can normally enter the standby, standby current within the normal range.
- No abnormal power consumption for long-time continuous use applications
The methods of power test are divided into two kinds, one is software test, the other is hardware test
Let's talk about software testing, here we will talk about some DIY ideas, software testing is generally divided into 2 categories,
The first is the use of third-party tools available on the market, such as the Kingsoft battery steward.
The second is the self-writing tool, which typically uses 3 different methods
- The first is based on Android-provided Powermanager.wakelock,
- The second is a little more complicated,
功耗的计算=CPU消耗+Wake lock消耗+数据传输消耗+GPS消耗+Wi-Fi连接消耗
- The third is through the ADB shell Dumpsys battery to get
Then said the hardware test, here we generally use a multimeter or power meter for testing, using the power meter testing, the need to make fake batteries to do, some can not plug the battery cell phone needs to be welded for power testing
Power Test Generally speaking here, you should have some understanding of the power test, the following will explain the traffic, please look forward to
This article reproduces Kasi's article, thanks Kasi's share, original address:
Https://testerhome.com/kasi
On the performance test of Android (v)