* mod_perlの効果を測定する [#g01a72aa]
#setlinebreak(on);

【負荷テスト概要】
 
 以下の2つの負荷テストを行う。
 
 ・abを利用した簡単な負荷テスト(ストレステスト)
 
 ・JMETERを使用したシナリオテストを兼ねた負荷テスト
 
 また、それぞれのテスト時に、サーバ側のCPU、メモリの使用状況も集計(vmstat、top、free等で)する。
 
 
【abを利用した簡単な負荷テスト】

 ◆テスト内容
 
  abを利用して以下の3つのURLにアクセスし、レスポンスを計測する。

  /cgi-bin/file_write.cgi
  /cgi-perl-run/file_write.cgi
  /cgi-registry/file_write.cgi

  処理内容は モジュールを require して呼ぶだけの単純なもの。
  ※今回は、PerlRunの性能を見たいので、とりあえずrequireだけしてみたが、
   時間があれば、も少しマシなものを作ってみたい。
 
#html(<div style="background:black;color:white;padding:4px;">) 
C:\tmp>ab -n 100 -c 10 http&#58;//192.168.24.101/cgi-bin/file_write.cgi
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http&#58;//www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http&#58;//www.apache.org/
 
Benchmarking 192.168.24.101 (be patient).....done
 
 
Server Software:        Apache
Server Hostname:        192.168.24.101
Server Port:            80
 
Document Path:          /cgi-bin/file_write.cgi
Document Length:        128 bytes
 
Concurrency Level:      10
Time taken for tests:   15.937500 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      26222 bytes
HTML transferred:       12800 bytes
Requests per second:    6.27 [#/sec] (mean)
Time per request:       1593.750 [ms] (mean)
Time per request:       159.375 [ms] (mean, across all concurrent requests)
Transfer rate:          1.57 [Kbytes/sec] received
 
Connection Times (ms)
&nbsp;             min  mean[+/-sd] median   max
Connect:       62  157  39.4    156     281
Processing:    47 1394 316.3   1453    1906
Waiting:       46  790 440.7    765    1796
Total:        203 1551 328.9   1640    2078
 
Percentage of the requests served within a certain time (ms)
&nbsp; 50%   1640
&nbsp; 66%   1671
&nbsp; 75%   1703
&nbsp; 80%   1718
&nbsp; 90%   1828
&nbsp; 95%   1953
&nbsp; 98%   2000
&nbsp; 99%   2078
&nbsp;100%   2078 (longest request)
 
C:\tmp>ab -n 100 -c 10 http&#58;//192.168.24.101/cgi-perl-run/file_write.cgi
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http&#58;//www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http&#58;//www.apache.org/
 
Benchmarking 192.168.24.101 (be patient).....done
 
 
Server Software:        Apache
Server Hostname:        192.168.24.101
Server Port:            80
 
Document Path:          /cgi-perl-run/file_write.cgi
Document Length:        128 bytes
 
Concurrency Level:      10
Time taken for tests:   15.593750 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      24500 bytes
HTML transferred:       12800 bytes
Requests per second:    6.41 [#/sec] (mean)
Time per request:       1559.375 [ms] (mean)
Time per request:       155.938 [ms] (mean, across all concurrent requests)
Transfer rate:          1.47 [Kbytes/sec] received
 
Connection Times (ms)
&nbsp;             min  mean[+/-sd] median   max
Connect:       62  154  32.6    156     234
Processing:    31 1366 286.0   1437    1547
Waiting:       31  810 406.8    796    1546
Total:        265 1521 289.7   1593    1718
 
Percentage of the requests served within a certain time (ms)
&nbsp; 50%   1593
&nbsp; 66%   1640
&nbsp; 75%   1671
&nbsp; 80%   1671
&nbsp; 90%   1687
&nbsp; 95%   1703
&nbsp; 98%   1703
&nbsp; 99%   1718
&nbsp;100%   1718 (longest request)
 
C:\tmp>ab -n 100 -c 10 http&#58;//192.168.24.101/cgi-registry/file_write.cgi
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http&#58;//www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http&#58;//www.apache.org/
 
Benchmarking 192.168.24.101 (be patient).....done
 
 
Server Software:        Apache
Server Hostname:        192.168.24.101
Server Port:            80
 
Document Path:          /cgi-registry/file_write.cgi
Document Length:        128 bytes
 
Concurrency Level:      10
Time taken for tests:   13.984375 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      24500 bytes
HTML transferred:       12800 bytes
Requests per second:    7.15 [#/sec] (mean)
Time per request:       1398.438 [ms] (mean)
Time per request:       139.844 [ms] (mean, across all concurrent requests)
Transfer rate:          1.64 [Kbytes/sec] received
 
Connection Times (ms)
&nbsp;             min  mean[+/-sd] median   max
Connect:       78  137  26.8    140     218
Processing:    16 1223 264.2   1312    1422
Waiting:       15  693 384.8    703    1390
Total:        156 1360 273.0   1453    1578
 
Percentage of the requests served within a certain time (ms)
&nbsp; 50%   1453
&nbsp; 66%   1484
&nbsp; 75%   1500
&nbsp; 80%   1515
&nbsp; 90%   1531
&nbsp; 95%   1562
&nbsp; 98%   1578
&nbsp; 99%   1578
&nbsp;100%   1578 (longest request)
#html(</div>) 

後は後日。。


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS