Performance Engineering Guru

Mark Tomlinson

Subscribe to Mark Tomlinson: eMailAlertsEmail Alerts
Get Mark Tomlinson via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Related Topics: Enterprise Application Performance, Mobile Enterprise Application Platforms, Mobile Apps and Frameworks, Mobile Apps

MEAP: Article

Five Overlooked Factors of Mobile Application Performance

Why addressing them can help you triumph in the mobile arms race

Too often, little consideration is given to performance testing in the context of mobile application testing. We are reaching a tipping point in how consumers are accessing the Internet, with more than 50% of users expected to access the Web via a mobile device by the end of 2013. With this increase in mobile usage comes the need (really, a requirement) for organizations to meet an increased expectation in application performance.

As users demand the same experience whether they are accessing Web-based content from their smart phones, tablets, or laptop computers, the performance of your mobile application has never been more crucial to the performance of your bottom line. Not only are user expectations creating a need for better performing apps, your competitors are rushing to mobilize their apps, creating a sort of "mobile arms race" in which the loser risks market share, customers, and revenue. To effectively compete and meet user expectations, you need to ensure that performance testing is central to all aspects of your app development process.

Here are five overlooked factors in mobile application performance that, if addressed, will help your company triumph in, rather than be crushed by, the mobile arms race.

#1 Time to start addressing performance issues
When it comes to performance testing your mobile application, good things do not come to those who wait. The longer you wait, the more expensive it will be to fix any issues you uncover. It can be up to 100x more expensive to find and fix problems with your app after deploying to production than it is to address performance throughout the development process. But when in your design process should you start testing for and taking performance into consideration?  This is something you should be doing from the word "go". Build performance service level objectives (SLOs) into your development objectives so that QA and functional testing teams have performance goals. Once your SLOs have been established, testing, analyzing, optimizing, and validating those objectives early and often will save you from headaches and lost revenue associated with post-deployment performance nightmares.

#2 Instability of networks
You cannot control the network but you can control how your application will perform in the network. When testing app performance, many companies do so in isolation, under pristine network conditions. As anyone who has traveled, had a call dropped, service interrupted, or tried to connect to the network at a tech conference knows, network conditions change throughout the day and from location to location. Without taking this variability into account when testing your app, you will not have a clear sense of your app's performance in the real world. By planning for the variability of the network throughout the development life cycle and incorporating real-world network conditions into the testing environment, you will have a much better chance of deploying an app that performs up to your SLOs regardless of where or when it is used.

#3 Discovery
Know thy device. Know thy network. Know thy user. These discovery mantras will keep you focused on key areas of application performance. How will your app run on iPhone vs. Android, iPad vs. Kindle Fire, Verizon vs. AT&T, 4G vs. 3G, New York vs. LA, London vs. Tokyo? Each device, network, and location has its own set of limitations that you will have to account for as a developer. To get your app to meet SLOs, including varying geographic or user-specific SLOs, you have to test for each and every variable. With network, software, and device upgrades being introduced seemingly on infinite loop, it is necessary to continue this in-depth testing throughout the lifecycle of your app.

#4 Designing for performance
What makes a great sports car is twofold. First, it has to look fantastic. Second, and more importantly, it has to perform. Without world-class technology under the hood, it is not a machine, but art. The same principle applies to an app. It could have the most intuitive user interface design with an outstanding look, feel, and style, but all of that means nothing unless it performs. How do you do this? Consider performance as you design or code. Some critical considerations include being aware of cache space, reducing app turns by combining Java Script files, and placing a premium in your development process on optimizing data sent to and from the app. Make this an ongoing process even after app deployment because as new content is added, the structure and size of your site or app will necessarily change. Also, optimize your content. Different devices will display your app at different sizes and image qualities. Reduce the size of page graphics if needed. Remind your marketing department that even though the company logo does look better with more pixels, your customers are more interested in how fast the image loads, not how big it is. Balancing performance with design is a delicate issue but keep in mind that without this balance, a beautiful app that doesn't load fast enough is like a Ferrari with a Yugo engine. People will try it once but never use it again.

#5 Efficient Delivery Strategies
Not all content for your app has to be sent from your hosting location. By utilizing a Content Delivery Network (CDN), you can easily distribute dynamic content closer to your end users. This will decrease load time, reduce latency, and give users a better interactive experience with your site. For example, if your data is located on servers in San Francisco, users in London will experience greater latency than users in Chicago. By considering early on in the development process what content can be placed on a CDN and having already discovered locations of your end users, you will be able to provide users in remote locations with a faster time to first byte along with overall faster transaction times and increased performance. You also need to consider third party content that will be displayed on your site. Since you have less control over that content and its load times, be sure to, whenever possible, design your application so that it is less dependent upon such third party content.

What Does This All Mean?
Given that most companies are developing and deploying mobile apps not for fun, but to help their business grow, there is significant risk in overlooking these factors. In the mobile arms race, app performance is the new deciding factor in determining which companies profit and which lose customers. By addressing these five factors from the very first stages of mobile application development, you will place your company at an advantage over the competition. Not only will addressing them provide tangible benefits like saving time and money on fixing issues, it will also keep your company's reputation, public image, and customer loyalty in tact, important non-tangibles in a Twitter-driven world. So, plan for performance early, test for it often, and you will have a much greater chance of being victorious in the new mobile arms race.

More Stories By Mark Tomlinson

Mark Tomlinson is the Senior Director, Application Performance Engineering at Shunra Software (www.shunra.com), a Philadelphia-based company that helps firms worldwide ensure application performance and end user experience. He has 20 years of experience of real-world scenario testing of very large and complex systems. He is regarded as an expert and leader in software testing automation with specific emphasis on performance.