アジアリージョンがなく、日本からだと遅めな印象があったのでGoでHello, World!を返すやつを立てて測定してみました。バラつきが気になりますが、us-centralは日本からでも一般的なAPIサーバとして十分つかえる感じに思えます。
各リージョンの300リクエスト時の平均、95%タイル値、ワースト値をまとめました。
リージョン | 平均 | 95%タイル | ワースト |
---|---|---|---|
us-central | 154ms | 180ms | 546ms |
us-east1 | 372ms | 615ms | 652ms |
europe | 341ms | 614ms | 927ms |
直前に何回か叩いた後に測定しているので、ワースト値にはスピンアップとは無関係に何らかの原因があるかと思います。詳しい方がいたらご教授ください!
以下、abコマンドのログ抜粋です。
us-central
Time per request: 154.326 [ms] (mean)
Percentage of the requests served within a certain time (ms)
50% 146
66% 148
75% 151
80% 152
90% 159
95% 180
98% 225
99% 479
100% 546 (longest request)
us-east1
Time per request: 372.252 [ms] (mean)
Percentage of the requests served within a certain time (ms)
50% 308
66% 321
75% 348
80% 484
90% 614
95% 615
98% 627
99% 643
100% 652 (longest request)
europe
Time per request: 341.761 [ms] (mean)
Percentage of the requests served within a certain time (ms)
50% 307
66% 308
75% 310
80% 362
90% 557
95% 614
98% 615
99% 922
100% 927 (longest request)