The Importance of Site Performance and Simple Steps to Achieve It

N
Nexcess.net LLCNexcess.net LLC
MagentoLive UK 2013
The Importance of Site Performance and
Simple Steps to Achieve It
CHRIS WELLS – CEO – NEXCESS.NET LLC
The Ambassador Bridge (USA/Canada)
• Completed 1929 (Longest suspension bridge worldwide at time)
• Busiest international trade crossing in North America
• 25% of all US/Canadian merchandise trade

• Drive south to go north?
The Ambassador Bridge (USA/Canada)

Detroit, MI USA

Windsor,
Ontario Canada

The DetroitWindsor tunnel
is cool too!
Today’s Topics
•
•
•
•
•

Why is site performance important?
What should our definition of performance be?
Evidence and anecdotes
Where do I start?
Simple steps to achieving speed
• Infrastructure
• Magento
• Beyond
• Side-effects of increasing site performance
Perspective – Where This is All Coming From
•
•
•
•
•

Nexcess is a 13 year old web infrastructure company
Magento Platinum Hosting Partner
Wholly owned data centers in the U.S.
Partner data centers in the U.K. and Australia
We host:
• Over 10,000 CE installs (more than any other provider)
• Over 1,000 EE installs (2nd in the industry)
• Infrastructure view of Magento and the Magento stack
• Today’s talk will focus on the view from our vantage point
Why Care About Performance?
Site Performance Directly Affects Your Bottom Line!
Anecdotal Evidence
•
•
•
•

Just think about it...
slow….means….frustrating….
Metrics aside - you know slow when you see it!
There’s rarely an upside to a site loading slow

• Unless it’s your competitors 
• Mobile adds a new variable (3G is essentially dial-up)
• An un-optimized Magento Enterprise is slow out-of-the-box
• ~3 second load times are typical before adding extensions
Performance Wins – Part 1
• Firefox Browser
• Slow page loaders downloaded less often
• 1 second of increased performance increased downloads by 2.7%
• Shopzilla.com
• Had page load times of ~7 seconds
•
•
•
•

