SlideShare a Scribd company logo
Magento Imagine 2014: Barcamp PHP 5.4 Performance Benchmarking
Magento Imagine 2014: Barcamp PHP 5.4 Performance Benchmarking
Easy path to better
performance: up to 20%
increase with PHP 5.4
Evgeniy Kulish
Technical Solution Architect
(Magento ECG)
Reid Parham
Lead Systems Engineer
(Copious, Gold Magento Solution Partner )
Legal Disclaimer
Copyright © 2014 Magento, Inc. All Rights Reserved.
Magento®, eBay Enterprise™ and their respective logos are trademarks, service marks,
registered trademarks, or registered service marks of eBay, Inc. or its subsidiaries. Other
trademarks or service marks contained in this presentation are the property of the respective
companies with which they are associated.
This presentation is for informational and discussion purposes only and should not be construed
as a commitment of Magento, Inc. or GSI Commerce, Inc. d/b/a eBay Enterprise (“eBay
Enterprise”) or of any of their subsidiaries or affiliates. While we attempt to ensure the accuracy,
completeness and adequacy of this presentation, neither Magento, Inc., eBay Enterprise nor any
of their subsidiaries or affiliates are responsible for any errors or will be liable for the use of, or
reliance upon, this presentation or any of the information contained in it. Unauthorized use,
disclosure or dissemination of this information is expressly prohibited.
PHP 5.3 vs PHP 5.401
What’s wrong with PHP 5.3?
• End of Life
• “Old-school” language capabilities ☺
• Limited performance
Why PHP 5.4?
• Active support and development
• New language features
• Performance increase
• Optimized memory usage
• Magento officially supports PHP 5.4 for CE
1.6-1.8+ and EE 1.11-1.13+
Testing methodology02
Test Database
• 2,000,000 products
• 198 categories (depth of 5)
• 171 EAV attributes
• 100,001 customers
• 7 CMS blocks
• 9 CMS pages
• 1 tax rule
• 1 catalog rule
Cluster Configuration
Web Server
• CPU: 2 Intel Xeon x3460 2.80GHz
• RAM: 32GB
• OS: Ubuntu 12.04 LTS 64-bit
• Storage: HDD, no RAID
Cluster Configuration
Database Server
• CPUs: 4 Intel Xeon x5645 2.40GHz
• RAM: 32GB
• OS: Ubuntu 12.04 LTS 64-bit
• Storage: HDD, Raid10
Software
Magento
• Version: 1.13.1 with recommended patches
• All Enterprise Edition default features enabled
• Flat catalog enabled
• All caches enabled and Redis is used
• CSS and JS compiled
• Magento Cron set to 5 minutes intervals
Software
PHP
• 5.3.10-1ubuntu3.11 (20090626)
• 5.4.26-1+deb.sury.org~precise+1 (20100525)
• 5.5.11+dfsg-3+deb.sury.org~precise+ (20121113)
nginx
• version: 1.1.19
DB
• MariaDB 10.0.10 (flavour of MySQL)
Test tools and scenarios
Tools:
• Siege 2.70
• ApacheBench, Version 2.3
• cURL 7.22.0
• GNU bash 4.2.25
Scenarios:
• 5 products per cart
• No third-party integrations
• HTTPS disabled
Results03
Home Page Response Time
Home Page Throughput
+14%
+20%
+18%
18930
rpm
Category Page Response
-13%
-17%
-15%
Category Page Throughput
+15%
+20%
+18%
Product Page Response Time
-10%
-14%
-12%
2939 ms
Product Page Throughput
+11%
+16%
+14%
Product Page (Promo) Response Time
-13%
-18%
-15%
Product Page (Promo) Throughput
+15%
+23%
+18%
Orders Throughput (100 users)
+19%
+27% +26%
Orders Scaling Profile
Risks and Tips04
Risks
• Custom code and extensions compatibility
• APC is not always stable on PHP 5.4
• PHP 5.4 is not widely supported by hosting
providers
Tips
• Magento PHP 5.4 Patch: http://www.
magentocommerce.com/knowledge-base/entry/php54-patch
• Official PHP migration guides
• PHP Compatibility: https://github.
com/wimg/PHPCompatibility
• Zend OPcache instead of APC
Conclusion05
Hardware utilization
PHP 5.4/5.5
• Web server:
▪ +25% Net Tx
▪ +25% disk I/O
▪ -16% CPU utilization
▪ -12% RAM consumption
• DB server:
▪ +20% NetTx
▪ +30% disk I/O
• Redis/MySQL: difference can be negligible
Pros
• PHP 5.4 is free ☺
• PHP 5.4 is stable
• Visible performance increase
▪ Up to 20% general performance improvement
▪ Up to 25% orders throughput increase
• Easy to upgrade infrastructure
• Magento officially supports PHP 5.4 for the last
three major releases
Cons
• Efforts to make the custom code compatible
• Support by extensions developers
Q&A
Evgeniy Kulish
email ekulish@ebay.com
Reid Parham
email reid@copiousinc.com
Magento Imagine 2014: Barcamp PHP 5.4 Performance Benchmarking

More Related Content

PPTX
WordPress Security Tips
PDF
10 tips to improve Joomla’s usability
PDF
WordPress Hosting Survival Guide
PPTX
WordPress by a Dummy
ODP
Security talk: Fortifying your Joomla! website
PDF
VIDEO SEO AND HOW TO USE THE NEW VIEWBIX SEO FEATURES
PPTX
A word press site even your mother can use
WordPress Security Tips
10 tips to improve Joomla’s usability
WordPress Hosting Survival Guide
WordPress by a Dummy
Security talk: Fortifying your Joomla! website
VIDEO SEO AND HOW TO USE THE NEW VIEWBIX SEO FEATURES
A word press site even your mother can use

Similar to Magento Imagine 2014: Barcamp PHP 5.4 Performance Benchmarking (20)

PPTX
Nexcess Magento Imagine 2014 Performance Breakout
PPTX
Magento Live UK Nexcess Performance & Security Session
PPTX
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...
PPTX
Magento for-performance- v01
PDF
Optimizing Magento for Peak Performance
PPTX
Improving Performance on Magento 1*
PPTX
Zendcon scaling magento
PPTX
Magento performance
PDF
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
PDF
Optimizing Magento Performance with Zend Server
PDF
Magento Performance
PPT
Magento Community & Enterprise: De voordelen voor jouw webshop
PPTX
Magento performances 2015 best practices
PDF
Introduction to Magento Optimization
PPTX
Openxcell conducts a successful webinar on Magento Optimization
PDF
Oleh Kobchenko - Configure Magento 2 to get maximum performance
PDF
Magento scalability from the trenches (Meet Magento Sweden 2016)
PPTX
Magento presentatie
PPTX
FAS: 29 juni - Magento Enterprise
PPTX
OpenXcell - Magento Optimization Webinar 2013
Nexcess Magento Imagine 2014 Performance Breakout
Magento Live UK Nexcess Performance & Security Session
MagentoLive Australia 2014 - The Importance of Performance & Security and Sim...
Magento for-performance- v01
Optimizing Magento for Peak Performance
Improving Performance on Magento 1*
Zendcon scaling magento
Magento performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Optimizing Magento Performance with Zend Server
Magento Performance
Magento Community & Enterprise: De voordelen voor jouw webshop
Magento performances 2015 best practices
Introduction to Magento Optimization
Openxcell conducts a successful webinar on Magento Optimization
Oleh Kobchenko - Configure Magento 2 to get maximum performance
Magento scalability from the trenches (Meet Magento Sweden 2016)
Magento presentatie
FAS: 29 juni - Magento Enterprise
OpenXcell - Magento Optimization Webinar 2013
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Tartificialntelligence_presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
A Presentation on Artificial Intelligence
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Group 1 Presentation -Planning and Decision Making .pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Tartificialntelligence_presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
Programs and apps: productivity, graphics, security and other tools
A Presentation on Artificial Intelligence
MIND Revenue Release Quarter 2 2025 Press Release
NewMind AI Weekly Chronicles - August'25-Week II
Assigned Numbers - 2025 - Bluetooth® Document
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Ad

