SlideShare a Scribd company logo
!
!
W4#
Session!
6/24/2015! !
10:15!AM!
!
!
!
!
“Testing#Mobile#App#Performance”##
!
Presented#by:#
#
Brad#Stoner#
Neotys#
#
#
#
#
#
Brought#to#you#by:#
#
#
#
#
#
#
340!Corporate!Way,!Suite!300,!Orange!Park,!FL!32073!
888D268D8770!E!904D278D0524!E!sqeinfo@sqe.com!E!www.sqe.com!
!
!
!
!
!
!!!!! !
!!!!
Brad Stoner is a senior performance engineer at Neotys. Previously, he managed the load
and performance team at H&R Block where he spent seven years leading his five-person team
in the pursuit of improved application performance and quality. Brad and his team managed
the performance testing process for more than fifty projects annually. He founded Sandbreak
Digital Solutions, a consulting company specializing in web application performance testing,
web page optimization, front end optimization, capacity testing, infrastructure validation, and
cloud testing. In his twelve years of IT experience, Brad has held roles from systems
engineering to operations management.
Brad Stoner
Neotys
www.neotys.com© 2015 Neotys. All Rights Reserved.
Ensuring the Performance of Mobile Apps
On Every Device and Network…
StarCANADA 2015 Brad Stoner, Neotys USA
www.neotys.com© 2015 Neotys. All Rights Reserved.
BIOGRAPHY
NEOTYS USA
Senior Performance Engineer
H&R Block
IT Manager – Load and Performance Team
Sandbreak Digital Solutions LLC
Former Founder/Principal Consultant
Webinars on neotys.com
www.neotys.com© 2015 Neotys. All Rights Reserved.
OBJECTIVES
Review of the Problem
Why is performance testing necessary?
How does it apply mobile?
Types of Mobile Testing
How they relate to performance
Mobile Testing Challenges
Overview of Performance Testing
Mobile specifics
Suggested Approaches
www.neotys.com© 2015 Neotys. All Rights Reserved.
PERFORMANCE MATTERS! From a Nice-to-Have to a MUST-Have
1 Second Could Cost
Amazon $1.6 Billion In Sales
US Online Businesses =
$1.7 trillion in 2013
100K$ TV ADS WEBSITE CRASHES!
The Obamacare Website
Failed For The Same Reason
The Soviet Union Did
Failures
Obamacare Apps
Bank of America
Facebook IPO
Poor Performance =
Lost Revenues
Meanwhile…
Entertainment, video &
mobile usage are exploding!
Website = Brand
Secure Marketing Investments
www.neotys.com© 2015 Neotys. All Rights Reserved.
MARKET DRIVERS: BUSINESS
Web and Mobile Applications are Business Critical
Organizations compete via the internet
Software and Brand are synonymous
Technology usage growing
Failure and poor performance are catastrophic and costly
Time To Market pressure increasing
End user expectations are rising
Investments in Software Quality are Up
Load testing is a must-have
Time pressure on dev & tests teams
18%
23%
28%
CY 2012 CY 2013 CY 2014
% IT BUDGET FOR APP QUALITY
Source: World Quality Report 2013-2014
0%
40%
20%
www.neotys.com© 2015 Neotys. All Rights Reserved.
MOBILE IS GROWING!
Unprecedented User
Expectations
Exploding Expansion
of Devices
• 1.2 billion new smartphones
over the next 5 years
• Smartphones over
40% of all handset
shipments
• 85% of users
expect mobile app
to load at least as
quickly as desktop
sites
• 25% of users abandoned a
mobile app after 3 second
delay
www.neotys.com© 2015 Neotys. All Rights Reserved.
PERFORMANCE PERSPECTIVE
How can we tell where the problem is?
Combinations of functional and performance testing but…
“End User Experience”
• Time between a client initiating a transaction and the
time the result is rendered back in the device
• Stand-alone application - EUE is determined completely
on the device
• “Other” application: - EUE can be measured on device
but is sum of:
- Round trip time from device to server and back
- Device-side rendering
Does it matter where the problem is?
(device, server, network, etc.)
• To the business…maybe not.
• To you…maybe (probably) yes!!
www.neotys.com© 2015 Neotys. All Rights Reserved.
CHALLENGES/CONSIDERATIONS – DEVICE TYPE
DEVICE CHALLENGES
Operating Systems
App Technologies
Screen Sizes
iOS Android Windows
Design of what content is
above/below the fold
When that content
gets delivered
Different content for
different devices
Web SocketHTML 5 Streaming
Video/Audio
Google SPDY
www.neotys.com© 2015 Neotys. All Rights Reserved.
MOBILE APPLICATION TYPES
WEB
Browser-Based
NATIVE
Client Downloaded From
App Store or Google Play
• Usually connected
to the internet
- If not, “Standalone”
• Generally faster (client-side)
than browser app
• Often a different application
site than if accessed via
desktop browser
HYBRID
Combo of Web
and Native
• Usually
wrappers for
web clients
www.neotys.com© 2015 Neotys. All Rights Reserved.
TYPES OF MOBILE TESTING
PLATFORM TESTING
LOAD TESTING
FUNCTIONAL
TESTING
FEATURES
DEVICE
PERFORMANCE
• Does the app do what
it’s expected to do?
How does the app work on
this device?
• Supported?
• CPU, Battery consumption
How fast is it displayed?
• Speed of use
• Can 1000 users use this app?
• What is the user experience
under load?
• What about 500 users on 3G
and 500 on 4G LTE?
www.neotys.com© 2015 Neotys. All Rights Reserved.
TESTING STANDALONE APPLICATIONS
Functional / Platform Testing Will Suffice
• All logic on the device itself
• No back-end server
Metrics to Correlate
• Custom Timers
• Device “Vitals” (CPU, Battery, Throughput)
Automated or Manual?
• Hard to do it manually for all different configurations!!
• How to get Vitals manually
Solution Requirements
• Consider an automation tool / vendor that allows:
- ON DEVICE testing
- Multi-device testing
- Vitals
www.neotys.com© 2015 Neotys. All Rights Reserved.
TESTING NATIVE, WEB, OR HYBRID APPLICATIONS
Remember: EUE = device-side rendering + server-side performance
How do we test each?
DEVICE-SIDE
Performance impacted by concurrent user load
Similar to browser-based apps but with nuances
SERVER-SIDE
Essentially a stand-alone application
Measurements made similar to prior slide
However performance impacted by server
Have To Separate Device-Side From Server-Side
How do we correlate the two?
www.neotys.com© 2015 Neotys. All Rights Reserved.
LOAD AND PERFORMANCE TESTING – OVERVIEW
What?
• The process of putting demand on a system or
device and measuring its response
• Non-functional
• Bridges, roller coasters, elevators…
• Software applications: Generating network traffic
• (Impossible to do manually!!)
Why?
• To avoid:
o Loss of revenue
o Customer “migration”
o Decreased productivity
• To understand an application’s
o Scalability
o Stability
www.neotys.com© 2015 Neotys. All Rights Reserved.
LOAD / PERFORMANCE TESTING SOLUTIONS
1
2
3
4
HOW THEY WORK
Record Usage Scenarios
Measure Response Times
Generate the Network Load
Analyze Results
- Network traffic between client and server
- “Models” of real-world activity
- Round-trip times from client to server and back
www.neotys.com© 2015 Neotys. All Rights Reserved.
LOAD / PERFORMANCE TESTING SOLUTIONS
Cloud Load Generators
Controller
On-Premise Load Generators
Firewall
Application
Server
Database
Server
LOAD TESTING SOLUTION APPLICATION INFRASTRUCTURE
LOAD
www.neotys.com© 2015 Neotys. All Rights Reserved.
LOAD / PERFORMANCE TESTING SOLUTIONS
Cloud Load Generators
Controller
On-Premise Load Generators
Firewall
Application
Server
Database
Server
LOAD TESTING SOLUTION APPLICATION INFRASTRUCTURE
LOAD
Monitoring
Engine
Monitoring
www.neotys.com© 2015 Neotys. All Rights Reserved.
DEVICE CHALLENGES FOR PERFORMANCE TESTING
Recording the Application
• Type of app
- Native apps
- Web apps through mobile browsers
- Hybrid apps
• Technologies used in the app
- HTML 5
- Web Socket
- Streaming Video/audio
- Google SPDY
Replay scenarios for specific devices and browsers
• Different content is delivered depending on the specific device or browser
• Different browsers and devices have different numbers of parallel connections that
affect performance
www.neotys.com© 2015 Neotys. All Rights Reserved.
CHALLENGES/CONSIDERATIONS – NETWORK CONDITIONS
Bandwidth
• How are users with different download and
upload capacities experiencing performance on
the app?
Latency
• How are network delays affecting the
performance of the app?
Packet Loss
• How are users experiencing the app when
switching cell towers, traveling, losing signal, etc.
SHOULD WE EMULATE THESE CONDITIONS?
YES!!!
www.neotys.com© 2015 Neotys. All Rights Reserved.
LATENCY: THE REAL BOTTLENECK
Bandwidth Isn’t Everything
• Benefits of increasing bandwidth over HTTP
caps out around 5 Mbps
• Increasing bandwidth from 5 to 10 Mbps
decreases page load time by only about 5%
Latency is Worse for Mobile
• In 2012, the average round trip time to
Google was ~100ms worldwide and ~50-
60ms within the US
• On mobile, RTT is around 100-1000ms
• If a device has been idle and requires the
radio to turn on first, add 1000-2000ms to
that time
Benefit of Adding an Extra Mbps
Bandwidth
PercentImprovement
20
0
10
30
40
www.neotys.com© 2015 Neotys. All Rights Reserved.
PACKET LOSS INFLUENCE
Packet Loss
Consequences
Packet retransmission
End user experience degraded
because packet loss increases jitter
Errors could occur if the packet loss
is in pure data transmission
Packet Loss
Inevitable
Mobility of the user
Quickly switching
to the next cell tower
Temporary lose the signal due to
congestion of the current cell
www.neotys.com© 2015 Neotys. All Rights Reserved.
CHALLENGES/CONSIDERATIONS - HIGH, DISTRIBUTED LOAD
High Number of Users
• Mobile applications usually have large user bases
• High user growth creates need for highly scalable load generation infrastructure
Geographical Distributed Load
• Users are accessing apps from remote
locations
• Distance and location greatly affect
performance
Mix of Web & Mobile Users
• Many mobile apps have a “partnered” web app with a
shared backend
• High load on the web app can affect performance on
mobile
TIP: USE CLOUD-BASED LOAD GENERATION
www.neotys.com© 2015 Neotys. All Rights Reserved.
MOBILE PERFORMANCE TESTING – SOLUTION REQUIREMENTS
Record from Any Device
• From real devices and emulators
• Native or browser-based applications
Simulate Any Device or Browser
• Ensures the right content is delivered for
that device or browser
• Simulates parallel connections for each
specific device and browser
Emulate Realistic Network Conditions
• Bandwidth
• Latency
• Packet Loss
Generate Load from the Cloud
• Geographic realism
• Test full delivery chain
Load
Command
3GH+ 4G WiFi
APPMonitor
Network
Emulation
& Device
Simulation
Cloud Load Generators On-premise Load Generators
Database ServerApp Server Web Server
www.neotys.com© 2015 Neotys. All Rights Reserved.
WHAT HAPPENED TO EUE?
The Problem:
• Performance solutions don’t provide on-device measures
• Functional/platform solutions don’t separate round-trip or server-side measures
HOLY GRAIL
SOLUTION
COMBINE THE TWO!
(Manual stop watch approach not feasible)
Automated
Functional/Platform
Automated
Performance
On-device measures
Device Vitals
“Round-Trip” measures
INTEGRATED FOR RESULTS CORRELATION
www.neotys.com© 2015 Neotys. All Rights Reserved.
LOAD + FUNCTIONAL TESTING
• Automatically trigger
functional test with the
start of a load test
• See real device rendering
times and vitals while the
backend of the
application is under load
• Results correlated for
“end-to-end”
Load
3GH+
4G WiFi
APPMonitor
Cloud LGsOn-premise LGs
Database ServerApp Server Web Server
Controller
Real
Devices &
Networks
Functional
Simulated
Devices
w/
Network
Emulation
Real Device Metrics
4G
3GH+
Real Device Metrics Under Load
www.neotys.com© 2015 Neotys. All Rights Reserved.
COMPLETE MOBILE EUE
Real Device Users
Virtual Users Load
Real Device
Testing Tool
Load
Testing Tool Application
Server
Load End User
Experience
Round-Trip
Time
00:00:00 00:00:30 00:01:00 00:01:30
www.neotys.com© 2015 Neotys. All Rights Reserved.
SUMMARY
Mobile devices are everywhere. Application Performance is critical.
Performance usually means “End User Experience”
Test with a combo of
AUTOMATED & INTEGRATED
solutions
MEASURE & CORRELATE
www.neotys.com© 2015 Neotys. All Rights Reserved.
QUESTIONS?
Feel free to contact me:
Email: brad.stoner@neotys.com

