View
1.563
Download
0
Embed Size (px)
DESCRIPTION
Talk presented at Confoo 2011 about performance, technologies, when to optimize, and some broad ideas about how to go about it.
Citation preview
Turning your web performance to 11
Newman Scott Hunterhttp://driftlogic.net - @nshunter – [email protected]
Faster websites make more money.
Source: http://www.slideshare.net/bitcurrent/impact-of-web-latency-on-conversion-rates
Loading Times @ 4 Seconds, 75% of users will not choose to return to the site.
Source: http://www.eugeneloj.com/2006/12/the_user_attent.html
Perception of PerformanceUser
HappynessTime
@ 100 ms“Okay, I did something.”
@ 1000 ms“Okay, I’m waiting for it to load”
@ 10000 ms“This site is F-ing SLOW.”
.
.
.
Source: http://www.useit.com/papers/responsetime.html
Do I have a problem?
Assessing Performance
Firebug
Assessing Performance
http://webpagetest.org
Site’s Slow
Problem?
Where’s the Problem?
Front End
• Images• CSS / Javascript / HTML• Flash / Video / Rich Media• Headers / Cookies
Back End• PHP / Python / Ruby / Java / etc.• Database• Caching• Asset Service
Front End Issues
First Stop: Firebug
• Do we need everything on this page?• Video• Flash• Multiple Images• AJAX / Extraneous JS
Kongregate Front Page: 1.2 MB
Kongregate Game Page: 5.3 MBVS
Front End Issues
http://code.google.com/speed/page-speed/
http://developer.yahoo.com/yslow/
Apache Header Fix
Back End Problems
How do I know if I’m overloaded?
Overloaded Server
Munin Network Monitoring
Monitoring Services
Open Source Free!
http://munin-monitoring.org/
Not Free! But Awesome.
http://cloudkick.com
How do I FIND my problem / bottleneck ?
Application Layer Monitoring
Fixing ProblemsProblem
High Load / Multiple Assets / Large Database / etc..
Solution
Pay your way out.
• More hardware• Switch from Cloud to Physical• Integrate a CDN• Increase Pipe
Fixing ProblemsProblem
Multiple Queries / Large Datasets / Multiple Large Assets
Solution
Add Additional Caching
Application Layer Presentation Layer
CDN
Fixing ProblemsProblem
Slow Search / Large Search Dataset
Solution
Use a Search Appliance
Fixing ProblemsProblem
Code Efficiency / Application Size / Language Issues
Solution
Code Refactoring
Change Runtime Environment / Application Server
Rewrite
Chasing the Unicorn
Thank You
Newman Scott Hunterhttp://driftlogic.net - @nshunter – scott @driftlogic.net