On the performance test of Android (v)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.