More Related Content

What's hot (20)

PPTX
Mobile Application testing
Mukta Gupta
 
PDF
SauceCon 2017: Making Your Mobile App Automatable
Sauce Labs
 
PDF
Testing Techniques for Mobile Applications
IndicThreads
 
PPTX
Ensure Your Mobile Channels Generate Revenue on Holiday Peak Days
Bitbar
 
PDF
Mobile Apps Delivery - Evolution and Tools
Asaf Saar
 
PDF
How to Find Vulnerabilities and Bugs in Mobile Applications
Josiah Renaudin
 
PDF
Mobile Testing Challenges and Solutions XBOSoft Webinar
XBOSoft
 
PDF
Consigue una App 5 estrellas
Globe Testing
 
PDF
SauceCon 2017: test.allTheThings(): Digital Edition
Sauce Labs
 
PDF
10 things you didnt know about appium + whats new in appium 1.5
Sauce Labs
 
PDF
An Introduction to Appium Desktop
Sauce Labs
 
PPTX
Sauce Labs+Applitools - Automated Visual Testing in the Cloud
Sauce Labs
 
PDF
Webinar learn how to test any mobile app style from within eclipse using real...
Perfecto Mobile
 
PDF
Ciprian balea automated performance-testing
Romania Testing
 
PPTX
Selenium Camp 2016
Dan Cuellar
 
PPTX
Mobile test automation perfecto star east
Perfecto Mobile
 
PPTX
How Digital Changed the Game... and how to cross platform test for it
Lizzy Guido (she/her)
 
PDF
SauceCon 2017: Building a Continuous Delivery Pipeline with Testing in Mind
Sauce Labs
 
PDF
Launch High Performing Mobile Apps with Appurify
Manish Lachwani
 
PDF
Learnings from Hybrid App Testing Jijesh Mohan
vodQA
 
Mobile Application testing
Mukta Gupta
 
SauceCon 2017: Making Your Mobile App Automatable
Sauce Labs
 
Testing Techniques for Mobile Applications
IndicThreads
 
Ensure Your Mobile Channels Generate Revenue on Holiday Peak Days
Bitbar
 
Mobile Apps Delivery - Evolution and Tools
Asaf Saar
 
How to Find Vulnerabilities and Bugs in Mobile Applications
Josiah Renaudin
 
Mobile Testing Challenges and Solutions XBOSoft Webinar
XBOSoft
 
Consigue una App 5 estrellas
Globe Testing
 
SauceCon 2017: test.allTheThings(): Digital Edition
Sauce Labs
 
10 things you didnt know about appium + whats new in appium 1.5
Sauce Labs
 
An Introduction to Appium Desktop
Sauce Labs
 
