2010年1月20日水曜日

EC2の"us-east-1"と"us-west-1"をab(apache)で比較

スズキです。

一回、計測しておきたかったので... やっちゃいました。

対象は、EC2のus-east-1、us-east-1、そして、日本のサーバです。
計測したコンテンツは、Apacheをインストールした直後のデフォルトページで、
以下のコマンド(apacheのab)を利用しています。
$ ab -n 100 -c 10 http://xxx.xxx.xxx/

比較ポイントは下記のような感じでしょうか?

us-east-1 / us-west-1 / japan
--------
Requests per second [#/sec]:   14.73 /    22.76  /   91.19
Time per request [ms]      : 678.723 /  439.380  / 109.662
Transfer rate [Kbytes/sec] :   75.39 /   122.41  /  466.81

んー... 割合みて、

- "us-west-1"は"us-east-1"より1.6倍速い
- "japan"は"us-east-1"より6.2倍速い
- "japan"は"us-west-1"より4.0倍速い

って言っちゃっていいんでしょうか...

まあ、解釈はおいておいて...
以下に実際の、それぞれの出力結果をのせておきます。

▼ us-east-1

$ ab -n 100 -c 10 http://ec2-67-202-23-37.compute-1.amazonaws.com/

-------- Server Software: Apache/2.2.3 Server Hostname: ec2-67-202-23-37.compute-1.amazonaws.com Server Port: 80

Document Path: / Document Length: 5043 bytes

Concurrency Level: 10 Time taken for tests: 6.787 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Non-2xx responses: 100 Total transferred: 524000 bytes HTML transferred: 504300 bytes Requests per second: 14.73 [#/sec] (mean) Time per request: 678.723 [ms] (mean) Time per request: 67.872 [ms] (mean, across all concurrent requests) Transfer rate: 75.39 [Kbytes/sec] received

Connection Times (ms) min mean[+/-sd] median max Connect: 206 212 3.2 212 223 Processing: 417 440 61.6 430 846 Waiting: 208 225 61.2 214 628 Total: 622 652 62.0 643 1059

Percentage of the requests served within a certain time (ms) 50% 643 66% 645 75% 647 80% 648 90% 656 95% 662 98% 1054 99% 1059 100% 1059 (longest request)

▼ us-west-1

$ ab -n 100 -c 10 http://ec2-204-236-167-225.us-west-1.compute.amazonaws.com/

-------- Server Software: Apache/2.2.3 Server Hostname: ec2-204-236-167-225.us-west-1.compute.amazonaws.com Server Port: 80

Document Path: / Document Length: 5043 bytes

Concurrency Level: 10 Time taken for tests: 4.394 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Non-2xx responses: 107 Total transferred: 550754 bytes HTML transferred: 529675 bytes Requests per second: 22.76 [#/sec] (mean) Time per request: 439.380 [ms] (mean) Time per request: 43.938 [ms] (mean, across all concurrent requests) Transfer rate: 122.41 [Kbytes/sec] received

Connection Times (ms) min mean[+/-sd] median max Connect: 129 134 3.8 134 157 Processing: 264 280 40.8 273 551 Waiting: 132 143 39.8 136 407 Total: 394 414 41.4 407 689

Percentage of the requests served within a certain time (ms) 50% 407 66% 410 75% 414 80% 415 90% 418 95% 430 98% 676 99% 689 100% 689 (longest request)

▼ japan

$ ab -n 100 -c 10 http://xxx.xxx.xxx/

Server Software: Apache/2.0.63 Server Hostname: xxx.xxx.xxx Server Port: 80

Document Path: / Document Length: 5044 bytes

Concurrency Level: 10 Time taken for tests: 1.097 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Non-2xx responses: 100 Total transferred: 524200 bytes HTML transferred: 504400 bytes Requests per second: 91.19 [#/sec] (mean) Time per request: 109.662 [ms] (mean) Time per request: 10.966 [ms] (mean, across all concurrent requests) Transfer rate: 466.81 [Kbytes/sec] received

Connection Times (ms) min mean[+/-sd] median max Connect: 16 33 18.1 23 72 Processing: 43 74 30.3 61 139 Waiting: 18 38 16.6 30 73 Total: 61 107 46.8 82 201

Percentage of the requests served within a certain time (ms) 50% 82 66% 118 75% 138 80% 180 90% 189 95% 193 98% 196 99% 201 100% 201 (longest request)

こういう内容、もっと増やしたいなー...

--------
http://www.suz-lab.com

0 コメント: