Contact Lifestream



Testing Gzip compression

I’ve prepared a little test for evaluation purposes. I took the first 21 cantos from the etext version of Dantes Inferno and produced two identical php files. One with compression and one without. The file size is 140k.

[link removed]

[link removed]

Notice any improvements? No? Well, using a 33.6 modem I noticed that the gziped page loaded faster, but not a lot. The microtimer shows a drastic difference though. I’m not sure what to make of it. I guess that not compressing the page clogs up the php parser since there are “includes” all through the document. It would be interesting to measure this effect on a local server and see exactly how much CPU and bandwidth the two versions consume. Suffice to say I notice an improvement and I’m satisfied with that.
The question is if I should expand this to the entire site. I need to do some crash tests with the code first. Some people have reported malfunction .. but, what the hell .. you can’t please everyone. I don’t feel like uploading the entire hierarchy again today so .. maybe some time next week.

More info on gzip compression with web documents!