SlideShare a Scribd company logo
1 of 63
Download to read offline
Introduction
How does it work?
Using boomerang
Data
Measuring the web with boomerang
Philip Tellis / philip@bluesmoon.info
YUIConf 2010 – 2010-11-08
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
$ finger philip
Philip Tellis
philip@bluesmoon.info
@bluesmoon
geek - paranoid - speedfreak
yahoo
http://bluesmoon.info/
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Less than 20% of page load time is something we can measure
and fix during development
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
It’s what we can’t control that bites us
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
browsers
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
plugins
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
OSes
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
viruses
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
antiviruses
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
microwaves
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
baby monitors
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
naughty neighbours
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
file shares
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
governments
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
rodents
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Too many variations
Try simulating all that in the lab!
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
We need to measure real end-user performance
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
We need to measure real end-user performance from the real
end-user’s box
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
While this might work, it isn’t necessarily representative
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
What about JavaScript?
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
boomerang is...
A piece of javascript that you add to your web page where it
measures and beacons back to you, the end user’s perceived
performance of your page
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
How?
<script src="boomerang.js" type="text/javascript">
</script>
<script type="text/javascript">
BOOMR.init({
user_ip: "<user’s ip address>",
beacon_url: "http://mysite.com/beacon.php"
});
</script>
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
And soon...
YUI.use(’gallery-boomr’, function(Y) {
Y.BOOMR.init({
user_ip: "<user’s ip address>",
beacon_url: "http://mysite.com/beacon.php"
});
});
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
What does it do?
Measures user’s bandwidth and latency to your server
Measures the current page’s load time
Beacons these results back to your server
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Time
The adversary
Measure twice
boomerang
Let’s fork this talk
Do you want to:
Lean how boomerang works internally?
Learn how to use boomerang?
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
How does boomerang work?
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
Let’s take that one at a time
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
Measuring latency
Download a 32 byte gif 10 times in sequence
Measure the time to download each
Discard the first measurement because it’s overpriced
Calculate the arithmetic mean, standard deviation and
margin of error of the rest
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
Wait, did you say overpriced?
The first image might require a DNS lookup and TCP
handshake
Slow start is not an issue since 32 bytes fits in 1 packet
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
Measuring bandwidth
After the latency test is done, we download progressively
larger images
Stop at the first image that times out
Redownload that image a few more times
Calculate the median, standard deviation and margin of
error of the largest images
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
Measuring latency before bandwidth helps here
Those 10 latency images do a lot to widen the TCP
window size
The bandwidth images make much better use of bandwidth
The image we end with uses the most bandwidth
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
How do we measure page load time?
In the onbeforeunload event, measure the time and
store it in a cookie
In the onload event, check the cookie, and measure the
difference with the current time
We also make sure that the page that set the cookie is the
referrer of the current page
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
What? Two pages?
Yes, this needs two pages and cookies. If those aren’t
supported, we try to use the WebTiming API.
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Latency
Bandwidth
Load time
Accuracy
How accurate is it?
Latency measurements are very accurate (±1%)
Bandwidth is to an order of magnitude. For bad
connections can be ±30%
Page load time sometimes has outliers, you need
post-filtering
The margin of error tells you how good your data is
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Include it on your page
<script src="boomerang.js" type="text/javascript">
</script>
<script type="text/javascript">
BOOMR.init({
user_ip: "<user’s ip address>",
beacon_url: "http://mysite.com/beacon.php"
});
</script>
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
For most sites, that’s about it
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
You probably want to do more
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Handle subdomains
Set the site_domain parameter:
BOOMR.init({
user_ip: "<user’s ip address>",
beacon_url: "http://mysite.com/beacon.php",
site_domain: "mysite.com"
});
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
This lets you measure transitions across *.mysite.com
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Measure more than just load time
<html><head>
<script>var t_pagestart=new Date().getTime();</scrip
...
<script>var th=new Date().getTime();</script>
</head>
<body>
...
<script>var tj=new Date().getTime();</script>
...
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
...
<script src="boomerang.js"></script>
...
var te=new Date().getTime();
BOOMR.plugins.RT.setTimer("t_head", th-t_pagestart).
setTimer("t_body", te-th).
setTimer("t_js", te-tj);
</script></body></html>
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
This adds the t_head, t_body and t_js fields to the beacon
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Loading dynamic content
BOOMR.init({
user_ip: "<user’s ip address>",
beacon_url: "http://mysite.com/beacon.php",
auto_run: false
});
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Loading dynamic content
// Just before download starts
BOOMR.plugins.RT.startTimer("t_done");
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Loading dynamic content
// Just after download finishes
BOOMR.plugins.RT.done();
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Basic
Multi-domain
In-page timers
AJAX
Much more
http://yahoo.github.com/boomerang/doc/howtos/
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
The beacon
A simple GET request to the beacon
All parameters passed in the query string
Extra timers are passed in as a comma separated list in
t_other
before_beacon JavaScript event fired just before the
beacon is sent
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
What should we do with the data?
Sanity checking to:
Remove fake data
Remove abusive data
Maybe just rate limiting
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
What can we do with the data?
Statistical analysis to:
Remove outliers
Aggregate based on bandwidth blocks
Measure trends over time and correlate them with code
changes
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
Bandwidth blocks
Ref: Analysing Bandwidth & Latency – YUI Blog
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
Bandwidth blocks
Data points from some countries may require narrower bands
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
Geographic data
Looking at latency from different geographic locations can tell
you where your next mirror should be
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
ISPs
Grouping data by ISP can tell you who’s behaving badly
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
More data
Write plugins to get more performance data
We already have a DNS plugin
I’m thinking of an IPv6 v/s IPv4 plugin
What about a full WebTiming plugin?
Can we measure connection setup time?
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
shoulda
coulda
woulda
You decide
Once you have the data, you can do anything with it
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Thank you
http://github.com/yahoo/boomerang
http://yahoo.github.com/boomerang/doc/
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Photo credits
flickr.com/photos/21233184@N02/4389412851
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
Contact me
Philip Tellis
philip@bluesmoon.info
@bluesmoon
geek - paranoid - speedfreak
yahoo
http://bluesmoon.info/
slideshare.net/bluesmoon
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
Introduction
How does it work?
Using boomerang
Data
References
github.com/yahoo/boomerang
More bandwidth doesn’t matter (much) – Mike Belshe
Analysing Bandwidth & Latency – YUI Blog
It’s the latency, stupid – Stuart Cheshire
The statistics of web performance
YUIConf 2010 – 2010-11-08 Measuring the web with boomerang

More Related Content

Similar to Measuring the web with Boomerang (YUIConf 2010)

Measuring the web with boomerang
Measuring the web with boomerangMeasuring the web with boomerang
Measuring the web with boomerangPhilip Tellis
 
Boomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupBoomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupPhilip Tellis
 
Boomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupBoomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupPhilip Tellis
 
Mobile Performance Testing - Testing the Server
Mobile Performance Testing  - Testing the ServerMobile Performance Testing  - Testing the Server
Mobile Performance Testing - Testing the ServerXBOSoft
 
Webinar #5: Mobile indsigter og trends ft. Google
Webinar #5: Mobile indsigter og trends ft. Google Webinar #5: Mobile indsigter og trends ft. Google
Webinar #5: Mobile indsigter og trends ft. Google Become A/S
 
Why Performance Matters
Why Performance MattersWhy Performance Matters
Why Performance MattersBen Daniel
 
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...Strangeloop
 
Improving frontend performance
Improving frontend performanceImproving frontend performance
Improving frontend performanceSagar Desarda
 
Week 1
Week 1Week 1
Week 1CMoz
 
Its timetostopstalling androidcork
Its timetostopstalling androidcorkIts timetostopstalling androidcork
Its timetostopstalling androidcorkDoug Sillars
 
Attobahn_Reduced_Angel_070915
Attobahn_Reduced_Angel_070915Attobahn_Reduced_Angel_070915
Attobahn_Reduced_Angel_070915Darryl Gray
 
The Truth About Your Web App's Performance
The Truth About Your Web App's PerformanceThe Truth About Your Web App's Performance
The Truth About Your Web App's PerformanceJohn Riviello
 
538210-rc220-rum
538210-rc220-rum538210-rc220-rum
538210-rc220-rumDan Boutin
 
Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Philip Tellis
 
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...Strangeloop
 
Beyond CDNs: How to Harness the Next Phase of Innovation in Web Performance
Beyond CDNs: How to Harness the Next Phase of Innovation in Web PerformanceBeyond CDNs: How to Harness the Next Phase of Innovation in Web Performance
Beyond CDNs: How to Harness the Next Phase of Innovation in Web PerformanceYottaa
 
Globe Nesic Speed Test Presentation
Globe Nesic Speed Test PresentationGlobe Nesic Speed Test Presentation
Globe Nesic Speed Test PresentationRico Mossesgeld
 

Similar to Measuring the web with Boomerang (YUIConf 2010) (20)

Measuring the web with boomerang
Measuring the web with boomerangMeasuring the web with boomerang
Measuring the web with boomerang
 
Boomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetupBoomerang @ NY Web Perf meetup
Boomerang @ NY Web Perf meetup
 
Boomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetupBoomerang at the Boston Web Performance meetup
Boomerang at the Boston Web Performance meetup
 
Mobile Performance Testing - Testing the Server
Mobile Performance Testing  - Testing the ServerMobile Performance Testing  - Testing the Server
Mobile Performance Testing - Testing the Server
 
Webinar #5: Mobile indsigter og trends ft. Google
Webinar #5: Mobile indsigter og trends ft. Google Webinar #5: Mobile indsigter og trends ft. Google
Webinar #5: Mobile indsigter og trends ft. Google
 
