SlideShare a Scribd company logo
Web Performance Testing NoVa Test Automation Interest Group Patrick Meenan Twitter: @PatMeenan [email_address] blog.patrickmeenan.com
Front-End vs. Back-End
 
Back-End This is the HTML that largely contains the content of the page and defines the structure.
Front-End CSS : Layout and style Images Graphical Elements
Waterfall Diagram Base Page CSS Images and Graphical  Elements Javascript Start Render Document Complete (onLoad)
Front-End vs Back-End Base Page Back-End Processing
Front-End: 3.2s* Back-End: 0.010s* *WebPagetest performance as measured by New Relic
Measuring Performance
velocityconf.com/velocity2011/public/schedule/detail/18039
Active Testing Consistent results Good for detecting and diagnosing issues that are 100% repeatable and on pages you are monitoring Lots of detail Availability monitoring Not representative of actual end-user performance Usually tested from data centers Sometimes co-located with CDN provider equipment
US Broadband Bandwidth www.fcc.gov/document/measuring-broadband-america-report-consumer-broadband-performance-us
US Broadband Latency www.fcc.gov/document/measuring-broadband-america-report-consumer-broadband-performance-us
Bandwidth/Latency Impact www.belshe.com/2010/05/24/more-bandwidth-doesnt-matter-much/ (Fixed 60ms RTT) (Fixed 5Mbps Bandwidth)
Backbone Testing Actual Users
DSL – Back-End: 17% Backbone – Back-End: 52%
When is “Done”? Easy answer is onLoad But…
When is “Done”? Twitter onLoad (1.9s) Twitter end of activity (6.8s)
Synthetic Browsers Know HOW your active testing is done Some only test the base page Synthetic browsers usually not reflective of real browser Real browser testing Connectivity (backbone, last-mile) www.engadget.com Synthetic Browser: 447 requests IE 8: 241 requests
Real User Monitoring (RUM) Full coverage on all pages visited by users Real performance information for end-user experience No availability monitoring Limited detail …  but getting better
Navigation Timing – IE9, Chrome, Firefox 7 window.performance.timing dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html Front-End Back-End
Resource Timing (draft) w3c-test.org/webperf/specs/ResourceTiming/ Timing for every network-loaded resource
_gaq.push(['_trackPageLoadTime']);
 
 
Back-End Only
Frontend Single Point Of Failure
Asynchronous Javascript It’s not just good for web performance… <script type=&quot;text/javascript&quot; src=&quot;http://platform.twitter.com/widgets.js&quot;></script> vs. <script type=&quot;text/javascript&quot;> (function() { var tw = document.createElement('script');  tw.type = 'text/javascript';  tw.async = true; tw.src = 'http://platform.twitter.com/widgets.js'; var s = document.getElementsByTagName('script')[0];  s.parentNode.insertBefore(tw, s); })(); </script>
It prevents Frontend SPOF User stares at a blank window for 21 seconds (usually < 2 seconds)
What it feels like
Testing for Frontend SPOF blackhole.webpagetest.org (aka 72.66.115.13) Hosts file: 72.66.115.13  ajax.googleapis.com 72.66.115.13  apis.google.com 72.66.115.13  www.google-analytics.com 72.66.115.13  connect.facebook.net 72.66.115.13  platform.twitter.com WebPagetest.org: setDnsName platform.twitter.com blackhole.webpagetest.org navigate your.url.com
WebPagetest
The basics – testing “pages” www.webpagetest.org Submit an URL….
From multiple locations globally…
The basics – get “results” Performance and optimization information
What it looks like
What it looks like
What if…
Comparing arbitrary tests
The comparison
More advanced capabilities Automating Rich Applications Authenticating into form-protected applications Interacting with Web Apps (Mail, Calendar, etc) Testing a navigation flow from one page to another Execute arbitrary Javascript REALLY Advanced Options Re-writing DNS lookups (directing traffic to a test/staging box) Custom User-Agent strings & HTTP Headers Pre-populating cookies Custom test end conditions Capture Dynatrace Ajax Edition sessions Tcpdump capture
Private Instances http://sites.google.com/a/webpagetest.org/docs/private-instances Bulk Testing EC2 Agent Public AMI’s US (East/West) Europe Asia (Singapore/Tokyo) Public Projects HTTP Archive Blaze Mobitest
REST API Submit tests (API key required for public instance) Check status Fetch Result XML HAR http://sites.google.com/a/webpagetest.org/docs/advanced-features/webpagetest-restful-apis
WPT Monitor Tony Perkins (Sabre) http://www.webpagetest.org/forums/forumdisplay.php?fid=21
HTTP Archive http://httparchive.org/