Sauce Labs+Applitools - Automated Visual Testing in the Cloud
Sauce Labs
 
Webinar learn how to test any mobile app style from within eclipse using real...
Perfecto Mobile
 
Ciprian balea automated performance-testing
Romania Testing
 
Selenium Camp 2016
Dan Cuellar
 
Mobile test automation perfecto star east
Perfecto Mobile
 
How Digital Changed the Game... and how to cross platform test for it
Lizzy Guido (she/her)
 
SauceCon 2017: Building a Continuous Delivery Pipeline with Testing in Mind
Sauce Labs
 
Launch High Performing Mobile Apps with Appurify
Manish Lachwani
 
Learnings from Hybrid App Testing Jijesh Mohan
vodQA
 

Similar to Testing Mobile App Performance (20)

PDF
Mobile Performance Testing Approaches and Challenges
Nous Infosystems
 
PPTX
The Best of Both Worlds - Combining Performance and Functional Mobile App Tes...
Bitbar
 
PDF
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
NITHIN S.S
 
PPTX
Using Automation to Meet Demands for Performance and Quality
Neotys
 
PDF
Enhance mobile app testing with performance-centric strategies: SauceCon 2022
NITHIN S.S
 
PPTX
The Essentials of Mobile App Performance Testing and Monitoring
Correlsense
 
PDF
Experitest & Hexaware Co-Webinar
Experitest
 
PPT
Fast, Strong & Nimble Mobile Performance Testing
SOASTA
 
PDF
Geekle QA Summit 22.2_ The Curious Case of Mobile App Performance Testing.pdf
NITHIN S.S
 
PPTX
Four Best Practices for Modern Performance Testing
SOASTA
 
