Notes From Velocity Conference Europe

48
Notes from Velocity Conference Europe 2013 [email protected]

description

The O'Reilly Velocity Conference Europe was held in London from 13th to 15th November 2013. In a few days I shared my notes with my fellow webspeeders at the Web Performance Barcelona Meetup. These are the slides I used.

Transcript of Notes From Velocity Conference Europe

Page 1: Notes From Velocity Conference Europe

Notes from Velocity Conference Europe 2013

[email protected]

Page 2: Notes From Velocity Conference Europe

Who am I?

Let me introduce myself in two minutes

Page 3: Notes From Velocity Conference Europe

Used to be kind of a…• Software Developer?!• IT Specialist?!• Database Specialist?!• IT Architect?!• Project Leader?

• Java Enterprise!• OO Analysis & Design!• DB2 & other databases!• TDD, CI & other Agile practices!• Mostly back end, critical infrastructure / apps!

– Performance matters

Page 4: Notes From Velocity Conference Europe

And now…

Page 5: Notes From Velocity Conference Europe

Performance Engineer

Page 6: Notes From Velocity Conference Europe
Page 7: Notes From Velocity Conference Europe

A fast ecommerce makes more money

Page 8: Notes From Velocity Conference Europe

Combine performance tuning with key ecommerce platform expertise

Page 9: Notes From Velocity Conference Europe

Performance review and optimization services

Page 10: Notes From Velocity Conference Europe

Why did I go there?

Page 11: Notes From Velocity Conference Europe

My Conference Objectives• Learn key technologies!• Listen to relevant people!• Grab some t-shirts and pencils!• Get some books signed!• Come back with even more energy

Page 12: Notes From Velocity Conference Europe

And what did I learn?• Concepts !• Tools!• Techniques!• Tips!• Resources

Page 13: Notes From Velocity Conference Europe

This talk is for AWARENESS

You listen to me now and go tomorrow to the referenced links and your favorite search engine.

Page 14: Notes From Velocity Conference Europe

1. Concepts

Page 15: Notes From Velocity Conference Europe

Jank

https://speakerdeck.com/addyosmani/velocityconf-rendering-performance-case-studies http://jankfree.org

Page 16: Notes From Velocity Conference Europe

Jank– Frame rate!• Rate at which a device produces consecutive

images to the screen!• Animations, transitions, scrolling !

– Jank!• Disruption in consistent frame rate that manifests

visually!• Know how browser renders pages: layout, paint,

composite layers, DOM & CSSOM

Page 17: Notes From Velocity Conference Europe

Latency

Page 18: Notes From Velocity Conference Europe

Latency–Web browsing vs streaming/downloading!– HW | RTT | Last mile | Mobile | TCP stack!– http://bit.ly/hpbn-talk

Page 19: Notes From Velocity Conference Europe

Critical rendering path

HTML

CSS

DOM

CSSOM

Render Tree Layout

Paint

Network

JavaScript!download

JavaScriptexecution

(wait)

http://bit.ly/GRcIf4

Page 20: Notes From Velocity Conference Europe

Critical rendering path• Users should see useful pixels as fast as

possible!• Paint above the fold, then fetch the rest!– Non-blocking critical CSS & JS!– Inline!– Progressive images!

• Minimize the number of roundtrips.!• TCP slow start

Page 21: Notes From Velocity Conference Europe

2. Tools

Page 22: Notes From Velocity Conference Europe

WebPageTest ecosystem

http://velocityconf.com/velocityeu2013/public/schedule/detail/31529

Page 23: Notes From Velocity Conference Europe

Load time metrics

Page 24: Notes From Velocity Conference Europe

Useful test options

Page 25: Notes From Velocity Conference Europe

Waterfall diagrams

Page 26: Notes From Velocity Conference Europe

Speed index

Page 27: Notes From Velocity Conference Europe

And many more features• Open source – download and install private

instance, or use public instance!• RESTful APIs!• Compare: two runs, different pages!• Capture video, compare!• Capture TCP dump, DevTools timeline!• https://sites.google.com/a/webpagetest.org/docs/

Page 28: Notes From Velocity Conference Europe

HTTP Archive

Page 29: Notes From Velocity Conference Europe

bigqueri.es

Page 30: Notes From Velocity Conference Europe

Tools to automate testing

Page 31: Notes From Velocity Conference Europe

WebPageTest API

Page 32: Notes From Velocity Conference Europe

SiteSpeed

Page 33: Notes From Velocity Conference Europe

Tools to automate optimizations

http://www.youtube.com/embed/2U3joc9NaY4

Page 34: Notes From Velocity Conference Europe

At development time

Page 35: Notes From Velocity Conference Europe

At runtime

Page 36: Notes From Velocity Conference Europe

Chrome DevTools

http://www.igvita.com/slides/2012/devtools-tips-and-tricks

Page 37: Notes From Velocity Conference Europe

Timeline, frames

Page 38: Notes From Velocity Conference Europe

NetworkNetwork view, create waterfalls, export HAR, time&latency, size&content

Page 39: Notes From Velocity Conference Europe

3. Tips & Techniques

Page 40: Notes From Velocity Conference Europe

Continuous improvement via automation

Page 41: Notes From Velocity Conference Europe

Automate functional testing in production

Page 42: Notes From Velocity Conference Europe

Optimize TCP

Page 43: Notes From Velocity Conference Europe

Set performance goals

Page 44: Notes From Velocity Conference Europe

Optimize images

Page 45: Notes From Velocity Conference Europe

Measure whatever has meaning to you and plot it against load time

Page 46: Notes From Velocity Conference Europe

Ok done. Reach me at:• [email protected]!• http://siriusway.com/performance-blog/!• @jordibuj!• http://es.linkedin.com/in/jordibuj/

Page 47: Notes From Velocity Conference Europe

References• Conference slides and videos: http://

velocityconf.com/velocityeu2013/public/schedule/proceedings!

• #perfmatters

Page 48: Notes From Velocity Conference Europe