[IT] mod_pagespeed (Apache 高速化モジュール)を試した
元記事はこちら → http://sourceforge.jp/magazine/10/11/05/0646239
■ さっそく導入してApache Bench で評価した。(導入&評価に要した時間3分、httpd restart 含む。memstat、top、iostat などは全然評価していない)
===
導入前のベンチマーク
c:Apache2.2bin>ab -n 100 -c 10 -w http://stg2.fxfrog.com/ > bench1.html
↓
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
..done
Server Software: | Apache | ||
---|---|---|---|
Server Hostname: | stg2.fxfrog.com | ||
Server Port: | 80 | ||
Document Path: | / | ||
Document Length: | 19 bytes | ||
Concurrency Level: | 10 | ||
Time taken for tests: | 22.870 seconds | ||
Complete requests: | 100 | ||
Failed requests: | 0 | ||
Total transferred: | 28500 bytes | ||
HTML transferred: | 1900 bytes | ||
Requests per second: | 4372.53 | ||
Transfer rate: | 1246.17 kb/s received | ||
Connnection Times (ms) | |||
min | avg | max | |
Connect: | 140 | 226 | 340 |
Processing: | 260 | 1923 | 2660 |
Total: | 400 | 2149 | 3000 |
===
導入後のベンチマーク
(改善個所は青字、悪化個所は赤字にした)
c:Apache2.2bin>ab -n 100 -c 10 -w http://stg2.fxfrog.com/ > bench11.html
↓
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
..done
Server Software: | Apache | ||
---|---|---|---|
Server Hostname: | stg2.fxfrog.com | ||
Server Port: | 80 | ||
Document Path: | / | ||
Document Length: | 19 bytes | ||
Concurrency Level: | 10 | ||
Time taken for tests: | 25.530 seconds | ||
Complete requests: | 100 | ||
Failed requests: | 0 | ||
Total transferred: | 28500 bytes | ||
HTML transferred: | 1900 bytes | ||
Requests per second: | 3916.95 | ||
Transfer rate: | 1116.33 kb/s received | ||
Connnection Times (ms) | |||
min | avg | max | |
Connect: | 120 | 253 | 410 |
Processing: | 290 | 2149 | 2760 |
Total: | 410 | 2402 | 3170 |
===
■結論
応答時間は改善したが、処理時間は悪化した。
ちなみに、リバースキャッシュを外しての計測です。普段はリバース経由で応答させています。理由は、分散配信検証をしているから。ヲタクの域を超えてます、多分、ええ、、収益を得ているから。
以上