SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
© 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
?

Contenu connexe

Dernier

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 

Dernier (20)

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 

En vedette

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 HubspotMarius Sescu
 
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 ChatGPTExpeed Software
 
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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

En vedette (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 ?