5 second decrease in page load time (7s  2s)
25% increase in page views
7 – 12% increase in revenue
50% decrease in physical hardware
Performance Wins – Part 2
• Google
• Tested a longer page 1 (30 entries instead of 10) and found a 25%
drop-off in clicks
• The addition of a shopping cart icon:
• Added 2% delay in loading
• Resulted in 2% less searches/user
• Wal-Mart noted:
• Every 1 second improvement equated to 2% increased CVR
• Every 100 milliseconds improvement equated to 1% in
incremental revenue
What Should the Target Be – What’s Possible?
• 1 second delay can equate to a 7% decrease in conversions
• Imagine you gross $100,000 / day
• +1 second of page-load time = $2,500,000 annual lost sales
SO…
• ~3-second page-load time (or faster)
• 47% of users expect page load < 2 seconds
• 40% of users abandon sites with a page load of > 3s
• Mobile users are more patient (for now – don’t forget 3G)
Where to Start?
• Start simple – how does the site feel?
• Gather metrics
• Web Page Test (http://www.webpagetest.org/)
• Google Analytics
• Yahoo’s Yslow (browser plug-in)
• New Relic & other paid tools
• Tackle one issue at a time, test, repeat
• Big gains are possible with targeted optimization
• Remember Pareto’s Principal (the 80/20 rule)
Performance Step #1 – Tune The Environment
• Hardware and software choices matter!
• Talk to your hosting provider and make sure they:
• Configure the PHP interpreter correctly (this runs Magento)
• Make sure they use a correctly configured PHP-FPM
• Configure the database server correctly (typically MySQL)
• Use Percona Server instead of MySQL
• Make sure you use XtraDB as your table store
• Implement the Magento best practices (at a minimum)
• We cover all of this in detail in a free whitepaper (more later)
Effect Of Database Software Selection
MySQL tops out
Percona Server
hits~1200 t/sec
at ~1800 t/sec
Performance Step #2 – Tune Magento
• Make full use of Magento’s built-in features!
• The two-level cache
• Use memcache as the ‘fast cache’
• Use Redis as the ‘slow cache’
• Session caching
• Use memcache
• The Magento full page cache (FPC)
• Use memcache
• HUGE performance gains instantly
• 1.13 has smarter cache invalidation than prior versions
Basic Benchmarking – Un-optimized Magento
• TTFB (time to first byte)

Not a great start…

Ignore these for now.
Remember - one thing at a time!

We’re at about 3 seconds to start

TTFB is pushing full second
BUT… Repeat viewsaare not too shabby!
The Magento Full Page Cache (Optimal Conditions)
The cache takes a
few minutes to
build

~2 seconds
without the FPC
~.5 seconds
with the FPC!
The Power of the FPC

From “F” to “B” with a
single config change

And we’ve gained a full ½ second (was 2.8)

RepeatTTFB isare served at just over ½ a second! (was ~1)
pages only .36 seconds! (was .75)
What Does This Really Look Like?

FPC DISABLED

FPC ENABLED
Performance Step #3 – Speed Up the Edge
• Host where your customers are
• Put your site on the same continent as your audience (or closer)
• Use a global content delivery network (CDN)
• 75% of all e-commerce sites do not use a CDN
• Turn on compression for JavaScript, CSS, HTML, images, etc
• 22% of all e-commerce sites do not use compression
• Turn on HTTP Keep-alives (keeps per-client connections open)
• 13% of all e-commerce sites do not use the keep-alive setting
• Beware of too many (or just plain bad) external resources (JavaScript,
CSS, images, ads etc)
Edge Tuning

CDN configured

Simple server-side
Image compression is
changes make these by your
best done
perform
design team

We’ve gained another full second (was 2.4)

TTFB largely unaffected (as expected) here (was 1.6)
The second was largely gained
Performance Step #4
• Make use of good 3rd party extensions
• Performance isn’t always simple 
• Nexcess/Turpentine can be part of the answer
• Beware of bad 3rd party extensions
• May induce slowness (complex or non-optimal queries)
• May include slow off-server content
• Test all extensions for performance before using in production!
• Strike a usability balance between performance and features
Turpentine’s Effect On Response Time

Turpentine can
cut this down
quite a bit!

Remember – FPC
yields ~.5 second
page load times
(under optimal
conditions)
Pushing It Further

From “B” to “A” with a
single free extension

Down to almost 1 second!

Our lowest TTFB yet! (was .38)
Even with all optimizations ON there is still variance
Performance Side Effects
• Faster sites are stickier – Wikia.com’s re-architecting found:
• ~15% exit rate for a 2 second page load
• ~10% exit rate for a 1 second page load
• Faster sites yield higher search engine placement
• Google / Bing / Yahoo! use speed as a metric in their algorithms
• You’re more ready for that viral video or the GMA effect
• GMA = Good Morning America – a popular U.S. morning show
• Faster doesn’t have to mean more expensive
• Costs can often be lowered as a result of caching & optimization
Caching Can Save Money – How?

~550
transactions/sec

~120
transactions/sec
Don’t Forget
• Performance is not a one-time activity (monitor often)
• The 80/20 rule is a good guide
• Make performance part of your design/development process
• Choose extensions based on a performance SLA
• Make sure your developers understand how to design/code for
performance
• All 3rd party extensions are not created equal!
• Software/code optimization can only go so far – hardware can help
• Dedicated admin, database and web servers may be needed
Final Thoughts
• Performance matters and ROI can be considerable
• Slow = frustrating
• The biggest sites on the Internet have seen measurable bottom-line
gains when focusing on performance
• Tune:
• The environment (find the right Magento Hosting Partner)
• Magento
• The edge
• 3rd party extensions
• Many optimization techniques are easy/free
More Information
Our Magento Performance Whitepaper is available at:
http://www.nexcess.net/magento-best-practices-whitepaper

Our Turpentine extension is available at:
http://www.nexcess.net/magento-turpentine-extension
Thank you!

Questions?

Chris Wells – clwells@nexcess.net
References
•
•
•
•

http://www.nexcess.net/magento-best-practices-whitepaper
http://blog.kissmetrics.com/loading-time/
http://blog.mozilla.org/metrics/category/website-optimization/
http://www.webperformancetoday.com/2012/02/28/4-awesomeslides-showing-how-page-speed-correlates-to-business-metrics-atwalmart-com/
• http://programming.oreilly.com/2009/07/velocity-making-your-sitefast.html
1 of 31

Recommended

Continuous architecture improvement of a cross-border online trade platform by
Continuous architecture improvement of a cross-border online trade platformContinuous architecture improvement of a cross-border online trade platform
Continuous architecture improvement of a cross-border online trade platformHarvey Bai
399 views18 slides
Magento security best practices 2015 by
Magento security best practices 2015Magento security best practices 2015
Magento security best practices 2015Philippe Humeau
942 views34 slides
20130714 php matsuri - highly available php by
20130714   php matsuri - highly available php20130714   php matsuri - highly available php
20130714 php matsuri - highly available phpGraham Weldon
597 views57 slides
TFT13 Rob England Standard+Case approach: applying Case Management to break f... by
TFT13 Rob England Standard+Case approach: applying Case Management to break f...TFT13 Rob England Standard+Case approach: applying Case Management to break f...
TFT13 Rob England Standard+Case approach: applying Case Management to break f...TFT presentations Tomorrow's IT Service Future Today
820 views28 slides
Voxeo Summit Day 2 - Advanced CCXML topics by
Voxeo Summit Day 2 - Advanced CCXML topicsVoxeo Summit Day 2 - Advanced CCXML topics
Voxeo Summit Day 2 - Advanced CCXML topicsVoxeo Corp
933 views16 slides
SA114 - Virtual Notesiality! - How the Notes client and Browser Plugin can ex... by
SA114 - Virtual Notesiality! - How the Notes client and Browser Plugin can ex...SA114 - Virtual Notesiality! - How the Notes client and Browser Plugin can ex...
SA114 - Virtual Notesiality! - How the Notes client and Browser Plugin can ex...Daniel Reimann
144 views45 slides

More Related Content

Similar to The Importance of Site Performance and Simple Steps to Achieve It

MagentoLive Australia 2014 - The Importance of Performance & Security and Sim... by
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...Nexcess.net LLC
2.4K views40 slides
Magento Live UK Nexcess Performance & Security Session by
Magento Live UK Nexcess Performance & Security SessionMagento Live UK Nexcess Performance & Security Session
Magento Live UK Nexcess Performance & Security SessionNexcess.net LLC
2.6K views40 slides
Web Performance Optimization (WPO) by
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Betclic Everest Group Tech Team
2.3K views26 slides
Enterprise-Scale WordPress by
Enterprise-Scale WordPressEnterprise-Scale WordPress
Enterprise-Scale WordPressKeanan Koppenhaver
808 views54 slides
Website Performance by
Website PerformanceWebsite Performance
Website PerformanceHugo Fonseca
246 views21 slides
Optimizing WordPress Performance by
Optimizing WordPress PerformanceOptimizing WordPress Performance
Optimizing WordPress PerformanceDouglas Yuen
2.1K views28 slides

Similar to The Importance of Site Performance and Simple Steps to Achieve It(20)

MagentoLive Australia 2014 - The Importance of Performance & Security and Sim... by Nexcess.net LLC
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...
Nexcess.net LLC2.4K views
Magento Live UK Nexcess Performance & Security Session by Nexcess.net LLC
Magento Live UK Nexcess Performance & Security SessionMagento Live UK Nexcess Performance & Security Session
Magento Live UK Nexcess Performance & Security Session
Nexcess.net LLC2.6K views
Optimizing WordPress Performance by Douglas Yuen
Optimizing WordPress PerformanceOptimizing WordPress Performance
Optimizing WordPress Performance
Douglas Yuen2.1K views
10 things you can do to speed up your web app today stir trek edition by Chris Love
10 things you can do to speed up your web app today   stir trek edition10 things you can do to speed up your web app today   stir trek edition
10 things you can do to speed up your web app today stir trek edition
Chris Love1.3K views
20 tips for website performance by Andrew Siemer
20 tips for website performance20 tips for website performance
20 tips for website performance
Andrew Siemer103 views
Walmart pagespeed-slide by Bitsytask
Walmart pagespeed-slideWalmart pagespeed-slide
Walmart pagespeed-slide
Bitsytask41.2K views
Walmart Web Performance Circa 2013 by Cliff Crocker
Walmart Web Performance Circa 2013Walmart Web Performance Circa 2013
Walmart Web Performance Circa 2013
Cliff Crocker758 views
Openxcell conducts a successful webinar on Magento Optimization by OpenXcell Technolabs
Openxcell conducts a successful webinar on Magento OptimizationOpenxcell conducts a successful webinar on Magento Optimization
Openxcell conducts a successful webinar on Magento Optimization
OpenXcell - Magento Optimization Webinar 2013 by Jayneel Patel
OpenXcell - Magento Optimization Webinar 2013OpenXcell - Magento Optimization Webinar 2013
OpenXcell - Magento Optimization Webinar 2013
Jayneel Patel915 views
Praxistaugliche notes strategien 4 cloud by Roman Weber
Praxistaugliche notes strategien 4 cloudPraxistaugliche notes strategien 4 cloud
Praxistaugliche notes strategien 4 cloud
Roman Weber422 views
Single Page Applications: Your Browser is the OS! by Jeremy Likness
Single Page Applications: Your Browser is the OS!Single Page Applications: Your Browser is the OS!
Single Page Applications: Your Browser is the OS!
Jeremy Likness4.9K views
SharePoint Performance Monitoring with Sean P. McDonough by Gabrijela Orsag
SharePoint Performance Monitoring with Sean P. McDonoughSharePoint Performance Monitoring with Sean P. McDonough
SharePoint Performance Monitoring with Sean P. McDonough
Gabrijela Orsag161 views
Demystifying Website Performance and Its Impact on Revenue by section_io
Demystifying Website Performance and Its Impact on RevenueDemystifying Website Performance and Its Impact on Revenue
Demystifying Website Performance and Its Impact on Revenue
section_io532 views
Improving frontend performance by Sagar Desarda
Improving frontend performanceImproving frontend performance
Improving frontend performance
Sagar Desarda142 views
PAC 2019 virtual Mark Tomlinson by Neotys
PAC 2019 virtual Mark TomlinsonPAC 2019 virtual Mark Tomlinson
PAC 2019 virtual Mark Tomlinson
Neotys188 views

More from Nexcess.net LLC

Nexcess - Peers Reseller by
Nexcess - Peers Reseller Nexcess - Peers Reseller
Nexcess - Peers Reseller Nexcess.net LLC
1.6K views60 slides
Magento Imagine 2015 - Aspirin For Your MySQL Headaches by
Magento Imagine 2015 - Aspirin For Your MySQL HeadachesMagento Imagine 2015 - Aspirin For Your MySQL Headaches
Magento Imagine 2015 - Aspirin For Your MySQL HeadachesNexcess.net LLC
1.3K views54 slides
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for Ecommerce by
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for EcommerceChris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for Ecommerce
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for EcommerceNexcess.net LLC
2.6K views33 slides
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014) by
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)Nexcess.net LLC
3.8K views36 slides
Nexcess Magento Imagine 2014 Performance Breakout by
Nexcess Magento Imagine 2014 Performance BreakoutNexcess Magento Imagine 2014 Performance Breakout
Nexcess Magento Imagine 2014 Performance BreakoutNexcess.net LLC
3.2K views38 slides
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun... by
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...Nexcess.net LLC
2.4K views35 slides

