SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
© Utopia Solutions
Best Practices for Performance Testing Mobile Apps
Lee Barnes, CTO
Utopia Solutions
© Utopia Solutions
Apology
I don’t believe in “best practices”…
I do believe in guidelines and better
approaches for a given situation
© Utopia Solutions3
Key Questions
How is mobile different?
How can I adapt?
Why is performance of mobile
important?
© Utopia Solutions4
Why Should I Care?
M-Commerce
66%
OF SHOPPERS
ABANDON
TRANSACTIONS
5 OUT OF 10
BECAUSE OF POOR
PERFORMANCE
1DELAY
SECOND
7%DROP IN
CONVERSIONS
equals a
2013 Mobile Commerce Insights
study conducted by Jumio
© Utopia Solutions5
Still Not Convinced?
2012-2013 World Quality
Report
© Utopia Solutions6
Evolution of Performance Testing
1990 2000 2010
2-Tier
Client Server Web Mobile
Challenges
State of the
Practice
Testing Large
Loads
Complex /
Integrated
Systems
Proprietary
Protocols
Skilled
Resources
In-Lab
Testing
Tool
Maturation
Open Source
Tools
Specialized
Resources
Cloud-based
Testing
© Utopia Solutions
Mobile Challenges & Adaptations
© Utopia Solutions8
Mobile Challenges – User Access
Native App Mobile Site
Full / Responsive
Site
Your users have options…
© Utopia Solutions9
Assess the User and Load Profile
1. Determine the user profile
• Business processes
• Native app, mobile site, full site
• Preferred browser
• Network conditions
• Geographic location
2. Determine the load profile
• Volume of users by business
process and location
• Volume of users by access type
• Frequency / throughput
Incorporate constant feedback from application logs
and other monitoring solutions
© Utopia Solutions10
Mobile Challenges - Network
Mobile User Connected User
3G 4G InATunnelG
Network bandwidth and quality affect both end user
experience and system load
© Utopia Solutions11
Assess Impact of Network Variability
1. Assess baseline performance
(single user)
Observe UX with real devices
behind network virtualization
solutions
2. Assess performance under
load
Put system under virtual user load
Observe UX with real devices behind
network virtualization solutions
NV
Virtual Users
NV
Real
Devices
© Utopia Solutions12
Network Virtualization Tools
Single User (Device and/or
Emulator)
• Apple Network Link Conditioner
• Android Emulator
• Charles Proxy
• Shunra NV
Multiple Virtual Users
• Shunra NV
• Load test tools (built-in)
• Charles Proxy
© Utopia Solutions13
Mobile Challenges – User Location and Volume
A high volume of global users is difficult to reproduce in a lab…
© Utopia Solutions14
Utilize Cloud-based Testing Solutions
• Achieve production level loads
• Test entire infrastructure (vs.
behind the firewall)
• Distribute load geographically
• Assess user impact on real
devices
© Utopia Solutions15
Mobile Challenges – Device Performance
Measuring System / Network Metrics is Not Enough…
Memory
CPU
Battery Drain
Graphics
I / O
© Utopia Solutions16
Measuring Device Performance
Critical device metrics:
• CPU
• Memory
• Battery
• Storage
Mobile development platforms
• Android DDMS
• iOS Instruments
Mobile test automation tools
• TouchTest (SOASTA)
• Trust (Mobile Labs)
• MonkeyTalk (Cloud Monkey)
Mobile lab / cloud solutions
• Device Connect (Mobile Labs)
• Keynote DeviceAnywhere
• Perfecto Mobile
Capture metrics while exercising app
Include appropriate devices /
configurations
Incorporate automation for consistency
Device Performance
Measurement Solutions
© Utopia Solutions17
Mobile Challenges – Agile Development
Analysis
Design
Develop &
Unit Test
Acceptance
Test
Final
Acceptance
Test
Deploy
Source: Agile and Test Estimation
Sharon Robson
How does performance
testing fit?
© Utopia Solutions18
Performance Testing in an Agile Environment
Plan Design Build Test Deploy
Waterfall
Performance Testing
Too late!
© Utopia Solutions19
Performance Testing in an Agile Environment
Sprint 1 Sprint 2 Sprint 3 … Deploy
Agile
Performance Testing
Same Process…
Same Risk!
© Utopia Solutions20
Performance Testing in an Agile Environment
Sprint 1 Sprint 2 Sprint 3 … Deploy
Agile
Performance
Testing
Performance
Testing
Performance
Testing
Performance
Testing
Waterfall Approach
• Rigid
• 4-6 week test cycle
Agile Approach
• Flexible
• 2 week sprints
+ =
© Utopia Solutions21
Early Cycle /
Ongoing
Performance
Analysis
Performance Testing in an Agile Environment
Ultimate Goal…
Late Cycle
Performance
Testing
Shift Left
© Utopia Solutions22
Performance Testing in an Agile Environment
How?
Map business and end user
requirements onto system components
Benchmark in development / QA
environment
Look for trends in measurements vs.
absolutes
Use service virtualization to stub out 3rd
party or yet to be developed services
Execute unit performance tests as part
of continuous integration
Unit / Component
Performance Testing
© Utopia Solutions23
Performance Testing in an Agile Environment
How?
Measure resource / performance
profile of native apps
Use mobile site analysis services / tools
to analyze services and pages
User APM solutions to profile code
Use device profiling solutions to
understand / compare base device
performance
Application / Code
Profiling
© Utopia Solutions24
Waterfall Agile
Service Model Perform turnkey
performance test
Timing End of development cycle
Duration Weeks
Tools Traditional load test tools
Environment Dedicated / production like
Role of
development
Throw system over wall
Wait for results
Waterfall Agile
Service Model Perform turnkey
performance test
Provide mentorship to agile
team
Timing End of development cycle Ongoing
Duration Weeks Hours / days
Tools Traditional load test tools Traditional load test tools
APM tools
Service virtualization
Continuous integration
Environment Dedicated / production like Development / desktop
Role of
development
Throw system over wall
Wait for results
Constant focus on performance
Performance Testing in an Agile Environment
What about my Performance
Testing Center of Excellence?
© Utopia Solutions25
Summary
Key takeaways…
• Mobile users are not the same as
connected users
• Performance is more than backend /
network
• Push performance analysis to the left
in the development cycle
© Utopia Solutions26
Questions…
…. and Answers!
Direct future questions to:
Lee Barnes
Founder and CTO
Utopia Solutions, Inc.
Email: lee.barnes@utopiasolutions.com
Twitter: twitter.com/USI_LeeBarnes
LinkedIn: linkedin.com/in/leebarnes
Blog: www.RaiseYourMQ.com
?

