Mod_pagespeed and Magento

After spending a few hours last night trying to get some thing looking like a simple store on my Magento CE 1.7 but got no where, so I loaded up the sample data provided and adjusted some themes.

Going to use the siege testing methodology from these site and I’ll be adding some URLs from a script that scrapes links, so we have a list of pages and objects to siege.

I’ll also be using this site to give us a base “site score”.

Base setup, only APC enabled and 4 php processes:

Transactions:		          56 hits
Availability:		       96.55 %
Elapsed time:		       29.49 secs
Data transferred:	        0.36 MB
Response time:		       10.21 secs
Transaction rate:	        1.90 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       19.38
Successful transactions:          56
Failed transactions:	           2
Longest transaction:	       15.06
Shortest transaction:	        1.45

Lets take some file handling out of the equation with memcached.

Transactions:		          61 hits
Availability:		      100.00 %
Elapsed time:		       29.98 secs
Data transferred:	        0.39 MB
Response time:		        9.09 secs
Transaction rate:	        2.03 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       18.49
Successful transactions:          61
Failed transactions:	           0
Longest transaction:	       12.88
Shortest transaction:	        1.07

We do much better keeping the load down. That covers some very very basic config changes. Lets see what kind of “web score” we get:

Screen Shot 2013-07-12 at 6.55.40 PM

The default is pretty bad. Lets try the basic JS/CSS Combining in Magento:

Screen Shot 2013-07-12 at 7.26.25 PM

We did a little better but not much. Lets try mod_pagespeed with default filters (Note: I have mod_pagespeed set to use memcached):

Screen Shot 2013-07-12 at 7.33.28 PM

Wow, that is a vast improvement.  Enabled for some filters for my Magento vhost only (collapse_whitespace,defer_javascript,inline_preview_images):

Screen Shot 2013-07-12 at 8.02.52 PM

That is much better then when we started but how far can we go?

Added some more filters but score is not changing. Here is finally mod_pagespeed config I went with for this vhost:

ModPagespeedEnableFilters collapse_whitespace,defer_javascript,/

With a full browser cache, only 2 HTTP requests are made.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.