Top Banner
Why is Web Performance Important? And why you should care about it
61
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Why Performance Matters

Why is Web Performance Important?And why you should care about it

Page 2: Why Performance Matters

flickr.com/photos/10947307@N02/1812302205

Page 3: Why Performance Matters

First lets define performance (in terms that relate to us)

Page 4: Why Performance Matters

The perception of response timesJakob Nielsen

Page 5: Why Performance Matters

100ms 1s 10s

Insta

nt

Seam

less

Yawn!

Response Time in Man-computer Conversational TransactionsRobert B. Miller, 1968

Page 6: Why Performance Matters

And why is performance important to users of machines?

flickr.com/photos/28319663@N03/13376786064

Page 7: Why Performance Matters

“…participants had to concentrate up to 50% more when using badly performing websites” Foviance

flickr.com/photos/23073717@N07/5450434144

Page 8: Why Performance Matters

Context

flickr.com/photos/75959029@N00/3371615134

Slower web performance has a clear and measureable impact on people at a neurological levelhttp://www.radware.com/mobile-eeg2013/

Page 9: Why Performance Matters

Q: Given that we now know performance is valued by users of machines, how does it impact the machine owners?

A: We study it!

Page 10: Why Performance Matters

“The results suggest that slower page speed affects the brand on a more global level”http://www.radware.com/mobile-eeg2013/

Page 11: Why Performance Matters

Page speed matters for site conversion, revenue and SEOWalmart

Page 12: Why Performance Matters
Page 13: Why Performance Matters

$$$

+12% +25% -50%

Shopzilla cut load times by 5 secondshttp://velocityconf.com/velocity2009/public/schedule/detail/7709

Page 14: Why Performance Matters

Abandonment rate for 200+ sites / 177+ million page views over 2 weeks – Measureworks / Gomez

Page 15: Why Performance Matters

Amazon, bing and Google all found that as load time increased, revenue (searches) decreasedhttp://velocityconf.com/velocity2009/public/schedule/detail/8523

+s -%

= £

Page 16: Why Performance Matters

“85% of mobile users expect sites to load at least as fast or faster than sites on their desktop”Strangeloop Networks

Page 17: Why Performance Matters

Ok, so we know that there is a problem.How do we fix it?

flickr.com/photos/68661927@N00/2371313211

Page 18: Why Performance Matters

This man gave us a steer

Page 19: Why Performance Matters

In the beginning there was the rules.These were the web performance commandments.

Page 20: Why Performance Matters

What can we do about these issues?Fix them through better dev practices…

flickr.com/photos/84637141@N08/12285119485

Page 21: Why Performance Matters
Page 22: Why Performance Matters

Performance Workshops…

flickr.com/photos/55156621@N04/9929542584

Page 23: Why Performance Matters

… or automate through Open Source or COTS

Page 24: Why Performance Matters

http://www.slideshare.net/patrickmeenan/making-the-web-faster

Page 25: Why Performance Matters

And don’t forget to keep measuring

Page 26: Why Performance Matters

“Without data you’re just another person with an opinion.”W. Edwards Deming

Page 27: Why Performance Matters

http://www.slideshare.net/jonlives/bring-the-noise

Page 28: Why Performance Matters

Screen shots of WPT and PA

What can you use to measure performance?

Page 29: Why Performance Matters

</shameless plug>

Page 30: Why Performance Matters

Are we done?

Page 31: Why Performance Matters

No, there’s more to it

Page 32: Why Performance Matters

Nov 0

8

Apr 0

9

Nov 1

0

May

10

Nov 1

0

May

11

Nov 1

1

May

12

Nov 1

2

May

13

Nov 1

302468

101214161820

Sp

ee

d (

Mb

ps

)UK Broadband speeds are improving all the time

Ofcom

Page 33: Why Performance Matters

But users experiences are getting worse

1 2 3 4 5 6 7 8 9 10 > 100

5

10

15

20

25

30

Load Time (s)

Vis

ito

rs (

%)

Page 34: Why Performance Matters

But users experiences are getting worse

1 2 3 4 5 6 7 8 9 10 > 100

5

10

15

20

25

30

Load Time (s)

Vis

ito

rs (

%)

Page 35: Why Performance Matters

1 2 3 4 5 6 7 8 9 10

3.11s

1.95s1.63s 1.50s 1.44s 1.41s 1.39s 1.38s 1.37s 1.36s

Bandwidth (Mbps)

Page L

oad T

ime

More bandwidth doesn’t matter (much)Mike Belshe

Page 36: Why Performance Matters

Let’s get under the hood

flickr.com/photos/41308227@N00/4690943187

Page 37: Why Performance Matters

Read this book by @igrigorik

https://www.youtube.com/watch?v=Il4swGfTOSM

Page 38: Why Performance Matters

Bandwidth + Latency = Performance

Page 39: Why Performance Matters
Page 40: Why Performance Matters

1 RTT

Page 41: Why Performance Matters

Standard pages contain many requests

Page 42: Why Performance Matters

0 20 40 60 80 1001201401601802002202400

1

2

3

4

5

Round Trip Time (ms)

Page L

oad T

ime (

s)Latency has a huge impact on load times

Page 43: Why Performance Matters
Page 44: Why Performance Matters
Page 45: Why Performance Matters

Distance matters too

Page 46: Why Performance Matters
Page 47: Why Performance Matters

TCP and the Lower Bound of Web PerformanceJohn Rauser, 2010

Larger downloads == more trips

Page 48: Why Performance Matters

Remember that web browsing is latency limited and streaming is bandwidth limited

¹

Page 49: Why Performance Matters

But why the rush?

.flickr.com/photos/27536026@N04/2620572503

Page 50: Why Performance Matters

PaintRender

Tree

HTML

CSS

DOM

CSSOM

Layout

Because browsers build a page like this

Page 51: Why Performance Matters

Your target is 14K

Page 52: Why Performance Matters

But remember that JS blocks

RenderTree

HTML

CSS

DOM

CSSOM

Layout PaintJavaScript

Page 53: Why Performance Matters

So, got all that?

Page 54: Why Performance Matters

That’s what we recommend anyway, but what are people doing right now?

.flickr.com/photos/10855397@N02/2461847632

Page 55: Why Performance Matters

What does the future look like?

flickr.com/photos/72211182@N00/107474703/

Page 56: Why Performance Matters

Performance Budgets

flickr.com/photos/68751915@N05/6736170827

Page 57: Why Performance Matters

HTTP /2(was SPDY)

Multiplexing 1 connection per host

Header Compression

Browser hints to set priorities

… and secure by default!

Page 58: Why Performance Matters

Understand TCP Slow Start a little better

If we increase our initial congestion windows we can get more content down in our initial single packet!

flickr.com/photos/92849383@N02/8500134412

Page 59: Why Performance Matters

Image formats

Page 60: Why Performance Matters

Thank you for your time!

Ben DanielAlex Painter

Page 61: Why Performance Matters

Europe

Manchester - Head Office

Amsterdam

Cheltenham

Copenhagen

Edinburgh

Glasgow

Leatherhead

London

Milton Keynes

Munich

Zurich

North America

Atlanta

Austin

Chicago

New York

San Francisco

Seattle

Sunnyvale

Australia

Sydney