mod_deflate (Apache) v.s. GZip compression of Wordpress


小測了一下使用 Apachemod_deflateWordpress 的 gzip compression 功能之後的傳輸量.

  • 不使用任何壓縮: 430KB
  • 僅使用 Wordpress gzip: 323KB
  • 僅使用 Apache 的 deflate 模組: 247KB
  • 同時使用 deflate 以及 gzip: 247KB

至於時間的部份, 差異倒不是很大, 大約都是在 10-20 秒左右.

和預期的結果滿接近的, 其實也在預料之中, Wordpress 的 gzip 只能壓到 .php, 其他的就沒辦法了. 而現在用 K2, 包了一大堆的 JS 和 CSS...

另外就是, Real-Time Compression Check 測出來的數據怪怪的, 似乎只有 HTML 而已? 我是用 Firebug 來測試時間和檔案大小, Web Page Analyzer 測出來的檔案大小和 Firebug 很接近, 只是 Web Page Analyzer 有點慢. 有使用 Firefox 的人建議使用 Firebug, 很多很好用的功能.

延伸閱讀:
啟用 Apache 壓縮功能 (mod_deflate module)


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You may link to Gallery2 items on this site using a special syntax.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • You may insert videos with [video:URL]

More information about formatting options