http://www.find-job.net/startup/12-test-tools
JCrawler
Apache jmeter
『スレッドグループ』とは、ひとつのテストケースを構成するテストの集合
「スレッド数」は、一回のテストケースで生成されるスレッドの数
「Ramp-Up期間(秒)」は、何秒間でそれら全スレッドを生成するかを決定します
「スレッド数」を100、「Ramp-Up期間(秒)」を10に設定すると、1秒間に10回のテストケースが実行される
「Ramp-Up期間(秒)」を0に設定すると、JMeterは全てのテストケースを同時に生成
テストの総回数は「スレッド数」×「ループ回数」、
1秒あたりのテスト回数は「テストの総回数」÷「Ramp-Up期間(秒)」
【使い方】
http://d.hatena.ne.jp/language_and_engineering/20081014/1223905380
【体系】
http://www.techscore.com/tech/Java/ApacheJakarta/JMeter/6/
LOAD IMPACT
http://loadimpact.com/test/view/1486496
abコマンド
root@hostname:/home/shimizu# ab -n 1000 -c 100 http://akatuki1.azurewebsites.net/ # -n:総リクエスト数 -c:同時接続数
apachetopコマンド
root@hostname:/home/shimizu# aptitude install apachetop root@hostname:/home/shimizu# apachetop last hit: 02:48:57 atop runtime: 0 days, 00:00:10 02:49:01 All: 2 reqs ( 0.5/sec) 19.4K ( 4954.2B/sec) 9908.5B/req 2xx: 2 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%) R ( 10s): 2 reqs ( 0.2/sec) 19.4K ( 1981.7B/sec) 9908.5B/req 2xx: 2 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%) REQS REQ/S KB KB/S URL 1 0.25 19.1 4.8*/ 1 0.25 0.2 0.1 /favicon.ico
httperfコマンド
ヒューレット・パッカード研究所で開発された
メリットは毎秒のリクエスト数を指定できるところ
root@hostname:/home/shimizu# aptitude install httperf ### --rate:1秒間に生成するコネクション数 ### --num-conn:総コネクション数。コネクションがこの値になるとベンチマークは終了する ### --num-call:1コネクションあたりの、リクエスト数 ### rate*num-call:1秒間に発生するリクエスト数 ### num-conn*num-call:総リクエスト数 root@hostname:/home/shimizu# httperf --server tech.akat.info --port 80 --uri /index.html --rate 30 --num-conn 300 --num-call 1 --timeout 5 httperf --timeout=5 --client=0/1 --server=tech.akat.info --port=80 --uri=/index.html --rate=30 --send-buffer=4096 --recv-buffer=16384 --num-conns=300 --num-calls=1 httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE ]Maximum connect burst length: 1 Total: connections 300 requests 300 replies 300 test-duration 9.989 s Connection rate: 30.0 conn/s (33.3 ms/conn, <=1 concurrent connections) Connection time [ms]: min 20.9 avg 24.8 max 31.3 median 24.5 stddev 2.0 Connection time [ms]: connect 12.2 Connection length [replies/conn]: 1.000 Request rate: 30.0 req/s (33.3 ms/req) Request size [B]: 77.0 Reply rate [replies/s]: min 30.0 avg 30.0 max 30.0 stddev 0.0 (1 samples) Reply time [ms]: response 12.5 transfer 0.0 Reply size [B]: header 178.0 content 162.0 footer 2.0 (total 342.0) Reply status: 1xx=0 2xx=0 3xx=0 4xx=300 5xx=0 CPU time [s]: user 1.60 system 8.39 (user 16.0% system 84.0% total 100.0%) Net I/O: 12.2 KB/s (0.1*10^6 bps) Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0 Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
参考URL
httperfによるWebサーバのベンチマーク
http://memo.majide.com/index.php?httperf%A4%CB%A4%E8%A4%EBWeb%A5%B5%A1%BC%A5%D0%A4%CE%A5%D9%A5%F3%A5%C1%A5%DE%A1%BC%A5%AF