- 追加された行はこの色です。
- 削除された行はこの色です。
* EC2上のExpressのパフォーマンス検証 [#mbb64c4b]
#setlinebreak(on);
[[AWS EC2上で Expressアプリ起動]] でEC2に配備したアプリのパフォーマンスを検証してみた。
#contents
--関連
--- [[AWS LambdaでRDS接続時のパフォーマンス調査]]
--- [[AWS EC2上で Spring Bootアプリ起動]]
--- [[AWS EC2上で Expressアプリ起動]]
--- [[Express(Nodejs)でWebAPI作成]]
** 環境等 [#of2a0cee]
Nodejs : v8.9.0
Express : 4.15.5
コネクションプール数:10 - 30 で計測。
※他、負荷の掛け方 、EC2インスタンスのスペック等は [[AWS LambdaでRDS接続時のパフォーマンス調査]] と同じ。
** 結果 [#j6ab8dfc]
Spring Boot と殆ど変わらない。(物凄く速い時もある)
この程度の負荷だと、リソースの食い方も問題ないように見える。(貼ってないけど)
&br;
** 詳細 [#m0500cf4]
◆express に 100ユーザが10回ずつアクセス(最速)
#code(myterm2 nolinenums){{
Document Path: /book
Document Length: 637 bytes
Concurrency Level: 100
Time taken for tests: 6.594 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 846000 bytes
HTML transferred: 637000 bytes
Requests per second: 151.65 [#/sec] (mean)
Time per request: 659.394 [ms] (mean)
Time per request: 6.594 [ms] (mean, across all concurrent requests)
Transfer rate: 125.29 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 41 307 125.3 318 953
Processing: 81 314 59.2 329 428
Waiting: 81 313 59.3 329 427
Total: 122 621 153.9 651 1303
Percentage of the requests served within a certain time (ms)
50% 651
66% 660
75% 665
80% 670
90% 691
95% 712
98% 1086
99% 1136
100% 1303 (longest request)
}}
#html(</div>)