2009年4月20日月曜日

素直にab使いましょう

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク
abを試してみた。-cは2000とか指定できない。socket: Too many open files (24)とかいわれる。1プロセスで開けるファイル数の上限ですね。

[nori@asama]~/Desktop/work/srvtest% ab -n 10000 -c 1000 "http://image.backgammonbase.com/image?gnubgid=4HPwATDgc%2FABMA%3AMAAAAAAAAAAA&height=300&width=400&css=minimal&format=png"
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 image.backgammonbase.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests


Server Software: Apache/2.2.3
Server Hostname: image.backgammonbase.com
Server Port: 80

Document Path: /image?gnubgid=4HPwATDgc%2FABMA%3AMAAAAAAAAAAA&height=300&width=400&css=minimal&format=png
Document Length: 17877 bytes

Concurrency Level: 1000
Time taken for tests: 16.769288 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 183094715 bytes
HTML transferred: 179189661 bytes
Requests per second: 596.33 [#/sec] (mean)
Time per request: 1676.929 [ms] (mean)
Time per request: 1.677 [ms] (mean, across all concurrent requests)
Transfer rate: 10662.53 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 384 1444.2 15 9044
Processing: 16 527 1345.5 249 13746
Waiting: 2 483 1338.4 207 13641
Total: 36 911 2249.5 291 16760

Percentage of the requests served within a certain time (ms)
50% 291
66% 338
75% 359
80% 445
90% 1121
95% 3472
98% 10609
99% 10766
100% 16760 (longest request)


[nori@asama]~/Desktop/work/srvtest% ab -n 100000 -c 1000 "http://image.backgammonbase.com/image?gnubgid=4HPwATDgc%2FABMA%3AMAAAAAAAAAAA&height=300&width=400&css=minimal&format=png"
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 image.backgammonbase.com (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests


Server Software: Apache/2.2.3
Server Hostname: image.backgammonbase.com
Server Port: 80

Document Path: /image?gnubgid=4HPwATDgc%2FABMA%3AMAAAAAAAAAAA&height=300&width=400&css=minimal&format=png
Document Length: 8000 bytes

Concurrency Level: 1000
Time taken for tests: 153.415229 seconds
Complete requests: 100000
Failed requests: 93798
(Connect: 0, Length: 93798, Exceptions: 0)
Write errors: 0
Total transferred: 1762203438 bytes
HTML transferred: 1723165770 bytes
Requests per second: 651.83 [#/sec] (mean)
Time per request: 1534.152 [ms] (mean)
Time per request: 1.534 [ms] (mean, across all concurrent requests)
Transfer rate: 11217.28 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 394 2550.5 66 93080
Processing: 11 632 764.4 400 68442
Waiting: 2 516 762.5 280 68308
Total: 31 1027 2701.3 665 93725

Percentage of the requests served within a certain time (ms)
50% 665
66% 706
75% 719
80% 1246
90% 1276
95% 3391
98% 4271
99% 9680
100% 93725 (longest request)

0 件のコメント: