2010年1月20日水曜日

1.Apacheのキャッシュ機能を有効にした場合

設定は、ここを参照

1回目

[root@localhost ~]# ab -n 100 -c 10 http://xxxx-net.jp/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking xxxx-net.jp (be patient).....done

Server Software:        Apache
Server Hostname:        xxxx-net.jp
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      10
Time taken for tests:   21.236325 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      36400 bytes
HTML transferred:       0 bytes
Requests per second:    4.71 [#/sec] (mean)
Time per request:       2123.632 [ms] (mean)
Time per request:       212.363 [ms] (mean, across all concurrent requests)
Transfer rate:          1.65 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       53  502 1466.4     66    8965
Processing:   294 1590 1904.3   1167   11519
Waiting:      290 1589 1903.3   1167   11518
Total:        398 2093 2385.1   1302   11602

Percentage of the requests served within a certain time (ms)
  50%   1302
  66%   1399
  75%   1762
  80%   2037
  90%   4711
  95%   9868
  98%  10700
  99%  11602
 100%  11602 (longest request)
2回目
[root@localhost ~]# ab -n 100 -c 10 http://xxxx-net.jp/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking xxxx-net.jp (be patient).....done

Server Software:        Apache
Server Hostname:        xxxx-net.jp
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      10
Time taken for tests:   24.28028 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      36400 bytes
HTML transferred:       0 bytes
Requests per second:    4.16 [#/sec] (mean)
Time per request:       2402.803 [ms] (mean)
Time per request:       240.280 [ms] (mean, across all concurrent requests)
Transfer rate:          1.46 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       52  539 1089.9     68    3076
Processing:   285 1720 3026.7    919   15435
Waiting:      285 1718 3026.6    919   15434
Total:        342 2259 3539.5   1159   18424

Percentage of the requests served within a certain time (ms)
  50%   1159
  66%   1520
  75%   1882
  80%   3379
  90%   4179
  95%  14152
  98%  18274
  99%  18424
 100%  18424 (longest request)
3回目
[root@localhost ~]# ab -n 100 -c 10 http://xxxx-net.jp/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking xxxx-net.jp (be patient).....done

Server Software:        Apache
Server Hostname:        xxxx-net.jp
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      10
Time taken for tests:   21.620780 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      36400 bytes
HTML transferred:       0 bytes
Requests per second:    4.63 [#/sec] (mean)
Time per request:       2162.078 [ms] (mean)
Time per request:       216.208 [ms] (mean, across all concurrent requests)
Transfer rate:          1.62 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       51  776 1939.9     64    9003
Processing:   287 1269 1013.0   1029    5055
Waiting:      284 1268 1013.1   1029    5055
Total:        341 2046 2229.2   1241   10864

Percentage of the requests served within a certain time (ms)
  50%   1241
  66%   1650
  75%   3247
  80%   3409
  90%   4477
  95%   5722
  98%  10700
  99%  10864
 100%  10864 (longest request)

若干速くなったかな?のレベル!