适用于iOS和Android中本机移动应用程序的性能测试工具

时间:2013-01-16 11:00:45

标签: android ios native performance-testing

我必须在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 个答案:

答案 0 :(得分:2)

在移动应用程序的性能测试方面,这是一篇非常全面的文章。我有几个要添加的小东西: 关于记忆: 1.您可能还希望在任何时刻监控峰值内存消耗。这在Android上尤为重要,因为应用程序的可用内存实际上可能因设备而异。因此,即使它可能不会对正在进行测试的设备造成问题,但它可能会导致其他一些低端设备出现问题。

  1. 类似地,您可能还想监视正在发生的垃圾收集以及有多少是并发的以及有多少是基于分配的gc。因为gc可能会影响应用程序响应时间,特别是如果它是由alloc引起的。
  2. 关于电池寿命: 1.您可能需要验证应用程序获取的任何唤醒锁是否正在及时释放。 2.应用程序尽可能使用不精确的计时器而不是精确的计时器(例如,使用setInexactRepeating而不是AlarmManager的setRepeating方法)。

    其他一些标准: 1.验证应用程序是否正确缓存数据 - 例如,在屏幕方向更改时不刷新已有的内容。 2.甚至更好的应用程序,实际上可能会根据连接的网络类型调整其数据消耗 - 如果连接到Wifi,请疯狂并预取内容,但如果连接到蜂窝数据,则会获得更少的攻击。<​​/ p>

    希望这有帮助。