東京からのベンチマーク

Apache ab Toolを使用して、測定した結果。

# ab -c 1 -n 50 http://px1.xaffy.net/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking px1.xaffy.net (be patient).....done


Server Software:        Apache
Server Hostname:        px1.xaffy.net
Server Port:            80

Document Path:          /
Document Length:        12763 bytes

Concurrency Level:      1
Time taken for tests:   20.518 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      649250 bytes
HTML transferred:       638150 bytes
Requests per second:    2.44 [#/sec] (mean)
Time per request:       410.361 [ms] (mean)
Time per request:       410.361 [ms] (mean, across all concurrent requests)
Transfer rate:          30.90 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      133  143   6.2    142     162
Processing:   218  268  33.5    263     344
Waiting:      206  250  30.1    246     317
Total:        354  410  36.0    411     499

Percentage of the requests served within a certain time (ms)
  50%    411
  66%    431
  75%    435
  80%    444
  90%    460
  95%    470
  98%    499
  99%    499
 100%    499 (longest request)

# ab -c 50 -n 50 http://px1.xaffy.net/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking px1.xaffy.net (be patient).....done


Server Software:        Apache
Server Hostname:        px1.xaffy.net
Server Port:            80

Document Path:          /
Document Length:        12763 bytes

Concurrency Level:      50
Time taken for tests:   9.341 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      715445 bytes
HTML transferred:       703013 bytes
Requests per second:    5.35 [#/sec] (mean)
Time per request:       9340.592 [ms] (mean)
Time per request:       186.812 [ms] (mean, across all concurrent requests)
Transfer rate:          74.80 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      132  920 1764.6    143    7142
Processing:   285 2645 1226.7   2949    4825
Waiting:      265 2315 1007.1   2707    4179
Total:        428 3565 2149.2   3487    8930

Percentage of the requests served within a certain time (ms)
  50%   3487
  66%   4237
  75%   4631
  80%   4966
  90%   6793
  95%   8916
  98%   8930
  99%   8930
 100%   8930 (longest request)

まずまずの結果ではないだろうか。
ab -c 1 -n 50 http://***/はシングルリクエストで、ab -c -50 -n 50 http://***/はマルチセッションリクエストである。つまり、マルチセッションリクエストの性能が、ほぼCPUの負荷性能の上限値付近で、Keep aliveが有効な場合の平均リクエスト処理数の限界値付近の性能となる。

この値は、近いところでの測定結果とも比較する必要があるので、Los Angelesからの同様の測定結果も添付しておく。

# ab -c 1 -n 50 http://px1.xaffy.net/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking px1.xaffy.net (be patient).....done


Server Software:        Apache
Server Hostname:        px1.xaffy.net
Server Port:            80

Document Path:          /
Document Length:        12763 bytes

Concurrency Level:      1
Time taken for tests:   8.974 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      649250 bytes
HTML transferred:       638150 bytes
Requests per second:    5.57 [#/sec] (mean)
Time per request:       179.488 [ms] (mean)
Time per request:       179.488 [ms] (mean, across all concurrent requests)
Transfer rate:          70.65 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       28   28   0.2     28      29
Processing:   107  152  39.8    147     260
Waiting:       94  131  35.4    122     244
Total:        135  179  39.8    175     288

Percentage of the requests served within a certain time (ms)
  50%    175
  66%    183
  75%    192
  80%    210
  90%    251
  95%    277
  98%    288
  99%    288
 100%    288 (longest request)

# ab -c 50 -n 50 http://px1.xaffy.net/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking px1.xaffy.net (be patient).....done


Server Software:        Apache
Server Hostname:        px1.xaffy.net
Server Port:            80

Document Path:          /
Document Length:        12763 bytes

Concurrency Level:      50
Time taken for tests:   6.349 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      649250 bytes
HTML transferred:       638150 bytes
Requests per second:    7.87 [#/sec] (mean)
Time per request:       6349.296 [ms] (mean)
Time per request:       126.986 [ms] (mean, across all concurrent requests)
Transfer rate:          99.86 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       28  309 756.4     30    3028
Processing:   108  887 673.1    820    1959
Waiting:       98  831 641.8    774    1889
Total:        137 1196 816.8   1160    3222

Percentage of the requests served within a certain time (ms)
  50%   1160
  66%   1581
  75%   1757
  80%   1872
  90%   1990
  95%   3140
  98%   3222
  99%   3222
 100%   3222 (longest request)

この時のping応答は以下である。

# ping -c 5 px1.xaffy.net
PING px1.xaffy.net (192.157.245.52) 56(84) bytes of data.
64 bytes from 52.245-157-192.rdns.scalabledns.com (192.157.245.52): icmp_seq=1 ttl=53 time=27.5 ms
64 bytes from 52.245-157-192.rdns.scalabledns.com (192.157.245.52): icmp_seq=2 ttl=53 time=27.8 ms
64 bytes from 52.245-157-192.rdns.scalabledns.com (192.157.245.52): icmp_seq=3 ttl=53 time=27.6 ms
64 bytes from 52.245-157-192.rdns.scalabledns.com (192.157.245.52): icmp_seq=4 ttl=53 time=27.5 ms
64 bytes from 52.245-157-192.rdns.scalabledns.com (192.157.245.52): icmp_seq=5 ttl=53 time=27.5 ms

--- px1.xaffy.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4035ms
rtt min/avg/max/mdev = 27.537/27.633/27.815/0.147 ms

流石に近いところのほうが速いが、同時リクエスト数50でマルチセッション応答として、東京 –> Dallas間で、毎秒5.35ページの応答なら、最速ではないまでも、距離的に見て、そこそこ良好な性能と言える。