Power consumption test of music apps

1. Design of power consumption test case

Power consumption comparison test between new and old versions

1. Play in the foreground - online song for 30 minutes

2. Play in the foreground - downloaded songs for 30 minutes

3. Play at the front desk - 30 minutes of local songs

4. Background play - online songs for 30 minutes

5. Background play - downloaded songs for 30 minutes

6. Background play - local songs for 30 minutes

 

Competitive power consumption comparison test

1. Play in the foreground - online song for 30 minutes

2. Play in the foreground - downloaded songs for 30 minutes

3. Background play - online song for 30 minutes

4. Background play - downloaded songs for 30 minutes

 

 Second, the use case design ideas:

1. First of all, the core user scenario of music apps is listening to songs. Listening to songs is divided into foreground and background.

In theory, the power consumption of songs played in the foreground is higher than that of songs played in the background, and the actual test results are also the same

Playing online songs in the background for 30 minutes: 15.4%

Playing online songs at the front desk for 30 minutes consumes power: 17.6%

Playing downloaded songs in the background for 30 minutes Power consumption: 9.5%

Playing downloaded songs in the foreground for 30 minutes consumes power: 11.4%

Playing local songs in the background for 30 minutes Power consumption: 11.5%

Playing local songs at the front desk for 30 minutes consumes power: 12.3%

 

2. The playback process of online songs, downloaded songs, and local songs is different

Online song playback process: get stream, decode and play

Downloaded song playback process: decryption, decoding and playback

Local song playback process: decoding playback

Note: When playing local songs, operations such as downloading lyrics and pulling album pictures will be performed based on audio fingerprint technology.

Play online songs, compared with downloaded songs and local songs, there is one more download process, so it consumes more power

 

3. Points to pay attention to when performing power test

1. The test tool used in this article is the GT produced by Tencent, which uses the percentage of power to count the power consumption. Therefore, in order to avoid insufficient power during the test, it should be fully charged before the test. The commonly used method is to fully charge the battery. Battery (100%).

2. The power consumption of the app is the sum of the power consumption of each component during the running of the app. These components include CPU, WIFI, GPS, etc. The power consumption per unit time of each component of different brands and models of mobile phones is different. Even mobile phones of the same brand and model have different power consumption due to different battery usage conditions. Therefore, when doing the comparison test, it is recommended to use the same mobile phone and test in the same network environment, and the installation package used should be the official package (when the debug package writes the log, it may cause power consumption).

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326682915&siteId=291194637
Recommended