新インスタンスt3!
もうすでに使われるようになってしばらく経ちますので、ご存知の方も多いと思いますが、t3インスタンスが東京リージョンでも使用できるようになりました。
t3インスタンスでは、small以下のvCPUが今まで1つだったものがすべて2に上げられています。
今回はこちらを使ってApache Benchで速度テストを行ってみようと思います。
比較するのはこちら
t2.micro mysql57 php5.4 apache2.4
t3.micro mysql57 php5.4 apache2.4
t2.micro 高速AMI
t3.micro 高速AMI
インストール完了直後のWordPressを表示できるようにして、同一アベイラビリティゾーンに置いたサーバーから接続テストを行って見ます。
検証結果
テストコマンドは以下
ab -n 500 -c 15 hogehoge
計500回の15人同時アクセスで行おうとしましたが、php5.4のほうは処理に耐えられずFailed requestsが大量に出るので10人同時にしました。
結果の秒間アクセス数を見てみると以下の結果に
(Failed requests:0のときの値) ab -n 500 -c 10(15はFailedが大量) t2.micro mysql57 php5.4 apache2.4 Requests per second: 4.61 #/sec ------------------------------- ab -n 500 -c 10(15はFailedが大量) t3.micro mysql57 php5.4 apache2.4 Requests per second: 8.40 #/sec ------------------------------- ab -n 500 -c 15 t2.micro fastpress Requests per second: 40.17 [#/sec] (mean) ------------------------------- ab -n 500 -c 15 t3.micro fastpress Requests per second: 68.97 [#/sec] (mean)
普通のmicroでも秒間4.61→8.40リクエストさばけるようになっており、かなりの性能UPと思えます。
だいたい2倍までは行かなくとも1.5倍程度のアクセス数がさばけるようになるのではないでしょうか。
まとめ
t3インスタンスではsmall以下のインスタンスにもvCPUが2つついており、t2に比べてかなりの処理速度が見込めます。
互換性がない状態ですので、今までt2インスタンスで起動していたものを移行する場合には手間がかかりますが、その価値があると思えます。
気になったら是非お試し下さい。
(T3 UnlimitedがONにデフォルトなってるので気をつけてね。)
おまけの検証結果
t2.micro mysql57 php5.4 apache2.4
Server Software: Apache/2.4.34
Server Hostname: xxxxxxxxxxxxxxxx
Server Port: 80
Document Path: /
Document Length: 53194 bytes
Concurrency Level: 10
Time taken for tests: 108.516 seconds
Complete requests: 500
Failed requests: 0
Total transferred: 26736500 bytes
HTML transferred: 26597000 bytes
Requests per second: 4.61 [#/sec] (mean)
Time per request: 2170.329 [ms] (mean)
Time per request: 217.033 [ms] (mean, across all concurrent requests)
Transfer rate: 240.61 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 390 2161 116.8 2154 2372
Waiting: 189 2007 112.1 1997 2196
Total: 391 2161 116.8 2154 2372
Percentage of the requests served within a certain time (ms)
50% 2154
66% 2183
75% 2205
80% 2222
90% 2260
95% 2284
98% 2317
99% 2342
100% 2372 (longest request)
t3.micro mysql57 php5.4 apache2.4
Server Software: Apache/2.4.34
Server Hostname: xxxxxxxxxxxxxx
Server Port: 80
Document Path: /
Document Length: 53116 bytes
Concurrency Level: 10
Time taken for tests: 59.505 seconds
Complete requests: 500
Failed requests: 0
Total transferred: 26697000 bytes
HTML transferred: 26558000 bytes
Requests per second: 8.40 [#/sec] (mean)
Time per request: 1190.094 [ms] (mean)
Time per request: 119.009 [ms] (mean, across all concurrent requests)
Transfer rate: 438.14 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 2 2 0.2 2 6
Processing: 246 1181 94.7 1188 2232
Waiting: 172 1095 90.2 1101 2158
Total: 248 1183 94.7 1190 2234
Percentage of the requests served within a certain time (ms)
50% 1190
66% 1206
75% 1219
80% 1226
90% 1247
95% 1275
98% 1302
99% 1317
100% 2234 (longest request)
t2.micro 高速AMI
Server Software: Apache
Server Hostname: xxxxxxxxxxxxx
Server Port: 80
Document Path: /
Document Length: 52950 bytes
Concurrency Level: 15
Time taken for tests: 12.446 seconds
Complete requests: 500
Failed requests: 0
Total transferred: 26625500 bytes
HTML transferred: 26475000 bytes
Requests per second: 40.17 [#/sec] (mean)
Time per request: 373.394 [ms] (mean)
Time per request: 24.893 [ms] (mean, across all concurrent requests)
Transfer rate: 2089.06 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.8 0 12
Processing: 91 343 71.1 347 1165
Waiting: 77 319 69.4 321 1039
Total: 92 343 71.2 347 1166
Percentage of the requests served within a certain time (ms)
50% 347
66% 360
75% 368
80% 375
90% 398
95% 428
98% 492
99% 523
100% 1166 (longest request)
t3.micro 高速AMI
Server Software: Apache
Server Hostname: XXXXXXXXXXXXXXXXXXXX
Server Port: 80
Document Path: /
Document Length: 52950 bytes
Concurrency Level: 15
Time taken for tests: 7.249 seconds
Complete requests: 500
Failed requests: 0
Total transferred: 26625500 bytes
HTML transferred: 26475000 bytes
Requests per second: 68.97 [#/sec] (mean)
Time per request: 217.482 [ms] (mean)
Time per request: 14.499 [ms] (mean, across all concurrent requests)
Transfer rate: 3586.70 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 4
Processing: 42 187 64.6 186 1127
Waiting: 38 180 61.5 178 1033
Total: 43 188 64.6 187 1127
Percentage of the requests served within a certain time (ms)
50% 187
66% 203
75% 213
80% 221
90% 250
95% 275
98% 297
99% 320
100% 1127 (longest request)