Why Performance Matters
Why Performance MattersWhy Performance Matters
Why Performance Matters
 
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...
Cloud Connect Santa Clara 2013: Web Acceleration and Front-End Optimization (...
 
Improving frontend performance
Improving frontend performanceImproving frontend performance
Improving frontend performance
 
Browser Based Performance Testing and Tuning
Browser Based Performance Testing and TuningBrowser Based Performance Testing and Tuning
Browser Based Performance Testing and Tuning
 
Week 1
Week 1Week 1
Week 1
 
Its timetostopstalling androidcork
Its timetostopstalling androidcorkIts timetostopstalling androidcork
Its timetostopstalling androidcork
 
Attobahn_Reduced_Angel_070915
Attobahn_Reduced_Angel_070915Attobahn_Reduced_Angel_070915
Attobahn_Reduced_Angel_070915
 
The Truth About Your Web App's Performance
The Truth About Your Web App's PerformanceThe Truth About Your Web App's Performance
The Truth About Your Web App's Performance
 
538210-rc220-rum
538210-rc220-rum538210-rc220-rum
538210-rc220-rum
 
538210 rc220-rum
538210 rc220-rum538210 rc220-rum
538210 rc220-rum
 
DZone-RUM
DZone-RUMDZone-RUM
DZone-RUM
 
Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010Boomerang at FOSS.IN/2010
Boomerang at FOSS.IN/2010
 
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...
Cloud Performance: Guide to Tackling Cloud Latency [Cloud Connect - Chicago 2...
 
Beyond CDNs: How to Harness the Next Phase of Innovation in Web Performance
Beyond CDNs: How to Harness the Next Phase of Innovation in Web PerformanceBeyond CDNs: How to Harness the Next Phase of Innovation in Web Performance
Beyond CDNs: How to Harness the Next Phase of Innovation in Web Performance
 
Globe Nesic Speed Test Presentation
Globe Nesic Speed Test PresentationGlobe Nesic Speed Test Presentation
Globe Nesic Speed Test Presentation
 

More from Philip Tellis

Improving D3 Performance with CANVAS and other Hacks
Improving D3 Performance with CANVAS and other HacksImproving D3 Performance with CANVAS and other Hacks
Improving D3 Performance with CANVAS and other HacksPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
Frontend Performance: De débutant à Expert à Fou Furieux
Frontend Performance: De débutant à Expert à Fou FurieuxFrontend Performance: De débutant à Expert à Fou Furieux
Frontend Performance: De débutant à Expert à Fou FurieuxPhilip Tellis
 
Frontend Performance: Expert to Crazy Person
Frontend Performance: Expert to Crazy PersonFrontend Performance: Expert to Crazy Person
Frontend Performance: Expert to Crazy PersonPhilip Tellis
 
Beyond Page Level Metrics
Beyond Page Level MetricsBeyond Page Level Metrics
Beyond Page Level MetricsPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...Philip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonPhilip Tellis
 
RUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IRUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IPhilip Tellis
 
Improving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesImproving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesPhilip Tellis
 
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Philip Tellis
 
The Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisThe Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisPhilip Tellis
 
Abusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformanceAbusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformancePhilip Tellis
 
Analysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptAnalysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptPhilip Tellis
 
A Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficA Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficPhilip Tellis
 

More from Philip Tellis (20)

Improving D3 Performance with CANVAS and other Hacks
Improving D3 Performance with CANVAS and other HacksImproving D3 Performance with CANVAS and other Hacks
Improving D3 Performance with CANVAS and other Hacks
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
Frontend Performance: De débutant à Expert à Fou Furieux
Frontend Performance: De débutant à Expert à Fou FurieuxFrontend Performance: De débutant à Expert à Fou Furieux
Frontend Performance: De débutant à Expert à Fou Furieux
 
Frontend Performance: Expert to Crazy Person
Frontend Performance: Expert to Crazy PersonFrontend Performance: Expert to Crazy Person
Frontend Performance: Expert to Crazy Person
 
Beyond Page Level Metrics
Beyond Page Level MetricsBeyond Page Level Metrics
Beyond Page Level Metrics
 
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
Frontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
 
mmm... beacons
mmm... beaconsmmm... beacons
mmm... beacons
 
RUM Distillation 101 -- Part I
RUM Distillation 101 -- Part IRUM Distillation 101 -- Part I
RUM Distillation 101 -- Part I
 
Improving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFramesImproving 3rd Party Script Performance With IFrames
Improving 3rd Party Script Performance With IFrames
 
Extending Boomerang
Extending BoomerangExtending Boomerang
Extending Boomerang
 
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
Abusing JavaScript to measure Web Performance, or, "how does boomerang work?"
 
The Statistics of Web Performance Analysis
The Statistics of Web Performance AnalysisThe Statistics of Web Performance Analysis
The Statistics of Web Performance Analysis
 
Abusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web PerformanceAbusing JavaScript to Measure Web Performance
Abusing JavaScript to Measure Web Performance
 
Rum for Breakfast
Rum for BreakfastRum for Breakfast
Rum for Breakfast
 
Analysing network characteristics with JavaScript
Analysing network characteristics with JavaScriptAnalysing network characteristics with JavaScript
Analysing network characteristics with JavaScript
 
A Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web TrafficA Node.JS bag of goodies for analyzing Web Traffic
A Node.JS bag of goodies for analyzing Web Traffic
 
Input sanitization
Input sanitizationInput sanitization
Input sanitization
 

Recently uploaded

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
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
 
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
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
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
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
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
 
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
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
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
 
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
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
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.
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
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...
 
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...
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Measuring the web with Boomerang (YUIConf 2010)

  • 1. Introduction How does it work? Using boomerang Data Measuring the web with boomerang Philip Tellis / philip@bluesmoon.info YUIConf 2010 – 2010-11-08 YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 2. Introduction How does it work? Using boomerang Data $ finger philip Philip Tellis philip@bluesmoon.info @bluesmoon geek - paranoid - speedfreak yahoo http://bluesmoon.info/ YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 3. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 4. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 5. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 6. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Less than 20% of page load time is something we can measure and fix during development YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 7. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang It’s what we can’t control that bites us YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 8. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations browsers YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 9. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations plugins YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 10. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations OSes YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 11. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations viruses YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 12. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations antiviruses YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 13. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations microwaves YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 14. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations baby monitors YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 15. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations naughty neighbours YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 16. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations file shares YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 17. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations governments YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 18. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations rodents YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 19. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Too many variations Try simulating all that in the lab! YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 20. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang We need to measure real end-user performance YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 21. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang We need to measure real end-user performance from the real end-user’s box YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 22. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 23. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang While this might work, it isn’t necessarily representative YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 24. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang What about JavaScript? YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 25. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang boomerang is... A piece of javascript that you add to your web page where it measures and beacons back to you, the end user’s perceived performance of your page YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 26. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang How? <script src="boomerang.js" type="text/javascript"> </script> <script type="text/javascript"> BOOMR.init({ user_ip: "<user’s ip address>", beacon_url: "http://mysite.com/beacon.php" }); </script> YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 27. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang And soon... YUI.use(’gallery-boomr’, function(Y) { Y.BOOMR.init({ user_ip: "<user’s ip address>", beacon_url: "http://mysite.com/beacon.php" }); }); YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 28. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang What does it do? Measures user’s bandwidth and latency to your server Measures the current page’s load time Beacons these results back to your server YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 29. Introduction How does it work? Using boomerang Data Time The adversary Measure twice boomerang Let’s fork this talk Do you want to: Lean how boomerang works internally? Learn how to use boomerang? YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 30. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy How does boomerang work? YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 31. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy Let’s take that one at a time YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 32. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy Measuring latency Download a 32 byte gif 10 times in sequence Measure the time to download each Discard the first measurement because it’s overpriced Calculate the arithmetic mean, standard deviation and margin of error of the rest YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 33. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy Wait, did you say overpriced? The first image might require a DNS lookup and TCP handshake Slow start is not an issue since 32 bytes fits in 1 packet YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 34. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy Measuring bandwidth After the latency test is done, we download progressively larger images Stop at the first image that times out Redownload that image a few more times Calculate the median, standard deviation and margin of error of the largest images YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 35. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy Measuring latency before bandwidth helps here Those 10 latency images do a lot to widen the TCP window size The bandwidth images make much better use of bandwidth The image we end with uses the most bandwidth YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 36. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy How do we measure page load time? In the onbeforeunload event, measure the time and store it in a cookie In the onload event, check the cookie, and measure the difference with the current time We also make sure that the page that set the cookie is the referrer of the current page YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 37. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy What? Two pages? Yes, this needs two pages and cookies. If those aren’t supported, we try to use the WebTiming API. YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 38. Introduction How does it work? Using boomerang Data Latency Bandwidth Load time Accuracy How accurate is it? Latency measurements are very accurate (±1%) Bandwidth is to an order of magnitude. For bad connections can be ±30% Page load time sometimes has outliers, you need post-filtering The margin of error tells you how good your data is YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 39. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Include it on your page <script src="boomerang.js" type="text/javascript"> </script> <script type="text/javascript"> BOOMR.init({ user_ip: "<user’s ip address>", beacon_url: "http://mysite.com/beacon.php" }); </script> YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 40. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX For most sites, that’s about it YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 41. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX You probably want to do more YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 42. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Handle subdomains Set the site_domain parameter: BOOMR.init({ user_ip: "<user’s ip address>", beacon_url: "http://mysite.com/beacon.php", site_domain: "mysite.com" }); YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 43. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX This lets you measure transitions across *.mysite.com YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 44. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Measure more than just load time <html><head> <script>var t_pagestart=new Date().getTime();</scrip ... <script>var th=new Date().getTime();</script> </head> <body> ... <script>var tj=new Date().getTime();</script> ... YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 45. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX ... <script src="boomerang.js"></script> ... var te=new Date().getTime(); BOOMR.plugins.RT.setTimer("t_head", th-t_pagestart). setTimer("t_body", te-th). setTimer("t_js", te-tj); </script></body></html> YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 46. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX This adds the t_head, t_body and t_js fields to the beacon YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 47. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Loading dynamic content BOOMR.init({ user_ip: "<user’s ip address>", beacon_url: "http://mysite.com/beacon.php", auto_run: false }); YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 48. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Loading dynamic content // Just before download starts BOOMR.plugins.RT.startTimer("t_done"); YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 49. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Loading dynamic content // Just after download finishes BOOMR.plugins.RT.done(); YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 50. Introduction How does it work? Using boomerang Data Basic Multi-domain In-page timers AJAX Much more http://yahoo.github.com/boomerang/doc/howtos/ YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 51. Introduction How does it work? Using boomerang Data shoulda coulda woulda The beacon A simple GET request to the beacon All parameters passed in the query string Extra timers are passed in as a comma separated list in t_other before_beacon JavaScript event fired just before the beacon is sent YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 52. Introduction How does it work? Using boomerang Data shoulda coulda woulda What should we do with the data? Sanity checking to: Remove fake data Remove abusive data Maybe just rate limiting YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 53. Introduction How does it work? Using boomerang Data shoulda coulda woulda What can we do with the data? Statistical analysis to: Remove outliers Aggregate based on bandwidth blocks Measure trends over time and correlate them with code changes YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 54. Introduction How does it work? Using boomerang Data shoulda coulda woulda Bandwidth blocks Ref: Analysing Bandwidth & Latency – YUI Blog YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 55. Introduction How does it work? Using boomerang Data shoulda coulda woulda Bandwidth blocks Data points from some countries may require narrower bands YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 56. Introduction How does it work? Using boomerang Data shoulda coulda woulda Geographic data Looking at latency from different geographic locations can tell you where your next mirror should be YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 57. Introduction How does it work? Using boomerang Data shoulda coulda woulda ISPs Grouping data by ISP can tell you who’s behaving badly YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 58. Introduction How does it work? Using boomerang Data shoulda coulda woulda More data Write plugins to get more performance data We already have a DNS plugin I’m thinking of an IPv6 v/s IPv4 plugin What about a full WebTiming plugin? Can we measure connection setup time? YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 59. Introduction How does it work? Using boomerang Data shoulda coulda woulda You decide Once you have the data, you can do anything with it YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 60. Introduction How does it work? Using boomerang Data Thank you http://github.com/yahoo/boomerang http://yahoo.github.com/boomerang/doc/ YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 61. Introduction How does it work? Using boomerang Data Photo credits flickr.com/photos/21233184@N02/4389412851 YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 62. Introduction How does it work? Using boomerang Data Contact me Philip Tellis philip@bluesmoon.info @bluesmoon geek - paranoid - speedfreak yahoo http://bluesmoon.info/ slideshare.net/bluesmoon YUIConf 2010 – 2010-11-08 Measuring the web with boomerang
  • 63. Introduction How does it work? Using boomerang Data References github.com/yahoo/boomerang More bandwidth doesn’t matter (much) – Mike Belshe Analysing Bandwidth & Latency – YUI Blog It’s the latency, stupid – Stuart Cheshire The statistics of web performance YUIConf 2010 – 2010-11-08 Measuring the web with boomerang