The
Zend Optimizer was recommened to me by someone I know and I finally got around to installing it today, as soon as I had I knew I should have installed it sooner as the page load speeds were quicker, I mean WOW-quicker!!
Now the site actually feels faster to me I wondered if there was something I could do to make the pages smaller and make it load even faster still.
It was time to revisit
zlib compression to see if that would help make a difference, I know the Zend Optimiser made a difference but now I want to be able to measure the differences Zlib will make.
To start i load our
index page and check the page size which without compression comes in at 20.97 kb / 21,743 bytes
Now I add the following to our .htaccess:
## enable zlib compression
php_value zlib.output_compression_level 1
Level 1 is the lowest compression, 9 is the most. The higher the compression the more the server will have to work, the harder the server works the slower it becomes so we're playing a balancing game here.
The Scores:
None - 20.97 kb / 21,743 bytes
Level 1 - 5.83 kb / 5,969 bytes
Level 2 - 5.71 kb / 5,843 bytes
Level 3 - 5.61 kb / 4,747 bytes
Level 4 - 5.34 kb / 5,465 bytes
Level 5 - 5.24 kb / 5,367 bytes
Level 6 - 5.20 kb / 5,326 bytes
Level 7 - 5.20 kb / 5,325 bytes
Level 8 - 5.19 kb / 5,316 bytes
Level 9 - 5.19 kb / 5,316 bytes
WOW
Level 1 is by far the most efficient in this test.
With the tiny differences in file sizes between level 1 and level 9 it's not worth the server load to go any higher than 1 but the difference between nothing at all and level 1 is stunning.