More Related Content

PDF
Effectively Monitoring Client-Side Performance
PPTX
Web Performance Optimization
PPT
Velocity EU 2012 - Third party scripts and you
PPTX
Browser Based Performance Testing and Tuning
PPTX
Ajax Load Testing Concerns By Eric Beland
PDF
Client Side Performance In Web Applications
PPTX
Eric Beland Ajax Load Testing Considerations
PPTX
Measuring web performance
Effectively Monitoring Client-Side Performance
Web Performance Optimization
Velocity EU 2012 - Third party scripts and you
Browser Based Performance Testing and Tuning
Ajax Load Testing Concerns By Eric Beland
Client Side Performance In Web Applications
Eric Beland Ajax Load Testing Considerations
Measuring web performance

What's hot (19)

PPTX
Measuring the visual experience of website performance
PDF
Performance testing automation with Dynatrace @LDNWebPerf - AndreasGrabner
PDF
A World Beyond Ajax Accessing Googles Ap Is From Flash And Non Java Script En...
PDF
Usability in the GeoWeb
PDF
Tracking Performance - Velocity NYC 2013
PPT
ASP.NET AJAX Basics
PDF
Client-side Web Performance Optimization [paper]
PPTX
Chanhao Jiang And David Wei Presentation Quickling Pagecache
PDF
Profilling client performance
PPTX
Web automation in BDD
PPTX
BDD / cucumber /Capybara
PDF
Behavior Driven Development and Automation Testing Using Cucumber
PPT
Selecting and deploying automated optimization solutions
PPTX
Monitoring web application response times, a new approach
PPTX
Increase automation to rest
PDF
Making the web faster
PPTX
Slideshare - Magento Imagine - Do You Queue
PPT
ASP.NET AJAX with Visual Studio 2008
PPT
Testing Any Site With Cucumber and Selenium
Measuring the visual experience of website performance
Performance testing automation with Dynatrace @LDNWebPerf - AndreasGrabner
A World Beyond Ajax Accessing Googles Ap Is From Flash And Non Java Script En...
Usability in the GeoWeb
Tracking Performance - Velocity NYC 2013
ASP.NET AJAX Basics
Client-side Web Performance Optimization [paper]
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Profilling client performance
Web automation in BDD
BDD / cucumber /Capybara
Behavior Driven Development and Automation Testing Using Cucumber
Selecting and deploying automated optimization solutions
Monitoring web application response times, a new approach
Increase automation to rest
Making the web faster
Slideshare - Magento Imagine - Do You Queue
ASP.NET AJAX with Visual Studio 2008
Testing Any Site With Cucumber and Selenium
Ad

Viewers also liked (20)

PPT
Web test
PPSX
Performance testing for web applications – techniques, metrics and profiling
PDF
Introduction to Performance testing
PPTX
Introduction to performance testing
PDF
How to start performance testing project
PPT
Performance Testing
PPTX
An Introduction to Performance Testing
PPTX
Introduction to performance testing
PPT
Performance and load testing
PPTX
Oslo Schibsted Performance Gathering
PPTX
A Short History of Performance Engineering
PPT
Loadrunner presentation
PDF
Understanding Microservice Performance
PPTX
How to Get Automatic Analysis for Load Test Results
PPTX
What is Loadrunner ?
PPT
Analyzing Performance Test Data
PPTX
Performance Test Automation Framework Presentation
PPT
Performance Testing With Loadrunner
PPTX
An Introduction to Performance Testing
PPT
Hp Loadrunner
Web test
Performance testing for web applications – techniques, metrics and profiling
Introduction to Performance testing
Introduction to performance testing
How to start performance testing project
Performance Testing
An Introduction to Performance Testing
Introduction to performance testing
Performance and load testing
Oslo Schibsted Performance Gathering
A Short History of Performance Engineering
Loadrunner presentation
Understanding Microservice Performance
How to Get Automatic Analysis for Load Test Results
What is Loadrunner ?
Analyzing Performance Test Data
Performance Test Automation Framework Presentation
Performance Testing With Loadrunner
An Introduction to Performance Testing
Hp Loadrunner
Ad

