Special test actual power consumption

Background:
APP power consumption, directly affect its standby time, the user is very concerned about that. Now a variety of short videos, news post has been market-proven new content distribution vector, can effectively increase the length of time a user stays. We focused on key key connection, video playback, the test data analysis, as well as relevant competitive products do three places to watch the news.
Tools to prepare:
Android power usage analysis tool -battery History
using battery-historian tested by Google, try condition: 5.0 and above phones
a mounting docker
Download: https: //download.docker.com/mac/stable/Docker .dmg
domestic use docker, you need to configure the accelerator in the menu click preference, then deamon label, which is part of the registry mirrors where you can click the plus sign to add an accelerator address
Here Insert Picture Description
http://registry.docker-cn.com not use https prefix
after starting the terminal, the command can be checked after installation docker version Here Insert Picture Description
two, mirrored start battery historian
can access this image through 127.0.0.1:9999, the former refers to a port 9999 is mapped to the local port
docker run -p 9999: 9999 gcr .io / android-battery-historian / stable: 3.0 --port 9999
then by localhost: 9999 address can access the Battery Historian analysis platform.
Here Insert Picture DescriptionThird, the file is generated bugreport
test before preparatory steps:
1. Reset the power of information
adb shell dumpsys batterystats --reset
2. allow the system to record all information wakelock
adb shell dumpsys batterystats --enable-the Wake-Full History
3. After the test is completed, the export bugreport
adb bugreport> bugreport.zip
Note:
If Android 7.0 and above can then be obtained by adb bugreport bugreport.zip bugreport
if it is Android 6.0 and below, then you can acquire bugreport via adb bugreport> bugreport.txt
after obtaining bugreport file, we can upload it to Battery analysis carried out on the Historian, the following is the result of its output
in the bottom of the page we can view the status of this system within the system stats, app stats can also choose an app to view the state of the application, where we choose com.snda.wifilocating Here Insert Picture Description
test analysis
1. test products include: WiFi master key, WiFi Tencent housekeeper, today's headlines
2. The test object consists of three core pages: key connection, video list page news story page
3. test procedure:
test models: Huawei p20 android 9.0, 8.0 Android Huawei p10plus
4. test If
Huawei 8.0 system
WiFi master key
Here Insert Picture Description
Tencent WiFi housekeeper
Here Insert Picture Description
Today's headlines
Here Insert Picture Description
Huawei 9.0 system

WiFi master key
Here Insert Picture Description
Tencent WiFi butler
Here Insert Picture Description
headlines today
Here Insert Picture Description
can be seen from the test results, either 8.0 or 9.0 system, the key play video consumption is relatively high, more than twice today's headlines. Key connection power consumption is much lower than Tencent housekeeper WiFi power consumption. So this also needs to be optimized video playback.

Operation outside the press for 1 hour and three video applications, where video about 20min, news about 40min, the power consumption of the comparison of the two systems:
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Released four original articles · won praise 2 · Views 206

Guess you like

Origin blog.csdn.net/qq_22753843/article/details/87273445