The Battlefield:
Magento ver. 2.1.0 CE with demo data
The General:
Apache/2.4.23
The Soldiers:
PHP 5.6.24 Suphp
PHP 5.6.24 DSO with Zend Opcaching
VS!
PHP 7
The Battle:
PHP 5.6.24 Suphp:
Lifting the server siege…
Transactions: 27309 hits
Availability: 99.95 %
Elapsed time: 59.17 secs
Data transferred: 1079.73 MB
Response time: 0.05 secs
Transaction rate: 461.53 trans/sec
Throughput: 18.25 MB/sec
Concurrency: 24.87
Successful transactions: 27309
Failed transactions: 14
Longest transaction: 3.91
Shortest transaction: 0.00
GTmetrix.com:
PageSpeed Score
(36%)
YSlow Score
(75%)
Page Load Time
3.7s
Total Page Size
2.34MB
Requests
103
PHP 5.6.24 DSO with Zend Opcache
Lifting the server siege…
Transactions: 53706 hits
Availability: 100.00 %
Elapsed time: 59.37 secs
Data transferred: 2120.49 MB
Response time: 0.03 secs
Transaction rate: 904.60 trans/sec
Throughput: 35.72 MB/sec
Concurrency: 24.81
Successful transactions: 53706
Failed transactions: 0
Longest transaction: 0.83
Shortest transaction: 0.00
GTmetrix.com:
PageSpeed Score
(36%)
YSlow Score
(75%)
Page Load Time
2.8s
Total Page Size
2.34MB
Requests
103
PHP 7 Suphp:
Lifting the server siege…
Transactions: 66729 hits
Availability: 100.00 %
Elapsed time: 59.71 secs
Data transferred: 2634.50 MB
Response time: 0.02 secs
Transaction rate: 1117.55 trans/sec
Throughput: 44.12 MB/sec
Concurrency: 24.75
Successful transactions: 66729
Failed transactions: 0
Longest transaction: 0.85
Shortest transaction: 0.00
GTmetrix.com
PageSpeed Score
(36%)
YSlow Score
(75%)
Page Load Time
2.8s
Total Page Size
2.34MB
Requests
103
PHP 7 DSO with Zend Opcache:
Lifting the server siege…
Transactions: 117768 hits
Availability: 100.00 %
Elapsed time: 59.61 secs
Data transferred: 4672.46 MB
Response time: 0.01 secs
Transaction rate: 1975.64 trans/sec
Throughput: 78.38 MB/sec
Concurrency: 24.64
Successful transactions: 117768
Failed transactions: 0
Longest transaction: 0.40
Shortest transaction: 0.00
Aftermath:
PHP 7 Victory Stats:
– Throughput: 142% increase
– Transactions: 144% increase
– Site load: 24% faster
Conclusion:
To say that I’m stunned is an understatement. I will continue testing variations of PHP 5.6.24 setup to see if I can get better numbers, but PHP 7 is absolutely a gamechanger! It’s over twice as fast!
This is actually neat. I worked a decent amount with Magento. I’d like to see this stack up on a HHVM stack as an ALT to PHP. HHVM speeds kill php but I’ve only seen it anecdotally.
The latest PHP 7 vs HHVM are pretty close and I don’t see a real strong case for HHVM imo