Magento Imagine 2014: Barcamp PHP 5.4 Performance Benchmarking

  • 3. Easy path to better performance: up to 20% increase with PHP 5.4
  • 4. Evgeniy Kulish Technical Solution Architect (Magento ECG) Reid Parham Lead Systems Engineer (Copious, Gold Magento Solution Partner )
  • 5. Legal Disclaimer Copyright © 2014 Magento, Inc. All Rights Reserved. Magento®, eBay Enterprise™ and their respective logos are trademarks, service marks, registered trademarks, or registered service marks of eBay, Inc. or its subsidiaries. Other trademarks or service marks contained in this presentation are the property of the respective companies with which they are associated. This presentation is for informational and discussion purposes only and should not be construed as a commitment of Magento, Inc. or GSI Commerce, Inc. d/b/a eBay Enterprise (“eBay Enterprise”) or of any of their subsidiaries or affiliates. While we attempt to ensure the accuracy, completeness and adequacy of this presentation, neither Magento, Inc., eBay Enterprise nor any of their subsidiaries or affiliates are responsible for any errors or will be liable for the use of, or reliance upon, this presentation or any of the information contained in it. Unauthorized use, disclosure or dissemination of this information is expressly prohibited.
  • 6. PHP 5.3 vs PHP 5.401
  • 7. What’s wrong with PHP 5.3? • End of Life • “Old-school” language capabilities ☺ • Limited performance
  • 8. Why PHP 5.4? • Active support and development • New language features • Performance increase • Optimized memory usage • Magento officially supports PHP 5.4 for CE 1.6-1.8+ and EE 1.11-1.13+
  • 10. Test Database • 2,000,000 products • 198 categories (depth of 5) • 171 EAV attributes • 100,001 customers • 7 CMS blocks • 9 CMS pages • 1 tax rule • 1 catalog rule
  • 11. Cluster Configuration Web Server • CPU: 2 Intel Xeon x3460 2.80GHz • RAM: 32GB • OS: Ubuntu 12.04 LTS 64-bit • Storage: HDD, no RAID
  • 12. Cluster Configuration Database Server • CPUs: 4 Intel Xeon x5645 2.40GHz • RAM: 32GB • OS: Ubuntu 12.04 LTS 64-bit • Storage: HDD, Raid10
  • 13. Software Magento • Version: 1.13.1 with recommended patches • All Enterprise Edition default features enabled • Flat catalog enabled • All caches enabled and Redis is used • CSS and JS compiled • Magento Cron set to 5 minutes intervals
  • 14. Software PHP • 5.3.10-1ubuntu3.11 (20090626) • 5.4.26-1+deb.sury.org~precise+1 (20100525) • 5.5.11+dfsg-3+deb.sury.org~precise+ (20121113) nginx • version: 1.1.19 DB • MariaDB 10.0.10 (flavour of MySQL)
  • 15. Test tools and scenarios Tools: • Siege 2.70 • ApacheBench, Version 2.3 • cURL 7.22.0 • GNU bash 4.2.25 Scenarios: • 5 products per cart • No third-party integrations • HTTPS disabled
  • 21. Product Page Response Time -10% -14% -12% 2939 ms
  • 23. Product Page (Promo) Response Time -13% -18% -15%
  • 24. Product Page (Promo) Throughput +15% +23% +18%
  • 25. Orders Throughput (100 users) +19% +27% +26%
  • 28. Risks • Custom code and extensions compatibility • APC is not always stable on PHP 5.4 • PHP 5.4 is not widely supported by hosting providers
  • 29. Tips • Magento PHP 5.4 Patch: http://www. magentocommerce.com/knowledge-base/entry/php54-patch • Official PHP migration guides • PHP Compatibility: https://github. com/wimg/PHPCompatibility • Zend OPcache instead of APC
  • 31. Hardware utilization PHP 5.4/5.5 • Web server: ▪ +25% Net Tx ▪ +25% disk I/O ▪ -16% CPU utilization ▪ -12% RAM consumption • DB server: ▪ +20% NetTx ▪ +30% disk I/O • Redis/MySQL: difference can be negligible
  • 32. Pros • PHP 5.4 is free ☺ • PHP 5.4 is stable • Visible performance increase ▪ Up to 20% general performance improvement ▪ Up to 25% orders throughput increase • Easy to upgrade infrastructure • Magento officially supports PHP 5.4 for the last three major releases
  • 33. Cons • Efforts to make the custom code compatible • Support by extensions developers
  • 34. Q&A Evgeniy Kulish email ekulish@ebay.com Reid Parham email reid@copiousinc.com