App Performance Testing

Source: Internet
Author: User

App Performance Testing

Today, I heard some powerful character on the testhome to talk about the performance test of their special test, because they have also done the performance special test but is on the client PC, now I summarize some of the content he mentioned and some of my own views

Performance specific we focus on which:

1. Focus on resource consumption (CPU, memory, flow, power)

2. Start-Up time (Lengqi, Geixi), (this is also a very cloudy measurement of the use of an indicator)

3. Main Page load time

4. Memory leak, jitter, lag, page rendering (FPS)

Today I also only summarize resource consumption this piece, first talk about CPU

1.cpu

CPU detection We have 3 kinds of situations:

1. In idle time consumption, basically no big application use CPU

2. In the case of running some applications, the CPU has accounted for 50% of the situation, the observation of the application CPU consumption

3. Look at the CPU performance under high load, I define this high load, CPU occupancy should be above 80%

1.1 How to view CPU usage values

Using the command: adb shell dumpsys cpuinfo apk package Name

From what we can see: 6.4% is for this CPU occupancy rate is 6.4%, the red Place 5.2% occupancy rate is the user, 1.1 is the core occupancy rate, this number is only for the 1 core,

Question: Now the cell phone is multi-core, so the value is not too accurate, how to do?

Experience: The general value of this, I in the test, will be more than a few times, averaging

There is too much data, and we can use this command, and the top command, to get a single data

adb shell Dumpsys cpuinfo |grep PackageName

2. Memory Chapter

Memory is similar to the CPU, we get the memory value by multiple acquisition, see if the memory is abnormal, how to obtain the memory value

How to take the memory, with the command 1.adb Shell dumpsys meminfo2.adb Shell Meminfo PID

App Performance Testing

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.