More from Nexcess.net LLC(6)

Magento Imagine 2015 - Aspirin For Your MySQL Headaches by Nexcess.net LLC
Magento Imagine 2015 - Aspirin For Your MySQL HeadachesMagento Imagine 2015 - Aspirin For Your MySQL Headaches
Magento Imagine 2015 - Aspirin For Your MySQL Headaches
Nexcess.net LLC1.3K views
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for Ecommerce by Nexcess.net LLC
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for EcommerceChris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for Ecommerce
Chris Wells Magento Imagine 2015 Breakout - Leveraging the Cloud for Ecommerce
Nexcess.net LLC2.6K views
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014) by Nexcess.net LLC
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
Nexcess.net LLC3.8K views
Nexcess Magento Imagine 2014 Performance Breakout by Nexcess.net LLC
Nexcess Magento Imagine 2014 Performance BreakoutNexcess Magento Imagine 2014 Performance Breakout
Nexcess Magento Imagine 2014 Performance Breakout
Nexcess.net LLC3.2K views
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun... by Nexcess.net LLC
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
EECI 2013 - ExpressionEngine Performance & Optimization - Laying a Solid Foun...
Nexcess.net LLC2.4K views

Recently uploaded

PharoJS - Zürich Smalltalk Group Meetup November 2023 by
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023Noury Bouraqadi
132 views17 slides
Kyo - Functional Scala 2023.pdf by
Kyo - Functional Scala 2023.pdfKyo - Functional Scala 2023.pdf
Kyo - Functional Scala 2023.pdfFlavio W. Brasil
400 views92 slides
Powerful Google developer tools for immediate impact! (2023-24) by
Powerful Google developer tools for immediate impact! (2023-24)Powerful Google developer tools for immediate impact! (2023-24)
Powerful Google developer tools for immediate impact! (2023-24)wesley chun
10 views38 slides
HTTP headers that make your website go faster - devs.gent November 2023 by
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023Thijs Feryn
22 views151 slides
Data Integrity for Banking and Financial Services by
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial ServicesPrecisely
25 views26 slides
Democratising digital commerce in India-Report by
Democratising digital commerce in India-ReportDemocratising digital commerce in India-Report
Democratising digital commerce in India-ReportKapil Khandelwal (KK)
18 views161 slides

