2015年03月01日
Tweet
すんごく単純な性能比較ですが、とりあえず httpd.conf の設定を合わせてテストしました。
# ab -n 1000 -c 50 http://localhost/
■クラウドVPS
Server Software: Apache/2.2.15
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 4958 bytes
Concurrency Level: 50
Time taken for tests: 0.204 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1001
Total transferred: 5161156 bytes
HTML transferred: 4962958 bytes
Requests per second: 4905.78 [#/sec] (mean)
Time per request: 10.192 [ms] (mean)
Time per request: 0.204 [ms] (mean, across all concurrent requests)
Transfer rate: 24726.09 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.4 1 2
Processing: 5 9 1.4 9 15
Waiting: 5 9 1.3 8 15
Total: 7 10 1.5 9 17
■Suite Pro V2
Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 305 bytes
Concurrency Level: 50
Time taken for tests: 0.343144 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1005
Total transferred: 528630 bytes
HTML transferred: 306525 bytes
Requests per second: 2914.23 [#/sec] (mean)
Time per request: 17.157 [ms] (mean)
Time per request: 0.343 [ms] (mean, across all concurrent requests)
Transfer rate: 1503.74 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 2.2 3 9
Processing: 3 13 3.3 13 24
Waiting: 0 9 3.9 9 20
Total: 6 15 4.9 15 28
・httpd.conf は以下の通り
※抜粋です。 modules はデフォのまま、もしくは確実に不要なものをコメントアウトしてるぐらいです。同一条件にはしていません。
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 2
StartServers 4
MinSpareServers 4
MaxSpareServers 10
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 4000
※注意点
V2の方は実運用しながらのテスト結果です。(負荷は top コマンドで 0.00 もしくは 0.01 ぐらいです。)
テスト用のコンテンツがUPされているので、ドキュメントサイズは異なります。
運用側は Virtual Hostが設定されています。
すんごく簡単なテストですが、VPS クラウドの方が処理能力が向上していますね。
(5年ぐらい前のシステムなので当たり前ですよね。。)

# ab -n 1000 -c 50 http://localhost/
■クラウドVPS
Server Software: Apache/2.2.15
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 4958 bytes
Concurrency Level: 50
Time taken for tests: 0.204 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1001
Total transferred: 5161156 bytes
HTML transferred: 4962958 bytes
Requests per second: 4905.78 [#/sec] (mean)
Time per request: 10.192 [ms] (mean)
Time per request: 0.204 [ms] (mean, across all concurrent requests)
Transfer rate: 24726.09 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.4 1 2
Processing: 5 9 1.4 9 15
Waiting: 5 9 1.3 8 15
Total: 7 10 1.5 9 17
■Suite Pro V2
Server Software: Apache/2.2.3
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 305 bytes
Concurrency Level: 50
Time taken for tests: 0.343144 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1005
Total transferred: 528630 bytes
HTML transferred: 306525 bytes
Requests per second: 2914.23 [#/sec] (mean)
Time per request: 17.157 [ms] (mean)
Time per request: 0.343 [ms] (mean, across all concurrent requests)
Transfer rate: 1503.74 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 2.2 3 9
Processing: 3 13 3.3 13 24
Waiting: 0 9 3.9 9 20
Total: 6 15 4.9 15 28
・httpd.conf は以下の通り
※抜粋です。 modules はデフォのまま、もしくは確実に不要なものをコメントアウトしてるぐらいです。同一条件にはしていません。
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 2
StartServers 4
MinSpareServers 4
MaxSpareServers 10
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 4000
※注意点
V2の方は実運用しながらのテスト結果です。(負荷は top コマンドで 0.00 もしくは 0.01 ぐらいです。)
テスト用のコンテンツがUPされているので、ドキュメントサイズは異なります。
運用側は Virtual Hostが設定されています。
すんごく簡単なテストですが、VPS クラウドの方が処理能力が向上していますね。
(5年ぐらい前のシステムなので当たり前ですよね。。)