PPTX
Four best practices for performance testing mobile apps soasta and utopia
SOASTA
 
PDF
8 Blind Spots Often Overlooked When Testing on Mobile
Neotys
 
PPTX
Zen Test Labs Mobile Application Testing
Zen Test Labs
 
PPTX
HienVo_Mobile Testing_v.1.2
Hien Vo
 
PDF
Comprehensive Performance Testing: From Early Dev to Live Production
TechWell
 
PDF
Webinar effective mobile performance testing using real devices
Perfecto Mobile
 
PDF
Innovate 2013 session 1243 mobile testing.v3
Leigh Williamson
 
PPTX
Mobile Application Testing af Frederik Carlier, Jamo Solutions
InfinIT - Innovationsnetværket for it
 
PPTX
#NEOTYSPAC performance testing shift left
Amir Rozenberg
 
PDF
Mobile App Performance Testing: Ultimate Guide for Optimal User Experience
morrismoses149
 
Mobile Performance Testing Approaches and Challenges
Nous Infosystems
 
The Best of Both Worlds - Combining Performance and Functional Mobile App Tes...
Bitbar
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
NITHIN S.S
 
Using Automation to Meet Demands for Performance and Quality
Neotys
 
Enhance mobile app testing with performance-centric strategies: SauceCon 2022
NITHIN S.S
 
The Essentials of Mobile App Performance Testing and Monitoring
Correlsense
 
Experitest & Hexaware Co-Webinar
Experitest
 
Fast, Strong & Nimble Mobile Performance Testing
SOASTA
 
Geekle QA Summit 22.2_ The Curious Case of Mobile App Performance Testing.pdf
NITHIN S.S
 
Four Best Practices for Modern Performance Testing
SOASTA
 
Four best practices for performance testing mobile apps soasta and utopia
SOASTA
 
8 Blind Spots Often Overlooked When Testing on Mobile
Neotys
 
Zen Test Labs Mobile Application Testing
Zen Test Labs
 
HienVo_Mobile Testing_v.1.2
Hien Vo
 
Comprehensive Performance Testing: From Early Dev to Live Production
TechWell
 
Webinar effective mobile performance testing using real devices
Perfecto Mobile
 
Innovate 2013 session 1243 mobile testing.v3
Leigh Williamson
 
Mobile Application Testing af Frederik Carlier, Jamo Solutions
InfinIT - Innovationsnetværket for it
 
#NEOTYSPAC performance testing shift left
Amir Rozenberg
 
Mobile App Performance Testing: Ultimate Guide for Optimal User Experience
morrismoses149
 
Ad

More from TechWell (20)

PDF
Failing and Recovering
TechWell
 
PDF
Instill a DevOps Testing Culture in Your Team and Organization
TechWell
 
PDF
Test Design for Fully Automated Build Architecture
TechWell
 
PDF
System-Level Test Automation: Ensuring a Good Start
TechWell
 
PDF
Build Your Mobile App Quality and Test Strategy
TechWell
 
PDF
Testing Transformation: The Art and Science for Success
TechWell
 
PDF
Implement BDD with Cucumber and SpecFlow
TechWell
 
PDF
Develop WebDriver Automated Tests—and Keep Your Sanity
TechWell
 
PDF
Ma 15
TechWell
 
PDF
Eliminate Cloud Waste with a Holistic DevOps Strategy
TechWell
 
PDF
Transform Test Organizations for the New World of DevOps
TechWell
 
PDF
The Fourth Constraint in Project Delivery—Leadership
TechWell
 
PDF
Resolve the Contradiction of Specialists within Agile Teams
TechWell
 
PDF
Pin the Tail on the Metric: A Field-Tested Agile Game
TechWell
 
PDF
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
TechWell
 
PDF
A Business-First Approach to DevOps Implementation
TechWell
 
PDF
Databases in a Continuous Integration/Delivery Process
TechWell
 
PDF
Mobile Testing: What—and What Not—to Automate
TechWell
 
PDF
Cultural Intelligence: A Key Skill for Success
TechWell
 
PDF
Turn the Lights On: A Power Utility Company's Agile Transformation
TechWell
 
Failing and Recovering
TechWell
 
Instill a DevOps Testing Culture in Your Team and Organization
TechWell
 
Test Design for Fully Automated Build Architecture
TechWell
 
System-Level Test Automation: Ensuring a Good Start
TechWell
 
Build Your Mobile App Quality and Test Strategy
TechWell
 
