简体   繁体   中英

How can we test performance of a mobile application(both android and IOS)

I need to test the performance of a mobile application.
I have used jmeter tool to test it's services and APIs, but we want to test it's performance in device as well. is there any tool using which we can test the performance of a mobile application.

A single open source tool which can help with both applications ie android and IOS is preferred.

If there is any another way, with which we can test the performance of a application is also welcome.

Yandex.Tank has an appium plugin (that starts appium before your performance test and stops after the end of the test) and BFG plugin that can run Python scenarios (here is a simple example ) as loadtests. You could also use a python binding for UIautomator instead of Appium in your scripts. You can use Overload to analyze the results of your tests. Monitoring metrics can be gathered with Telegraf plugin using custom config with adb commands in it to read the /proc file system on the phone. For example:

    <Monitoring>
      <Host address="localhost" interval="1">
      <Custom measure="call" label="memory">adb shell 'grep MemFree /proc/meminfo' | awk '{print $2}'</Custom>
      <Custom measure="call" label="dsk_data_free">adb shell dumpsys diskstats | grep Data-Free | sed s/%//g | awk '{print $7}'</Custom>

      ... etc ...

    </Monitoring>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM