ServersMan@VPS ProとEC2 micro instanceのベンチマークを比較


昨日、EC2からServersMan@VPSに出戻りしたので、早速、両サーバで当サイトのベンチマークを取ってみました。ベンチマークの計測には、ab – Apache HTTP server benchmarking toolを使用しました。

abの実行はそれぞれのサーバ上にて行っています。

今回は、apache,mysql,phpに関して、サーバ固有のチューニングは行わず、EC2で利用していた設定をServersManの方に適用して計測しました。

思ったよりServersManが頑張っていたので、とりあえずほっとしています。

広告

WordPressのコンテンツ状況に多少の違いはありましたが、これほど差が出るとは思いませんでした。

Failed requestsに関して、EC2は382件あるのに対し、ServersManは0件でした。これは、処理能力の違いによりEC2の方では処理しきれなかったのかもしれません。

また、Transfer rateに関しても5倍以上の差をつけて、ServersManの方が速い結果となりました。その他の計測値についてもServersManの方が大差で勝っており、サーバの安定性、サポートの質などを考慮しなければ、EC2 micro instanceよりは、ServersMan@VPS Proの方がコストパフォーマンスは高そうです。

料金についても、ServersMan@VPS Proの方は、1980円に対し、EC2の方は$25程度かかっていたので、多少コストダウンしています。

EC2、ServersManの両サービスで、割り当てられるインスタンス、プランによって大元のサーバスペック、インフラも違う可能性があるので、同様の結果になるかは不明です。CPUなどは共有なので、この辺は、運の要素もあるかもしれません。

各、サーバでのabの結果は以下。

EC2 micro instance

$ ab -c10 -n1000 https://fukata.org/
This is ApacheBench, Version 2.3 < $Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, https://www.zeustech.net/
Licensed to The Apache Software Foundation, https://www.apache.org/
 
Benchmarking fukata.org (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
 
 
Server Software:        Apache/2.2.16
Server Hostname:        fukata.org
Server Port:            80
 
Document Path:          /
Document Length:        101894 bytes
 
Concurrency Level:      10
Time taken for tests:   2285.760 seconds
Complete requests:      1000
Failed requests:        382
   (Connect: 0, Receive: 0, Length: 382, Exceptions: 0)
Write errors:           0
Total transferred:      101632220 bytes
HTML transferred:       101168220 bytes
Requests per second:    0.44 [#/sec] (mean)
Time per request:       22857.601 [ms] (mean)
Time per request:       2285.760 [ms] (mean, across all concurrent requests)
Transfer rate:          43.42 [Kbytes/sec] received
 
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   12 130.0      1    1535
Processing:  1663 22823 31178.9   3880  137603
Waiting:       77 3259 9076.9    423   65292
Total:       1664 22835 31178.3   3881  137604
 
Percentage of the requests served within a certain time (ms)
  50%   3881
  66%  16392
  75%  34607
  80%  58282
  90%  67163
  95%  100522
  98%  111876
  99%  112836
 100%  137604 (longest request)

ServersMan@VPS Pro

$ ab -c10 -n1000 https://fukata.org/
This is ApacheBench, Version 2.3 < $Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, https://www.zeustech.net/
Licensed to The Apache Software Foundation, https://www.apache.org/
 
Benchmarking fukata.org (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
 
 
Server Software:        Apache/2.2.14
Server Hostname:        fukata.org
Server Port:            80
 
Document Path:          /
Document Length:        85413 bytes
 
Concurrency Level:      10
Time taken for tests:   297.972 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      85867000 bytes
HTML transferred:       85413000 bytes
Requests per second:    3.36 [#/sec] (mean)
Time per request:       2979.716 [ms] (mean)
Time per request:       297.972 [ms] (mean, across all concurrent requests)
Transfer rate:          281.42 [Kbytes/sec] received
 
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.8      0      24
Processing:  1055 2972 1139.9   2768   12319
Waiting:      149 1153 537.8   1090    8186
Total:       1055 2973 1139.9   2768   12319
 
Percentage of the requests served within a certain time (ms)
  50%   2768
  66%   3060
  75%   3269
  80%   3407
  90%   4084
  95%   5404
  98%   6218
  99%   6761
 100%  12319 (longest request)

関連記事