Testing Transformation: The Art and Science for Success
TechWell
 
Implement BDD with Cucumber and SpecFlow
TechWell
 
Develop WebDriver Automated Tests—and Keep Your Sanity
TechWell
 
Ma 15
TechWell
 
Eliminate Cloud Waste with a Holistic DevOps Strategy
TechWell
 
Transform Test Organizations for the New World of DevOps
TechWell
 
The Fourth Constraint in Project Delivery—Leadership
TechWell
 
Resolve the Contradiction of Specialists within Agile Teams
TechWell
 
Pin the Tail on the Metric: A Field-Tested Agile Game
TechWell
 
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
TechWell
 
A Business-First Approach to DevOps Implementation
TechWell
 
Databases in a Continuous Integration/Delivery Process
TechWell
 
Mobile Testing: What—and What Not—to Automate
TechWell
 
Cultural Intelligence: A Key Skill for Success
TechWell
 
Turn the Lights On: A Power Utility Company's Agile Transformation
TechWell
 
Ad

Recently uploaded (20)

PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Tally software_Introduction_Presentation
AditiBansal54083
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 

Testing Mobile App Performance

  • 2. ! ! !!!!! ! !!!! Brad Stoner is a senior performance engineer at Neotys. Previously, he managed the load and performance team at H&R Block where he spent seven years leading his five-person team in the pursuit of improved application performance and quality. Brad and his team managed the performance testing process for more than fifty projects annually. He founded Sandbreak Digital Solutions, a consulting company specializing in web application performance testing, web page optimization, front end optimization, capacity testing, infrastructure validation, and cloud testing. In his twelve years of IT experience, Brad has held roles from systems engineering to operations management. Brad Stoner Neotys
  • 3. www.neotys.com© 2015 Neotys. All Rights Reserved. Ensuring the Performance of Mobile Apps On Every Device and Network… StarCANADA 2015 Brad Stoner, Neotys USA
  • 4. www.neotys.com© 2015 Neotys. All Rights Reserved. BIOGRAPHY NEOTYS USA Senior Performance Engineer H&R Block IT Manager – Load and Performance Team Sandbreak Digital Solutions LLC Former Founder/Principal Consultant Webinars on neotys.com
  • 5. www.neotys.com© 2015 Neotys. All Rights Reserved. OBJECTIVES Review of the Problem Why is performance testing necessary? How does it apply mobile? Types of Mobile Testing How they relate to performance Mobile Testing Challenges Overview of Performance Testing Mobile specifics Suggested Approaches
  • 6. www.neotys.com© 2015 Neotys. All Rights Reserved. PERFORMANCE MATTERS! From a Nice-to-Have to a MUST-Have 1 Second Could Cost Amazon $1.6 Billion In Sales US Online Businesses = $1.7 trillion in 2013 100K$ TV ADS WEBSITE CRASHES! The Obamacare Website Failed For The Same Reason The Soviet Union Did Failures Obamacare Apps Bank of America Facebook IPO Poor Performance = Lost Revenues Meanwhile… Entertainment, video & mobile usage are exploding! Website = Brand Secure Marketing Investments
  • 7. www.neotys.com© 2015 Neotys. All Rights Reserved. MARKET DRIVERS: BUSINESS Web and Mobile Applications are Business Critical Organizations compete via the internet Software and Brand are synonymous Technology usage growing Failure and poor performance are catastrophic and costly Time To Market pressure increasing End user expectations are rising Investments in Software Quality are Up Load testing is a must-have Time pressure on dev & tests teams 18% 23% 28% CY 2012 CY 2013 CY 2014 % IT BUDGET FOR APP QUALITY Source: World Quality Report 2013-2014 0% 40% 20%
  • 8. www.neotys.com© 2015 Neotys. All Rights Reserved. MOBILE IS GROWING! Unprecedented User Expectations Exploding Expansion of Devices • 1.2 billion new smartphones over the next 5 years • Smartphones over 40% of all handset shipments • 85% of users expect mobile app to load at least as quickly as desktop sites • 25% of users abandoned a mobile app after 3 second delay
  • 9. www.neotys.com© 2015 Neotys. All Rights Reserved. PERFORMANCE PERSPECTIVE How can we tell where the problem is? Combinations of functional and performance testing but… “End User Experience” • Time between a client initiating a transaction and the time the result is rendered back in the device • Stand-alone application - EUE is determined completely on the device • “Other” application: - EUE can be measured on device but is sum of: - Round trip time from device to server and back - Device-side rendering Does it matter where the problem is? (device, server, network, etc.) • To the business…maybe not. • To you…maybe (probably) yes!!
  • 10. www.neotys.com© 2015 Neotys. All Rights Reserved. CHALLENGES/CONSIDERATIONS – DEVICE TYPE DEVICE CHALLENGES Operating Systems App Technologies Screen Sizes iOS Android Windows Design of what content is above/below the fold When that content gets delivered Different content for different devices Web SocketHTML 5 Streaming Video/Audio Google SPDY
  • 11. www.neotys.com© 2015 Neotys. All Rights Reserved. MOBILE APPLICATION TYPES WEB Browser-Based NATIVE Client Downloaded From App Store or Google Play • Usually connected to the internet - If not, “Standalone” • Generally faster (client-side) than browser app • Often a different application site than if accessed via desktop browser HYBRID Combo of Web and Native • Usually wrappers for web clients
  • 12. www.neotys.com© 2015 Neotys. All Rights Reserved. TYPES OF MOBILE TESTING PLATFORM TESTING LOAD TESTING FUNCTIONAL TESTING FEATURES DEVICE PERFORMANCE • Does the app do what it’s expected to do? How does the app work on this device? • Supported? • CPU, Battery consumption How fast is it displayed? • Speed of use • Can 1000 users use this app? • What is the user experience under load? • What about 500 users on 3G and 500 on 4G LTE?
  • 13. www.neotys.com© 2015 Neotys. All Rights Reserved. TESTING STANDALONE APPLICATIONS Functional / Platform Testing Will Suffice • All logic on the device itself • No back-end server Metrics to Correlate • Custom Timers • Device “Vitals” (CPU, Battery, Throughput) Automated or Manual? • Hard to do it manually for all different configurations!! • How to get Vitals manually Solution Requirements • Consider an automation tool / vendor that allows: - ON DEVICE testing - Multi-device testing - Vitals
  • 14. www.neotys.com© 2015 Neotys. All Rights Reserved. TESTING NATIVE, WEB, OR HYBRID APPLICATIONS Remember: EUE = device-side rendering + server-side performance How do we test each? DEVICE-SIDE Performance impacted by concurrent user load Similar to browser-based apps but with nuances SERVER-SIDE Essentially a stand-alone application Measurements made similar to prior slide However performance impacted by server Have To Separate Device-Side From Server-Side How do we correlate the two?
  • 15. www.neotys.com© 2015 Neotys. All Rights Reserved. LOAD AND PERFORMANCE TESTING – OVERVIEW What? • The process of putting demand on a system or device and measuring its response • Non-functional • Bridges, roller coasters, elevators… • Software applications: Generating network traffic • (Impossible to do manually!!) Why? • To avoid: o Loss of revenue o Customer “migration” o Decreased productivity • To understand an application’s o Scalability o Stability
  • 16. www.neotys.com© 2015 Neotys. All Rights Reserved. LOAD / PERFORMANCE TESTING SOLUTIONS 1 2 3 4 HOW THEY WORK Record Usage Scenarios Measure Response Times Generate the Network Load Analyze Results - Network traffic between client and server - “Models” of real-world activity - Round-trip times from client to server and back
  • 17. www.neotys.com© 2015 Neotys. All Rights Reserved. LOAD / PERFORMANCE TESTING SOLUTIONS Cloud Load Generators Controller On-Premise Load Generators Firewall Application Server Database Server LOAD TESTING SOLUTION APPLICATION INFRASTRUCTURE LOAD
  • 18. www.neotys.com© 2015 Neotys. All Rights Reserved. LOAD / PERFORMANCE TESTING SOLUTIONS Cloud Load Generators Controller On-Premise Load Generators Firewall Application Server Database Server LOAD TESTING SOLUTION APPLICATION INFRASTRUCTURE LOAD Monitoring Engine Monitoring
  • 19. www.neotys.com© 2015 Neotys. All Rights Reserved. DEVICE CHALLENGES FOR PERFORMANCE TESTING Recording the Application • Type of app - Native apps - Web apps through mobile browsers - Hybrid apps • Technologies used in the app - HTML 5 - Web Socket - Streaming Video/audio - Google SPDY Replay scenarios for specific devices and browsers • Different content is delivered depending on the specific device or browser • Different browsers and devices have different numbers of parallel connections that affect performance
  • 20. www.neotys.com© 2015 Neotys. All Rights Reserved. CHALLENGES/CONSIDERATIONS – NETWORK CONDITIONS Bandwidth • How are users with different download and upload capacities experiencing performance on the app? Latency • How are network delays affecting the performance of the app? Packet Loss • How are users experiencing the app when switching cell towers, traveling, losing signal, etc. SHOULD WE EMULATE THESE CONDITIONS? YES!!!
  • 21. www.neotys.com© 2015 Neotys. All Rights Reserved. LATENCY: THE REAL BOTTLENECK Bandwidth Isn’t Everything • Benefits of increasing bandwidth over HTTP caps out around 5 Mbps • Increasing bandwidth from 5 to 10 Mbps decreases page load time by only about 5% Latency is Worse for Mobile • In 2012, the average round trip time to Google was ~100ms worldwide and ~50- 60ms within the US • On mobile, RTT is around 100-1000ms • If a device has been idle and requires the radio to turn on first, add 1000-2000ms to that time Benefit of Adding an Extra Mbps Bandwidth PercentImprovement 20 0 10 30 40
  • 22. www.neotys.com© 2015 Neotys. All Rights Reserved. PACKET LOSS INFLUENCE Packet Loss Consequences Packet retransmission End user experience degraded because packet loss increases jitter Errors could occur if the packet loss is in pure data transmission Packet Loss Inevitable Mobility of the user Quickly switching to the next cell tower Temporary lose the signal due to congestion of the current cell
  • 23. www.neotys.com© 2015 Neotys. All Rights Reserved. CHALLENGES/CONSIDERATIONS - HIGH, DISTRIBUTED LOAD High Number of Users • Mobile applications usually have large user bases • High user growth creates need for highly scalable load generation infrastructure Geographical Distributed Load • Users are accessing apps from remote locations • Distance and location greatly affect performance Mix of Web & Mobile Users • Many mobile apps have a “partnered” web app with a shared backend • High load on the web app can affect performance on mobile TIP: USE CLOUD-BASED LOAD GENERATION
  • 24. www.neotys.com© 2015 Neotys. All Rights Reserved. MOBILE PERFORMANCE TESTING – SOLUTION REQUIREMENTS Record from Any Device • From real devices and emulators • Native or browser-based applications Simulate Any Device or Browser • Ensures the right content is delivered for that device or browser • Simulates parallel connections for each specific device and browser Emulate Realistic Network Conditions • Bandwidth • Latency • Packet Loss Generate Load from the Cloud • Geographic realism • Test full delivery chain Load Command 3GH+ 4G WiFi APPMonitor Network Emulation & Device Simulation Cloud Load Generators On-premise Load Generators Database ServerApp Server Web Server
  • 25. www.neotys.com© 2015 Neotys. All Rights Reserved. WHAT HAPPENED TO EUE? The Problem: • Performance solutions don’t provide on-device measures • Functional/platform solutions don’t separate round-trip or server-side measures HOLY GRAIL SOLUTION COMBINE THE TWO! (Manual stop watch approach not feasible) Automated Functional/Platform Automated Performance On-device measures Device Vitals “Round-Trip” measures INTEGRATED FOR RESULTS CORRELATION
  • 26. www.neotys.com© 2015 Neotys. All Rights Reserved. LOAD + FUNCTIONAL TESTING • Automatically trigger functional test with the start of a load test • See real device rendering times and vitals while the backend of the application is under load • Results correlated for “end-to-end” Load 3GH+ 4G WiFi APPMonitor Cloud LGsOn-premise LGs Database ServerApp Server Web Server Controller Real Devices & Networks Functional Simulated Devices w/ Network Emulation Real Device Metrics 4G 3GH+ Real Device Metrics Under Load
  • 27. www.neotys.com© 2015 Neotys. All Rights Reserved. COMPLETE MOBILE EUE Real Device Users Virtual Users Load Real Device Testing Tool Load Testing Tool Application Server Load End User Experience Round-Trip Time 00:00:00 00:00:30 00:01:00 00:01:30
  • 28. www.neotys.com© 2015 Neotys. All Rights Reserved. SUMMARY Mobile devices are everywhere. Application Performance is critical. Performance usually means “End User Experience” Test with a combo of AUTOMATED & INTEGRATED solutions MEASURE & CORRELATE
  • 29. www.neotys.com© 2015 Neotys. All Rights Reserved. QUESTIONS? Feel free to contact me: Email: [email protected]