Mobile Application Performance Testing: An End-to-End Approach

Mobile Application Performance Testing: An End-to-End Approach

With mobile application capabilities and usage increasing, the application functions that are performed on a mobile device are also becoming more complex in functionality and more critical to businesses. The mobile mode of service delivery — being closest to end users and always available — requires that developers pay particular attention to mobile application performance testing. Even users expect more responsive performance from mobile applications than they do from desktop apps.

So, it has become extremely important to determine the performance that a mobile application’s end-user will experience before actually deploying the application onto a mobile platform. To do so, mobile application developers need to performance test their applications with an end-to-end application delivery model that tests for all the varying scenarios on each component involved.

In this article, we propose such an end-to-end approach to mobile application performance testing. Our aim is to present a performance testing exercise that will help mobile application developers accurately gauge performance from the end-user’s point of view.

Mobile Application Testing by Type

It is important first to understand the types of mobile applications developed today. Each type calls for a tailored performance testing approach targeting the components and processes involved.

Testing Browser-Based Mobile Apps

Browser-based mobile applications might perform differently as compared with the same application accessed via a desktop browser. The causes of these differences include the bandwidth limitations of the user’s cellular network data plan and differing device configurations. The advantage of a mobile browser-based application is the lower development cost, as the mobile app developer needs to consider only how to make it compatible with most mobile browsers.

While testing for performance, it is important to replicate the user server load from mobile browsers too, in case additional dedicated components are being deployed to cater to such requests. It is also important to test Web page rendering on the target device as device configuration (e.g. CPU, memory or browser rendering engine) can affect end-user performance.

Testing Native Mobile Apps

Native mobile applications are installed directly onto mobile devices, allowing users to access the applications quickly. The disadvantage of native mobile apps is the development cost. Because the applications are platform dependent, an app developed for one mobile OS won’t work for another. The developer is left having to develop and test the application on all the platforms, such as iOS, Android, Blackberry, and so on. This calls for thorough performance testing on each target platform as well as on a set of devices in each selected platform.

Testing Hybrid Mobile Apps

Hybrid mobile applications are installed on mobile devices just like native mobile apps but users can access them via either an installed app or the device browser. The application is developed using Web technologies and then wrapped in a platform-specific shell that allows the app to be installed just like a native app.

As with native applications, the disadvantage of hybrid mobile applications is development cost. To allow a user to access the application via an installed app, the developer has to develop the application for all the platforms mentioned in the previous section. Again, a performance test strategy has to target the load generated by users of such hybrid apps as well as gauge the on-device application performance.

Mobile Application Performance Drivers

An ideal mobile application performance test should target every performance driver. Figure 1 presents the key components governing a mobile application’s performance.

For a typical application delivered to a mobile device, the performance as perceived by the end user depends on two key factors:

  • Content delivery to device: This process involves the request delivery to the server, response generation at the server, and the response delivery back to the source device. Typical parameters that affect this are load on the server components, type of network involved, load on the network, and the external component behavior. These parameters can be handled and tested for by emulating the expected real world conditions on the server and network.
  • Content rendering at device: This process involves displaying the response from the server at the source device. Typical parameters that affect this are type of platform, type and configuration of device, and the single user behavior patterns. These parameters can be handled and tested for by in-parallel, on-device application access and monitoring.

Mobile Application Performance Testing Approach

Considering the need to target every driver of the mobile application’s performance, Figure 2 presents at high level the steps required.

So before one gauges the performance of the application at the end device, it is important that the performance testing include the other scenarios in a typical application delivery.

Recreating real-world server conditions

This involves identifying and recreating the conditions as expected on the production servers. There are multiple conditions that need to be recreated. Table 1 below describes them.

Condition Recreated By Available Solutions
Workload type in terms of where the requests are generating fromExample: Web application (desktop and mobile); Native iPhone and Android application Create the scripts specific to a workload type Any load testing solution (HP LoadRunner, Soasta CloudTest, etc.)
Load on server in terms of number of users from different workload typesExample: 200 from Web application, 50 each from iPhone and Android native apps Create load testing scenario specific to the load and the associated scripts for a workload type Any load testing solution (HP LoadRunner, Soasta CloudTest etc.)
Load on server in terms of number of users from different geographic locationsExample: 50% from US, 50% ROW Generate load from the load generators at the identified locations Cloud-based load testing solution(Soasta CloudTest, Gomez Web Load Testing, Keynote Web Load Testing)
Table 1. Mobile App Performance Testing: Recreating Server Conditions

Recreate real-world network conditions

This involves identifying and recreating the conditions on the network to be targeted, while gauging the application’s performance on the target device. Table 2 describes these multiple conditions.