Similar to Web performance testing (20)

PDF
Client-Side Performance Testing
PDF
Антон Серпутько “Testing and optimization of client-side performance”
PDF
Client-Side Performance Testing
PDF
Client-side Performance Testing
PPT
I one aolpage-test-2010
PPTX
Client Side Performance for Back End Developers - Cambridge .NET User Group -...
PDF
Building performance into the new yahoo homepage presentation
PDF
Performance on the Yahoo! Homepage
PPTX
Metrics, Metrics Everywhere (but where the heck do you start?)
PPTX
Metrics, Metrics Everywhere (but where the heck do you start?)
PPTX
Metrics, metrics everywhere (but where the heck do you start?)
PPTX
Client Side Performance for Back End Developers - Camb Expert Talks, Nov 2016
PPT
Hands on performance testing and analysis with web pagetest
PDF
Performance Testing w/ WebPage Test Private Instance (DrupalCamp Ohio)
PPTX
Measuring performance - Velocity 2016 Training
PDF
Web Performance & Operation - Pagespeed
PPTX
JavaScript performance patterns
PPTX
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
PPT
AOL Page Test
PPTX
Metrics, metrics everywhere (but where the heck do you start?)
Client-Side Performance Testing
Антон Серпутько “Testing and optimization of client-side performance”
Client-Side Performance Testing
Client-side Performance Testing
I one aolpage-test-2010
Client Side Performance for Back End Developers - Cambridge .NET User Group -...
Building performance into the new yahoo homepage presentation
Performance on the Yahoo! Homepage
Metrics, Metrics Everywhere (but where the heck do you start?)
Metrics, Metrics Everywhere (but where the heck do you start?)
Metrics, metrics everywhere (but where the heck do you start?)
Client Side Performance for Back End Developers - Camb Expert Talks, Nov 2016
Hands on performance testing and analysis with web pagetest
Performance Testing w/ WebPage Test Private Instance (DrupalCamp Ohio)
Measuring performance - Velocity 2016 Training
Web Performance & Operation - Pagespeed
JavaScript performance patterns
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
AOL Page Test
Metrics, metrics everywhere (but where the heck do you start?)

More from Patrick Meenan (19)

PPTX
Resource Prioritization
PPTX
HTTP/2 Prioritization
PPTX
Getting the most out of WebPageTest
PDF
Http2 in practice
PPTX
Resource loading, prioritization, HTTP/2 - oh my!
PPTX
How fast is it?
PPT
Scaling Front-End Performance - Velocity 2016
PPTX
Machine Learning RUM - Velocity 2016
PPTX
TLS - 2016 Velocity Training
PPTX
Service workers - Velocity 2016 Training
PPTX
Front-End Single Point of Failure - Velocity 2016 Training
PPT
Service Workers for Performance
PDF
Velocity 2014 nyc WebPagetest private instances
PDF
WebPagetest Power Users - Velocity 2014
PDF
Mobile web performance - MoDev East
PPTX
Image optimization
PPTX
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
PDF
Velocity 2012 - Taming the Mobile Beast
PDF
Frontend SPOF
Resource Prioritization
HTTP/2 Prioritization
Getting the most out of WebPageTest
Http2 in practice
Resource loading, prioritization, HTTP/2 - oh my!
How fast is it?
Scaling Front-End Performance - Velocity 2016
Machine Learning RUM - Velocity 2016
TLS - 2016 Velocity Training
Service workers - Velocity 2016 Training
Front-End Single Point of Failure - Velocity 2016 Training
Service Workers for Performance
Velocity 2014 nyc WebPagetest private instances
WebPagetest Power Users - Velocity 2014
Mobile web performance - MoDev East
Image optimization
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Velocity 2012 - Taming the Mobile Beast
Frontend SPOF

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation theory and applications.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
KodekX | Application Modernization Development
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
KodekX | Application Modernization Development
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
The Rise and Fall of 3GPP – Time for a Sabbatical?

Web performance testing