This document discusses performance testing done between PHP 5.3 and PHP 5.4/5.5 on a Magento installation. The tests showed up to 20% better response times and throughput when using PHP 5.4/5.5 compared to 5.3. Specifically, category pages saw a 15% increase in throughput and product pages saw a 14% increase. Orders throughput also increased up to 27% with PHP 5.4. While compatibility testing is required, upgrading to PHP 5.4 can provide visible performance gains with Magento according to these results.
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.
7. Whats 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+
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
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