古い記事
ランダムジャンプ
新しい記事

動 vs 静

2003-09-10-3
Web サーバのパフォーマンスの調査。apache に標準添付の ab - Apache
Bench で、動的生成ページ (Hiki, Ruby 1.8.0) と 静的ページ
(index.html) とで転送速度を比較してみた。
<http://www.atmarkit.co.jp/flinux/rensai/apache15/apache15b.html>
3 つのリクエストを同時に 5 回投げて測定。結果は、二桁違う。条件
変えれば違ってくるだろうけど、差の桁にびっくり。

測定 (1) - nais.to
% ab -n 5 -c 3 http://nais.to/hiki/
Transfer rate: 11.03 [Kbytes/sec] received
% ab -n 5 -c 3 http://nais.to/~yto/
Transfer rate: 1142.30 [Kbytes/sec] received
(抜粋)
測定 (2) - 別のサーバ
% /usr/sbin/ab -n 5 -c 3 http://192.168.0.3/hiki/
Transfer rate: 4.76 [Kbytes/sec] received
% /usr/sbin/ab -n 5 -c 3 http://192.168.0.3/~yto/
Transfer rate: 1743.50 [Kbytes/sec] received
(抜粋)
あちこちの動的生成ページを測定してみたくなったが、いやな攻撃っぽい
のでやめておいた。