Free Dynoで静的ファイルホスティングのベンチマークを取ってみました。
Apache(Apache + mod_proxy_cgi)
1 2 3 4 5 6 7 8 9 10 |
$ wrk -c 50 -d 1m -t 10 http://tzmfreedom-static-performance.herokuapp.com/index.html Running 1m test @ http://tzmfreedom-static-performance.herokuapp.com/index.html 10 threads and 50 connections Thread Stats Avg Stdev Max +/- Stdev Latency 215.16ms 93.02ms 1.49s 96.27% Req/Sec 23.96 9.64 50.00 67.28% 14327 requests in 1.00m, 4.88MB read Socket errors: connect 0, read 0, write 0, timeout 4 Requests/sec: 238.45 Transfer/sec: 83.12KB |
Nginx(Nginx + php-fpm)
1 2 3 4 5 6 7 8 9 10 |
$ wrk -c 50 -d 1m -t 10 http://tzmfreedom-static-performance.herokuapp.com/index.html Running 1m test @ http://tzmfreedom-static-performance.herokuapp.com/index.html 10 threads and 50 connections Thread Stats Avg Stdev Max +/- Stdev Latency 211.83ms 95.27ms 1.53s 96.83% Req/Sec 24.22 9.94 50.00 65.08% 14465 requests in 1.00m, 4.84MB read Socket errors: connect 0, read 0, write 0, timeout 2 Requests/sec: 240.88 Transfer/sec: 82.56KB |
node.js(express)
1 2 3 4 5 6 7 8 9 10 |
$ wrk -c 50 -d 1m -t 10 http://tzmfreedom-static-performance.herokuapp.com/index.html Running 1m test @ http://tzmfreedom-static-performance.herokuapp.com/index.html 10 threads and 50 connections Thread Stats Avg Stdev Max +/- Stdev Latency 234.21ms 133.66ms 1.87s 93.56% Req/Sec 22.83 10.14 50.00 62.50% 13480 requests in 1.00m, 5.51MB read Socket errors: connect 0, read 0, write 0, timeout 4 Requests/sec: 224.28 Transfer/sec: 93.95KB |
結論
ぶっちゃけ静的ファイルホスティング用途だったら何使っても同じ。というか、やはりレイテンシがボトルネック。
コメントを残す