Weitere ähnliche Inhalte

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Best Practices for Performance Testing Mobile Apps

  • 1. © Utopia Solutions Best Practices for Performance Testing Mobile Apps Lee Barnes, CTO Utopia Solutions
  • 2. © Utopia Solutions Apology I don’t believe in “best practices”… I do believe in guidelines and better approaches for a given situation
  • 3. © Utopia Solutions3 Key Questions How is mobile different? How can I adapt? Why is performance of mobile important?
  • 4. © Utopia Solutions4 Why Should I Care? M-Commerce 66% OF SHOPPERS ABANDON TRANSACTIONS 5 OUT OF 10 BECAUSE OF POOR PERFORMANCE 1DELAY SECOND 7%DROP IN CONVERSIONS equals a 2013 Mobile Commerce Insights study conducted by Jumio
  • 5. © Utopia Solutions5 Still Not Convinced? 2012-2013 World Quality Report
  • 6. © Utopia Solutions6 Evolution of Performance Testing 1990 2000 2010 2-Tier Client Server Web Mobile Challenges State of the Practice Testing Large Loads Complex / Integrated Systems Proprietary Protocols Skilled Resources In-Lab Testing Tool Maturation Open Source Tools Specialized Resources Cloud-based Testing
  • 7. © Utopia Solutions Mobile Challenges & Adaptations
  • 8. © Utopia Solutions8 Mobile Challenges – User Access Native App Mobile Site Full / Responsive Site Your users have options…
  • 9. © Utopia Solutions9 Assess the User and Load Profile 1. Determine the user profile • Business processes • Native app, mobile site, full site • Preferred browser • Network conditions • Geographic location 2. Determine the load profile • Volume of users by business process and location • Volume of users by access type • Frequency / throughput Incorporate constant feedback from application logs and other monitoring solutions
  • 10. © Utopia Solutions10 Mobile Challenges - Network Mobile User Connected User 3G 4G InATunnelG Network bandwidth and quality affect both end user experience and system load
  • 11. © Utopia Solutions11 Assess Impact of Network Variability 1. Assess baseline performance (single user) Observe UX with real devices behind network virtualization solutions 2. Assess performance under load Put system under virtual user load Observe UX with real devices behind network virtualization solutions NV Virtual Users NV Real Devices
  • 12. © Utopia Solutions12 Network Virtualization Tools Single User (Device and/or Emulator) • Apple Network Link Conditioner • Android Emulator • Charles Proxy • Shunra NV Multiple Virtual Users • Shunra NV • Load test tools (built-in) • Charles Proxy
  • 13. © Utopia Solutions13 Mobile Challenges – User Location and Volume A high volume of global users is difficult to reproduce in a lab…
  • 14. © Utopia Solutions14 Utilize Cloud-based Testing Solutions • Achieve production level loads • Test entire infrastructure (vs. behind the firewall) • Distribute load geographically • Assess user impact on real devices
  • 15. © Utopia Solutions15 Mobile Challenges – Device Performance Measuring System / Network Metrics is Not Enough… Memory CPU Battery Drain Graphics I / O
  • 16. © Utopia Solutions16 Measuring Device Performance Critical device metrics: • CPU • Memory • Battery • Storage Mobile development platforms • Android DDMS • iOS Instruments Mobile test automation tools • TouchTest (SOASTA) • Trust (Mobile Labs) • MonkeyTalk (Cloud Monkey) Mobile lab / cloud solutions • Device Connect (Mobile Labs) • Keynote DeviceAnywhere • Perfecto Mobile Capture metrics while exercising app Include appropriate devices / configurations Incorporate automation for consistency Device Performance Measurement Solutions
  • 17. © Utopia Solutions17 Mobile Challenges – Agile Development Analysis Design Develop & Unit Test Acceptance Test Final Acceptance Test Deploy Source: Agile and Test Estimation Sharon Robson How does performance testing fit?
  • 18. © Utopia Solutions18 Performance Testing in an Agile Environment Plan Design Build Test Deploy Waterfall Performance Testing Too late!
  • 19. © Utopia Solutions19 Performance Testing in an Agile Environment Sprint 1 Sprint 2 Sprint 3 … Deploy Agile Performance Testing Same Process… Same Risk!
  • 20. © Utopia Solutions20 Performance Testing in an Agile Environment Sprint 1 Sprint 2 Sprint 3 … Deploy Agile Performance Testing Performance Testing Performance Testing Performance Testing Waterfall Approach • Rigid • 4-6 week test cycle Agile Approach • Flexible • 2 week sprints + =
  • 21. © Utopia Solutions21 Early Cycle / Ongoing Performance Analysis Performance Testing in an Agile Environment Ultimate Goal… Late Cycle Performance Testing Shift Left
  • 22. © Utopia Solutions22 Performance Testing in an Agile Environment How? Map business and end user requirements onto system components Benchmark in development / QA environment Look for trends in measurements vs. absolutes Use service virtualization to stub out 3rd party or yet to be developed services Execute unit performance tests as part of continuous integration Unit / Component Performance Testing
  • 23. © Utopia Solutions23 Performance Testing in an Agile Environment How? Measure resource / performance profile of native apps Use mobile site analysis services / tools to analyze services and pages User APM solutions to profile code Use device profiling solutions to understand / compare base device performance Application / Code Profiling
  • 24. © Utopia Solutions24 Waterfall Agile Service Model Perform turnkey performance test Timing End of development cycle Duration Weeks Tools Traditional load test tools Environment Dedicated / production like Role of development Throw system over wall Wait for results Waterfall Agile Service Model Perform turnkey performance test Provide mentorship to agile team Timing End of development cycle Ongoing Duration Weeks Hours / days Tools Traditional load test tools Traditional load test tools APM tools Service virtualization Continuous integration Environment Dedicated / production like Development / desktop Role of development Throw system over wall Wait for results Constant focus on performance Performance Testing in an Agile Environment What about my Performance Testing Center of Excellence?
  • 25. © Utopia Solutions25 Summary Key takeaways… • Mobile users are not the same as connected users • Performance is more than backend / network • Push performance analysis to the left in the development cycle
  • 26. © Utopia Solutions26 Questions… …. and Answers! Direct future questions to: Lee Barnes Founder and CTO Utopia Solutions, Inc. Email: lee.barnes@utopiasolutions.com Twitter: twitter.com/USI_LeeBarnes LinkedIn: linkedin.com/in/leebarnes Blog: www.RaiseYourMQ.com ?