Condition Recreated By Available Solutions
Network type and quality
Example: 3G/2G/WiFi — average/best/worst
  1. Emulation
  2. Devices in real-networks by mobile carriers or ISP
  1. Infosys Windtunnel, Shunra
  2. Keynote DeviceAnywhere, Gomez Synthetic Monitoring
Network Load
Example: 50% bandwidth utilized
Possible only by emulation Any Network Emulation Solution (Infosys Windtunnel, Shunra)
Network by Geography
Example: AT&T 3G in New York, Airtel 3G in Bangalore
  1. Emulation
  2. Devices in real-networks by mobile carriers or ISP
  1. Infosys Windtunnel, Shunra
  2. Keynote DeviceAnywhere, Gomez Synthetic Monitoring
Table 2. Mobile App Performance Testing: Recreating Network Conditions

Recreate real-world device conditions

This involves identifying and recreating the conditions on the mobile device to be targeted, while gauging the application’s performance on the target device. Table 3 describes these multiple conditions.

Condition Recreated By Available Solutions
Application Type
Example: Thick or Thin Client
Load the application under test on real devices Keynote Mobile Web Perspective, Gomez Synthetic Monitoring
Platform Type
Example: iOS, Android
Load the application under test on real devices Keynote Mobile Web Perspective, Gomez Synthetic Monitoring
Device Type
Example: iPhone/iPad, Samsung Galaxy Nexus
Procure the necessary devices and load the application under test on real devices Keynote Mobile Web Perspective, Gomez Synthetic Monitoring
Parallel Applications/OS Component Running
Example: Music/GPS component in use
Put the concerned component in use and load the application on real devices Keynote Mobile Web Perspective, Gomez Synthetic Monitoring
Table 3. Mobile App Performance Testing: Recreating Device Conditions

Gauge the performance at each component

After recreating the real-world conditions, the mobile app developer should measure the performance of the application for every delivery mode along with the other hardware and software components involved. It is important to measure the performance on every component as that will provide an end-to-end view of the application’s performance and not just an isolated one-device performance perspective. Table 4 lists various metrics that can be measured on different components.

