読書進捗APIがどうにも遅いので、ApacheBenchで計ってみた。
Webアプリ
Concurrency Level: 1
Time taken for tests: 1.656000 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Total transferred: 33370 bytes
HTML transferred: 33129 bytes
Requests per second: 0.60 [#/sec] (mean)
Time per request: 1656.000 [ms] (mean)
Time per request: 1656.000 [ms] (mean, across all concurrent requests)
Transfer rate: 19.32 [Kbytes/sec] received
ファイルに落として静的コンテンツとして公開
Concurrency Level: 1
Time taken for tests: 0.344000 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Total transferred: 33379 bytes
HTML transferred: 33129 bytes
Requests per second: 2.91 [#/sec] (mean)
Time per request: 344.000 [ms] (mean)
Time per request: 344.000 [ms] (mean, across all concurrent requests)
Transfer rate: 93.02 [Kbytes/sec] received
遅いなぁ…
ローカルのcoLinux+mongrelでテスト
Concurrency Level: 1
Time taken for tests: 0.140000 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Total transferred: 33380 bytes
HTML transferred: 33129 bytes
Requests per second: 7.14 [#/sec] (mean)
Time per request: 140.000 [ms] (mean)
Time per request: 140.000 [ms] (mean, across all concurrent requests)
Transfer rate: 228.57 [Kbytes/sec] received
マシン自体はさくらのほうが速いだろうから、ボトルネックは運用系かなぁ?
ということで、移行を検討中。