+ All Categories
Home > Documents > Web performance meetup bos 11 18-2010

Web performance meetup bos 11 18-2010

Date post: 15-Jan-2015
Category:
Upload: jared-rosoff
View: 1,144 times
Download: 2 times
Share this document with a friend
Description:
 
Popular Tags:
50
Yottaa Inc. 2 Canal Park 5 th Floor Cambridge MA 02141 http://www.yottaa.com Hide yo slow Boston Web Performance Meetup 11-18-2010 Jared Rosoff (@forjared) VP Products [email protected]
Transcript
Page 1: Web performance meetup bos 11 18-2010

Yottaa Inc. 2 Canal Park 5th FloorCambridge MA 02141http://www.yottaa.com

Hide yo slowBoston Web Performance Meetup 11-18-2010

Jared Rosoff (@forjared)VP Products

[email protected]

Page 2: Web performance meetup bos 11 18-2010

Is your site slow?

2

Is your website slow?

Page 3: Web performance meetup bos 11 18-2010

It impacts your business

3

Time on Site

Pages / Visit

Bounce Rate

Revenue

SEO

Conversion Rate

Page 4: Web performance meetup bos 11 18-2010

It makes your users unhappy

4

Makes users unhappy

http://hmu.com/blog/wp-content/uploads/2009/04/computer_guy_grumpy.jpg

Page 5: Web performance meetup bos 11 18-2010

It’s a bad idea

5

BAD IDEAREALLY

Page 6: Web performance meetup bos 11 18-2010

So what should we measure?

6

Page 7: Web performance meetup bos 11 18-2010

And how should we

measure it?

7

Page 8: Web performance meetup bos 11 18-2010

Things to measure

• Reachability• Page Load• Optimization• Business Intelligence

8

Page 9: Web performance meetup bos 11 18-2010

9

Reachability

• Connection measurement• DNS measurement• Topology analysis

Page 10: Web performance meetup bos 11 18-2010

Connection Measurement

10

1Connect

2 Request

3ServerGeneration

4First Byte

5Last Byte

Page 11: Web performance meetup bos 11 18-2010

Connection Measurement

• Tells you – How fast can you process a single

request

• Actions to take– Upgrade your hardware– Optimize your software – Change ISP / Hosting Provider

11

Page 12: Web performance meetup bos 11 18-2010

DNS Measurement

12

ISP

Verisign

GoDaddy

Your DNS

1

2

3

4

5

1 Browser requests www.domain.com

2 ISP Resolver looks up .com

3 ISP Resolver looks up domain.com

4 ISP Resolver looks up www.domain.com

5 ISP Resolver responds to browser

Page 13: Web performance meetup bos 11 18-2010

DNS Measurement

• Tells you– How long does it take for a client to

resolve my web site

• Actions to take – Use a larger TTL– Change DNS Hosting provider– Reduce DNS hops (CNAME’s, Delegation)

13

Page 14: Web performance meetup bos 11 18-2010

Topology Analysis

14

DataCenter

BackboneISP

ISP

ISP

Page 15: Web performance meetup bos 11 18-2010

Topology Analysis

• Tells you– What is network distance to my visitors

• Actions to take – Use a CDN – Change your data center / ISP– Deploy multiple data centers

15

Page 16: Web performance meetup bos 11 18-2010

Page Load Performance

• Time to Title• Time to First Paint• Time to Display• Time to Interaction• Cache efficiency• Concurrency• 3rd Party Impact

16

Page 17: Web performance meetup bos 11 18-2010

17

1

1 Fetch initial asset

2

2Fetch secondary assets

3

3 Fetch from CDN

4

4 Beacon

5

5 Widgets / APIs

Page 18: Web performance meetup bos 11 18-2010

18

Web TimingModel

Page 19: Web performance meetup bos 11 18-2010

19

WTF?

!!

Page 20: Web performance meetup bos 11 18-2010

Page Load Waterfall

• Tells you– The timing and sequence of resource

loading from the browser for a page

• Actions to take – Numerous (YSlow, Page Speed)

20

Page 21: Web performance meetup bos 11 18-2010

Cache Efficiency

21

Page 22: Web performance meetup bos 11 18-2010

Cache Efficiency

• Tells you– How well your pages leverage browser

cache

• Actions to take – Set cache headers– Use shared versions of assets (e.g.

jquery) – Separate dynamic / static content

22

Page 23: Web performance meetup bos 11 18-2010

Concurrency

Initial PageAsset

AssetAsset

1s 2s 3s 4s

Initial Page

1s 2s 3s 4s

Worst CaseC = 1.4/3 = 0.46

Best CaseC = 1.4/1.4 = 1

Asset

AssetAsset

3s 1.4s

Initial PageAsset

AssetAsset

1s 2s 3s 4s

ACTUALC = 1.4/2 = 0.7

2s

Page 24: Web performance meetup bos 11 18-2010

Concurrency

• Tells you– How well you take advantage of browser

concurrency

• Actions to take – Domain sharding– Asynchronous loading– Deferred execution

24

Page 25: Web performance meetup bos 11 18-2010

3rd Party Tags

25

Full PageTotal Time: 12.3s

Ad 1 ExcludedTotal Time: 10.1sAd 1 Impact: 2.2s

Ad 2 ExcludedTotal Time: 11.2sAd 2 Impact: 1.1s

Original Page without Ad 1