Recently uploaded(20)

PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi132 views
Powerful Google developer tools for immediate impact! (2023-24) by wesley chun
Powerful Google developer tools for immediate impact! (2023-24)Powerful Google developer tools for immediate impact! (2023-24)
Powerful Google developer tools for immediate impact! (2023-24)
wesley chun10 views
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn22 views
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely25 views
Future of AR - Facebook Presentation by ssuserb54b561
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
ssuserb54b56115 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays17 views
Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
Serverless computing with Google Cloud (2023-24) by wesley chun
Serverless computing with Google Cloud (2023-24)Serverless computing with Google Cloud (2023-24)
Serverless computing with Google Cloud (2023-24)
wesley chun11 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software280 views

The Importance of Site Performance and Simple Steps to Achieve It

  • 1. MagentoLive UK 2013 The Importance of Site Performance and Simple Steps to Achieve It CHRIS WELLS – CEO – NEXCESS.NET LLC
  • 2. The Ambassador Bridge (USA/Canada) • Completed 1929 (Longest suspension bridge worldwide at time) • Busiest international trade crossing in North America • 25% of all US/Canadian merchandise trade • Drive south to go north?
  • 3. The Ambassador Bridge (USA/Canada) Detroit, MI USA Windsor, Ontario Canada The DetroitWindsor tunnel is cool too!
  • 4. Today’s Topics • • • • • Why is site performance important? What should our definition of performance be? Evidence and anecdotes Where do I start? Simple steps to achieving speed • Infrastructure • Magento • Beyond • Side-effects of increasing site performance
  • 5. Perspective – Where This is All Coming From • • • • • Nexcess is a 13 year old web infrastructure company Magento Platinum Hosting Partner Wholly owned data centers in the U.S. Partner data centers in the U.K. and Australia We host: • Over 10,000 CE installs (more than any other provider) • Over 1,000 EE installs (2nd in the industry) • Infrastructure view of Magento and the Magento stack • Today’s talk will focus on the view from our vantage point
  • 6. Why Care About Performance?
  • 7. Site Performance Directly Affects Your Bottom Line!
  • 8. Anecdotal Evidence • • • • Just think about it... slow….means….frustrating…. Metrics aside - you know slow when you see it! There’s rarely an upside to a site loading slow • Unless it’s your competitors  • Mobile adds a new variable (3G is essentially dial-up) • An un-optimized Magento Enterprise is slow out-of-the-box • ~3 second load times are typical before adding extensions
  • 9. Performance Wins – Part 1 • Firefox Browser • Slow page loaders downloaded less often • 1 second of increased performance increased downloads by 2.7% • Shopzilla.com • Had page load times of ~7 seconds • • • • 5 second decrease in page load time (7s  2s) 25% increase in page views 7 – 12% increase in revenue 50% decrease in physical hardware
  • 10. Performance Wins – Part 2 • Google • Tested a longer page 1 (30 entries instead of 10) and found a 25% drop-off in clicks • The addition of a shopping cart icon: • Added 2% delay in loading • Resulted in 2% less searches/user • Wal-Mart noted: • Every 1 second improvement equated to 2% increased CVR • Every 100 milliseconds improvement equated to 1% in incremental revenue
  • 11. What Should the Target Be – What’s Possible? • 1 second delay can equate to a 7% decrease in conversions • Imagine you gross $100,000 / day • +1 second of page-load time = $2,500,000 annual lost sales SO… • ~3-second page-load time (or faster) • 47% of users expect page load < 2 seconds • 40% of users abandon sites with a page load of > 3s • Mobile users are more patient (for now – don’t forget 3G)
  • 12. Where to Start? • Start simple – how does the site feel? • Gather metrics • Web Page Test (http://www.webpagetest.org/) • Google Analytics • Yahoo’s Yslow (browser plug-in) • New Relic & other paid tools • Tackle one issue at a time, test, repeat • Big gains are possible with targeted optimization • Remember Pareto’s Principal (the 80/20 rule)
  • 13. Performance Step #1 – Tune The Environment • Hardware and software choices matter! • Talk to your hosting provider and make sure they: • Configure the PHP interpreter correctly (this runs Magento) • Make sure they use a correctly configured PHP-FPM • Configure the database server correctly (typically MySQL) • Use Percona Server instead of MySQL • Make sure you use XtraDB as your table store • Implement the Magento best practices (at a minimum) • We cover all of this in detail in a free whitepaper (more later)
  • 14. Effect Of Database Software Selection MySQL tops out Percona Server hits~1200 t/sec at ~1800 t/sec
  • 15. Performance Step #2 – Tune Magento • Make full use of Magento’s built-in features! • The two-level cache • Use memcache as the ‘fast cache’ • Use Redis as the ‘slow cache’ • Session caching • Use memcache • The Magento full page cache (FPC) • Use memcache • HUGE performance gains instantly • 1.13 has smarter cache invalidation than prior versions
  • 16. Basic Benchmarking – Un-optimized Magento • TTFB (time to first byte) Not a great start… Ignore these for now. Remember - one thing at a time! We’re at about 3 seconds to start TTFB is pushing full second BUT… Repeat viewsaare not too shabby!
  • 17. The Magento Full Page Cache (Optimal Conditions) The cache takes a few minutes to build ~2 seconds without the FPC ~.5 seconds with the FPC!
  • 18. The Power of the FPC From “F” to “B” with a single config change And we’ve gained a full ½ second (was 2.8) RepeatTTFB isare served at just over ½ a second! (was ~1) pages only .36 seconds! (was .75)
  • 19. What Does This Really Look Like? FPC DISABLED FPC ENABLED
  • 20. Performance Step #3 – Speed Up the Edge • Host where your customers are • Put your site on the same continent as your audience (or closer) • Use a global content delivery network (CDN) • 75% of all e-commerce sites do not use a CDN • Turn on compression for JavaScript, CSS, HTML, images, etc • 22% of all e-commerce sites do not use compression • Turn on HTTP Keep-alives (keeps per-client connections open) • 13% of all e-commerce sites do not use the keep-alive setting • Beware of too many (or just plain bad) external resources (JavaScript, CSS, images, ads etc)
  • 21. Edge Tuning CDN configured Simple server-side Image compression is changes make these by your best done perform design team We’ve gained another full second (was 2.4) TTFB largely unaffected (as expected) here (was 1.6) The second was largely gained
  • 22. Performance Step #4 • Make use of good 3rd party extensions • Performance isn’t always simple  • Nexcess/Turpentine can be part of the answer • Beware of bad 3rd party extensions • May induce slowness (complex or non-optimal queries) • May include slow off-server content • Test all extensions for performance before using in production! • Strike a usability balance between performance and features
  • 23. Turpentine’s Effect On Response Time Turpentine can cut this down quite a bit! Remember – FPC yields ~.5 second page load times (under optimal conditions)
  • 24. Pushing It Further From “B” to “A” with a single free extension Down to almost 1 second! Our lowest TTFB yet! (was .38) Even with all optimizations ON there is still variance
  • 25. Performance Side Effects • Faster sites are stickier – Wikia.com’s re-architecting found: • ~15% exit rate for a 2 second page load • ~10% exit rate for a 1 second page load • Faster sites yield higher search engine placement • Google / Bing / Yahoo! use speed as a metric in their algorithms • You’re more ready for that viral video or the GMA effect • GMA = Good Morning America – a popular U.S. morning show • Faster doesn’t have to mean more expensive • Costs can often be lowered as a result of caching & optimization
  • 26. Caching Can Save Money – How? ~550 transactions/sec ~120 transactions/sec
  • 27. Don’t Forget • Performance is not a one-time activity (monitor often) • The 80/20 rule is a good guide • Make performance part of your design/development process • Choose extensions based on a performance SLA • Make sure your developers understand how to design/code for performance • All 3rd party extensions are not created equal! • Software/code optimization can only go so far – hardware can help • Dedicated admin, database and web servers may be needed
  • 28. Final Thoughts • Performance matters and ROI can be considerable • Slow = frustrating • The biggest sites on the Internet have seen measurable bottom-line gains when focusing on performance • Tune: • The environment (find the right Magento Hosting Partner) • Magento • The edge • 3rd party extensions • Many optimization techniques are easy/free
  • 29. More Information Our Magento Performance Whitepaper is available at: http://www.nexcess.net/magento-best-practices-whitepaper Our Turpentine extension is available at: http://www.nexcess.net/magento-turpentine-extension
  • 30. Thank you! Questions? Chris Wells – clwells@nexcess.net