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