1 / 35

Exceptional Performance Evolution at Yahoo!

Exceptional Performance Evolution at Yahoo!. Steve Souders Chief Performance Yahoo! souders@yahoo-inc.com. Exceptional Performance. quantify and improve the performance of all Yahoo! products worldwide center of expertise build tools, analyze data

fran
Télécharger la présentation

Exceptional Performance Evolution at Yahoo!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exceptional Performance Evolution at Yahoo! Steve Souders Chief Performance Yahoo! souders@yahoo-inc.com

  2. Exceptional Performance • quantify and improve the performance of all Yahoo! products worldwide • center of expertise • build tools, analyze data • gather, research, and evangelize best practices

  3. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  4. Performance Definition • two categories: • response time • efficiency • focus: web products

  5. Response Time, Page Weight, YSlow Grade

  6. Strong Correlation total page weight response time inverse YSlow grade correlation(resp time, page weight) = 0.94 correlation(inverse YSlow, resp time) = 0.76 correlation(inverse YSlow, page weight) = 0.59

  7. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  8. The Importance of Frontend Performance Backend = 5% Frontend = 95% Even here, frontend = 88%

  9. Time Spent on the Frontend

  10. The Performance Golden Rule • 80-90% of the end-user response time is spent on the frontend. Start there.

  11. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  12. Performance Research

  13. # users with at least one 200 response • total # unique users • Percentage of users with an empty cache? • Percentage of page views with an empty cache? • # of 200 responses • total # responses Browser Cache Experiment • Add an image to the page: • Expires: Thu, 15 Apr 2004 20:00:00 GMT • Last-Modified: Wed, 28 Sep 2006 23:49:57 GMT

  14. users withempty cache page views withempty cache Browser Cache Experiment Results 40-60% ~20%

  15. Experiment Takeaways • The empty cache user experience is more prevalent than you think! • Optimize for both primed cache and empty cache experience.

  16. Case Studies

  17. 40-50% Case Study: • move JS to onload • remove bottom tabs • avoid redirects • images sprites • host JS on CDN • combine JS files

  18. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  19. 14 Rules

  20. 14 Rules • Make fewer HTTP requests • Use a CDN • Add an Expires header • Gzip components • Put stylesheets at the top • Move scripts to the bottom • Avoid CSS expressions • Make JS and CSS external • Reduce DNS lookups • Minify JS • Avoid redirects • Remove duplicate scripts • Configure ETags • Make AJAX cacheable

  21. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  22. (Internal) Evangelism • training classes • tech talks • staff presentations • web site – papers, twiki • mailing list • consulting

  23. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  24. YSlow • performance lint tool • grades web pages for each rule • Firefox add-on integrated with Firebug

  25. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  26. Performance Rollout • performance SLA targets • regular tracking • Wall of Fame/Shame • Biz Case • Performance TV • Competitor Wall of Fame/Shame

  27. reduce HTTP use a CDN add Expires gzip minify configure ETags

  28. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  29. (External) Evangelism • Book High Performance Web Sites • Conferences Yahoo! F2E Summit Web 2.0 Expo Foo Camp • Blogs YUI Blog:http://yuiblog.com/blog/category/performance YDN Blog:http://developer.yahoo.com/performance/ • Open Source YSlow OSCon Ajax Experience Blogher Future of Web Apps

  30. Evolution of Performance • quantify • → profile • → research,case studies • → best practices • → evangelize • → codify • → rollout • → publicize

  31. What's Next? • wider adoption, internationals • industry-wide initiatives • other areas – backend, mobile

  32. Takeaways • quantify & profile first • make it irresistible • enlist deputies • teach to fish • carrot v. stick • reach outside

  33. Steve Souders souders@yahoo-inc.com

  34. CC Images Used • "Need for Speed" by Amnemona: http://www.flickr.com/photos/marinacvinhal/379111290/ • "Max speed 15kmh" by xxxtoff: http://www.flickr.com/photos/xxxtoff/219781763/ • "maybe" by Tal Bright: http://www.flickr.com/photos/bright/118197469/ • "takeout" by dotpolka : http://www.flickr.com/photos/dotpolka/249129144/ • "new briefcase" by dcJohn: http://www.flickr.com/photos/dcjohn/85504455/ • "Absolutely Nothing is Allowed Here" by Vicki & Chuck Rogers: http://www.flickr.com/photos/two-wrongs/205467442/ • "US Capitol police – security is everywhere here" by Melvin Schlubman: http://flickr.com/photos/pauldineen/45498969/ • "Horse and Water" by originalrobart: http://flickr.com/photos/grandetour/160907919/ • "thank you" by nj dodge: http://flickr.com/photos/nj_dodge/187190601/

More Related