iOS和Android本地移动应用的性能测试工具

9

我需要对iOS和Android平台上的原生应用进行性能测试。目前工具的要求如下:

- The tool needs to check for the native applications CPU and memory usage.
- If possible, we need to provide if there are any memory leaks also involved with the native application.
- Check for network performance over the various networks - EDGE, 2G, 3G, 4G and wireless connections (various speeds).
- If we can do Functional testing with the same application, it would be a great addition.

我能够理解的是以下内容:

我已经能够弄清楚的是:

1.  UI Response Time
◦   Download times for intermediate action requests (patch or network downloads), to be reduced with better compression techniques
◦   User action and response rates of the application, need to be smoothened by employing better software rendering and faster animations
◦   Provide a progress indicator to the user, along with completion notification
2.  Battery Life
◦   Battery drain is non-linear, so minimize radio wake-up calls and
◦   Use system events, instead of polling
3.  Network Bandwidth
◦   Basically depends on - signal strength, carrier networks and network type (performance can be considered for slower networks, but no guarantee on the faster 2G & above).
◦   Faster networks need to be checked basically for the functionality
4.  Memory and CPU
◦   Overall device sluggishness needs to be monitored with respect to the response of the various actions. This can only be monitored by running the functional tests, and checking the actual RAM and CPU counters using a recording tool.
◦   No application crashes should be seen, even after keeping the application open for a few days.
5.  Binary Size
◦   Effects application load time
◦   Effects load RAM size
◦   Download & install times
6.  Tools
◦   http://spb.com/pocketpc-software/wirelessmonitor/
◦   http://mobitest.akamai.com/m/index.cgi
◦   http://www.neotys.com/product/mobile-load-testing.html

我的问题是,除了上述的参数,我们还能添加哪些参数来测试本地应用程序的性能?

此外,您建议使用哪些其他开源和商业工具,以满足在iOS、Android和WindowsOS平台上对本机移动应用程序进行性能测试的所有上述要求?

1个回答

2
这篇关于移动应用性能测试的文章非常全面。我有一些小建议:
关于内存: 1. 您可能还想在任何时候监视峰值内存消耗。这在Android上尤其重要,因为可用于应用程序的内存实际上可能因设备而异。因此,即使在进行测试的设备上不会对您造成问题,但可能会在某些其他低端设备上引起问题。
类似地,您可能还想监视正在发生的垃圾收集以及有多少是并发的以及有多少是基于分配的gc。因为gc可能会影响应用程序响应时间,特别是如果它是由于alloc而引起的。
关于电池寿命: 1. 您可能希望验证应用程序获取的任何wakelocks是否及时释放。 2. 应用程序尽可能使用不精确的定时器而不是精确的定时器(例如,使用AlarmManager的setInexactRepeating方法而不是setRepeating方法)。
其他标准: 1. 验证应用程序是否适当地缓存数据-例如,在屏幕方向更改时不刷新已经拥有的内容。 2. 更好的应用程序甚至可以根据所连接的网络类型来调整其数据消耗-如果连接到Wifi,请疯狂预取内容,但如果连接到蜂窝数据,则稍微不那么积极地获取。
希望这可以帮助您。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接