Ad 1 Impact

Page without ad 2

Ad 2 Impact

Page 26: Web performance meetup bos 11 18-2010

3rd Party Tags

• Tells you– How are 3rd party assets impacting my

page?

• Actions to take – Remove assets– Blame someone else

26

Page 27: Web performance meetup bos 11 18-2010

Optimization

• YSlow• Page Speed

27

Page 28: Web performance meetup bos 11 18-2010

Yslow Page Speed

Minimize HTTP Requests Minify request size

Use a CDN

Add an expires or cache control headerConfigure Etags

Leverage browser cachingLeverage proxy caching

Gzip components Enable compression

Puts CSS at the topPut JS at the bottom

Put CSS in the headOptimize order or styles & scripts

Remove unused CSS

Avoid CSS expressions Avoid CSS expressions

Use efficient CSS selectors

Make JS & CSS external

Combine external CSS

Combine external Javascript

Reduce DNS lookups Minimize DNS lookups

Minify JS & CSS Minify CSSMinify JS

Minify HTML

Avoid redirects Minimize redirects

Remove duplicate scripts

Use GET for AJAX requests

Reduce number of DOM elements28

Page 29: Web performance meetup bos 11 18-2010

Yslow Page Speed

No 404s Avoid bad requests

Reduce Cookie Size

Use Cookie Free Domains Serve static content from a cookieless domain

Avoid Filters

Do Not Scale images in HTML Serve scaled images

Optimize images

Specify image dimensions

Make favicon small and cacehable

Defer loading of Javascript

Parallelize downloads across hostnames

Serve resources from a consistent URL

Specify a character set early

29

Page 30: Web performance meetup bos 11 18-2010

Optimization scores

• Tells you– How well you have optimized your

content

• Actions to take – Follow instructions– Profit

30

Page 31: Web performance meetup bos 11 18-2010

Impact of YSlow is real!

31

Page 32: Web performance meetup bos 11 18-2010

Business Intelligence

• Benchmarking• Web analytics integration

32

Page 33: Web performance meetup bos 11 18-2010

33

Page 34: Web performance meetup bos 11 18-2010

Benchmarking

• Tells you– How you perform against industry

segments / competitors

• Actions to take – Change investment in performance– Demonstrate competitive advantage

34

Page 35: Web performance meetup bos 11 18-2010

Performance segmentation

35

Page 36: Web performance meetup bos 11 18-2010

Segmentation

• Tells you– How performance impacts business

metrics

• Actions to take – Demonstrate business case for

performance– Improve conversions / revenue

36

Page 37: Web performance meetup bos 11 18-2010

Techniques

• Continuous Synthetic monitors• On-Demand Synthetic monitors• Network taps • Server Instrumentation• Browser Instrumentation• In-Browser Tools

37

Page 38: Web performance meetup bos 11 18-2010

Continuous Synthetic Monitors

Region 3

Region 1

Region 2

HistoricalData

Scheduling

Reporting

Page 39: Web performance meetup bos 11 18-2010

Continuous Synthetic Monitors

• Examples– Yottaa, Keynote, Gomez

• Advantages– Benchmarking– 3rd Party Measurement– Macro-Level Page measurement– Reachability

• Disadvantages– Not real users– Can’t easily integrate with analytics

Page 40: Web performance meetup bos 11 18-2010

On-Demand Synthetic Monitors

Region 3

Region 1

Region 2

Reporting

Page 41: Web performance meetup bos 11 18-2010

On-Demand Synthetic Monitors

• Examples– Yottaa, Keynote, Gomez, Web Page Test

• Advantages– Easy to use– Instant results

• Disadvantages– Sample error– No / Limited historical reporting

Page 42: Web performance meetup bos 11 18-2010

Network Tap

Region 3

Region 1

Region 2Historical

Data

Reporting

Page 43: Web performance meetup bos 11 18-2010

Network Tap

• Examples– Coradiant

• Advantages– Real user measurement– Low/No impact on system

• Disadvantages– Do not see end user times, just server side

times– Do not see 3rd party requests– Difficult to integrate with analytics

Page 44: Web performance meetup bos 11 18-2010

Server Instrumentation

Region 3

Region 1

Region 2Historical

Data

Reporting

Page 45: Web performance meetup bos 11 18-2010

Server instrumentation

• Examples– New Relic, Tracelytics, DTrace

• Advantages– Real user measurement– Low/No impact on system

• Disadvantages– Do not see end user times, just server side

times– Do not see 3rd party requests– Difficult to integrate with analytics

Page 46: Web performance meetup bos 11 18-2010

Browser Instrumentation

Region 3

Region 1

Region 2Historical

Data

Reporting

Page 47: Web performance meetup bos 11 18-2010

Browser instrumentation

• Examples– Boomerang, Yottaa, Gomez

• Advantages– Real user measurement– Integrates well with analytics– Includes 3rd party

• Disadvantages– Can impact browser performance– High load on collection

Page 48: Web performance meetup bos 11 18-2010

In-Browser Tool

Region 1

Reporting

Page 49: Web performance meetup bos 11 18-2010

In-Browser Tools

• Examples– Firebug, Chrome Developer tools

• Advantages– Easy to use– Interactive

• Disadvantages– Not continuous– Only from a single browser / location

Page 50: Web performance meetup bos 11 18-2010

50

Q & AThank you for viewing


Recommended