Component Monitoring Parameters
(Not Exhaustive)
Available Solutions
Server
  • CPU usage
  • Load
  • Process time
  • Bytes total
  • User time
  • Packets sent/received
  • Any server monitoring solution(HP Sitescope, Perfmon)
    Network
  • Packets and bytes sent
  • Packets and bytes received
  • Average delay
  • Packet drops
  • Any network monitoring solution
    Device (if monitoring allowed)
  • CPU and memory usage
  • Method level profiling
  • Web application component level performance
  • Response times
  • Platform specific profiling solution(Instruments, DDMS)Keynote MITE, Gomez Cross-Browser Testing
    Transaction
  • Response times
  • Throughput
  • Any load testing solution
    Table 4. Performance Metrics To Monitor By Component

    Following the approach described in this article will ensure that the performance of the mobile application under test is measured and assessed accurately — when the other factors affecting its performance in production are emulated as accurately as possible, of course. This approach will provide insight into the performance on the device as the end user would perceive it.

    devx-admin

    devx-admin

    Share the Post:
    5G Innovations

    GPU-Accelerated 5G in Japan

    NTT DOCOMO, a global telecommunications giant, is set to break new ground in the industry as it prepares to launch a GPU-accelerated 5G network in

    AI Ethics

    AI Journalism: Balancing Integrity and Innovation

    An op-ed, produced using Microsoft’s Bing Chat AI software, recently appeared in the St. Louis Post-Dispatch, discussing the potential concerns surrounding the employment of artificial

    Savings Extravaganza

    Big Deal Days Extravaganza

    The highly awaited Big Deal Days event for October 2023 is nearly here, scheduled for the 10th and 11th. Similar to the previous year, this

    5G Innovations

    GPU-Accelerated 5G in Japan

    NTT DOCOMO, a global telecommunications giant, is set to break new ground in the industry as it prepares to launch a GPU-accelerated 5G network in Japan. This innovative approach will

    AI Ethics

    AI Journalism: Balancing Integrity and Innovation

    An op-ed, produced using Microsoft’s Bing Chat AI software, recently appeared in the St. Louis Post-Dispatch, discussing the potential concerns surrounding the employment of artificial intelligence (AI) in journalism. These

    Savings Extravaganza

    Big Deal Days Extravaganza

    The highly awaited Big Deal Days event for October 2023 is nearly here, scheduled for the 10th and 11th. Similar to the previous year, this autumn sale has already created

    Cisco Splunk Deal

    Cisco Splunk Deal Sparks Tech Acquisition Frenzy

    Cisco’s recent massive purchase of Splunk, an AI-powered cybersecurity firm, for $28 billion signals a potential boost in tech deals after a year of subdued mergers and acquisitions in the

    Iran Drone Expansion

    Iran’s Jet-Propelled Drone Reshapes Power Balance

    Iran has recently unveiled a jet-propelled variant of its Shahed series drone, marking a significant advancement in the nation’s drone technology. The new drone is poised to reshape the regional

    Solar Geoengineering

    Did the Overshoot Commission Shoot Down Geoengineering?

    The Overshoot Commission has recently released a comprehensive report that discusses the controversial topic of Solar Geoengineering, also known as Solar Radiation Modification (SRM). The Commission’s primary objective is to

    Remote Learning

    Revolutionizing Remote Learning for Success

    School districts are preparing to reveal a substantial technological upgrade designed to significantly improve remote learning experiences for both educators and students amid the ongoing pandemic. This major investment, which

    Revolutionary SABERS Transforming

    SABERS Batteries Transforming Industries

    Scientists John Connell and Yi Lin from NASA’s Solid-state Architecture Batteries for Enhanced Rechargeability and Safety (SABERS) project are working on experimental solid-state battery packs that could dramatically change the

    Build a Website

    How Much Does It Cost to Build a Website?

    Are you wondering how much it costs to build a website? The approximated cost is based on several factors, including which add-ons and platforms you choose. For example, a self-hosted

    Battery Investments

    Battery Startups Attract Billion-Dollar Investments

    In recent times, battery startups have experienced a significant boost in investments, with three businesses obtaining over $1 billion in funding within the last month. French company Verkor amassed $2.1

    Copilot Revolution

    Microsoft Copilot: A Suit of AI Features

    Microsoft’s latest offering, Microsoft Copilot, aims to revolutionize the way we interact with technology. By integrating various AI capabilities, this all-in-one tool provides users with an improved experience that not

    AI Girlfriend Craze

    AI Girlfriend Craze Threatens Relationships

    The surge in virtual AI girlfriends’ popularity is playing a role in the escalating issue of loneliness among young males, and this could have serious repercussions for America’s future. A

    AIOps Innovations

    Senser is Changing AIOps

    Senser, an AIOps platform based in Tel Aviv, has introduced its groundbreaking AI-powered observability solution to support developers and operations teams in promptly pinpointing the root causes of service disruptions

    Bebop Charging Stations

    Check Out The New Bebob Battery Charging Stations

    Bebob has introduced new 4- and 8-channel battery charging stations primarily aimed at rental companies, providing a convenient solution for clients with a large quantity of batteries. These wall-mountable and

    Malyasian Networks

    Malaysia’s Dual 5G Network Growth

    On Wednesday, Malaysia’s Prime Minister Anwar Ibrahim announced the country’s plan to implement a dual 5G network strategy. This move is designed to achieve a more equitable incorporation of both

    Advanced Drones Race

    Pentagon’s Bold Race for Advanced Drones

    The Pentagon has recently unveiled its ambitious strategy to acquire thousands of sophisticated drones within the next two years. This decision comes in response to Russia’s rapid utilization of airborne

    Important Updates

    You Need to See the New Microsoft Updates

    Microsoft has recently announced a series of new features and updates across their applications, including Outlook, Microsoft Teams, and SharePoint. These new developments are centered around improving user experience, streamlining

    Price Wars

    Inside Hyundai and Kia’s Price Wars

    South Korean automakers Hyundai and Kia are cutting the prices on a number of their electric vehicles (EVs) in response to growing price competition within the South Korean market. Many

    Solar Frenzy Surprises

    Solar Subsidy in Germany Causes Frenzy

    In a shocking turn of events, the German national KfW bank was forced to discontinue its home solar power subsidy program for charging electric vehicles (EVs) after just one day,

    Electric Spare

    Electric Cars Ditch Spare Tires for Efficiency

    Ira Newlander from West Los Angeles is thinking about trading in his old Ford Explorer for a contemporary hybrid or electric vehicle. However, he has observed that the majority of

    Solar Geoengineering Impacts

    Unraveling Solar Geoengineering’s Hidden Impacts

    As we continue to face the repercussions of climate change, scientists and experts seek innovative ways to mitigate its impacts. Solar geoengineering (SG), a technique involving the distribution of aerosols

    Razer Discount

    Unbelievable Razer Blade 17 Discount

    On September 24, 2023, it was reported that Razer, a popular brand in the premium gaming laptop industry, is offering an exceptional deal on their Razer Blade 17 model. Typically

    Innovation Ignition

    New Fintech Innovation Ignites Change

    The fintech sector continues to attract substantial interest, as demonstrated by a dedicated fintech stage at a recent event featuring panel discussions and informal conversations with industry professionals. The gathering,

    Import Easing

    Easing Import Rules for Big Tech

    India has chosen to ease its proposed restrictions on imports of laptops, tablets, and other IT hardware, allowing manufacturers like Apple Inc., HP Inc., and Dell Technologies Inc. more time