日本節點到美國之間的連線
使用日本的機器直連 cloudflare NRT 日本節點 ,以 jquery 1.8.2 為 93k,由於使用 ab 指令來測試。
測試由 NRT 到 US 的速度
在 cloudflare page rule 設定 cache level = bypass 來避免快取。
Non ARGO: JP test point → cloudflare NRT (cache bypass) → US server
Complete requests: 20
Failed requests: 0
Total transferred: 1880020 bytes
HTML transferred: 1868720 bytes
Requests per second: 1.30 [#/sec] (mean)
Time per request: 769.221 [ms] (mean)
ARGO: JP test point → cloudflare NRT (cache bypass) → US server
Complete requests: 20
Failed requests: 0
Total transferred: 1878160 bytes
HTML transferred: 1868720 bytes
Requests per second: 4.33 [#/sec] (mean)
Time per request: 230.750 [ms] (mean)
Failed requests: 0
Total transferred: 1878160 bytes
HTML transferred: 1868720 bytes
Requests per second: 4.33 [#/sec] (mean)
Time per request: 230.750 [ms] (mean)
台灣節點到美國之間的連線
再來是台北節點的測試,使用 hinet ipv6 來直連台北節點
Non ARGO: TW test point → cloudflare TPE (cache bypass) → US Server
Complete requests: 20
Failed requests: 0
Total transferred: 1880020 bytes
HTML transferred: 1868720 bytes
Requests per second: 0.84 [#/sec] (mean)
Time per request: 1192.325 [ms] (mean)
ARGO: TW test point → cloudflare TPE (cache bypass) → US Server
Complete requests: 20
Failed requests: 0
Total transferred: 1878160 bytes
HTML transferred: 1868720 bytes
Requests per second: 2.29 [#/sec] (mean)
Time per request: 437.533 [ms] (mean)
Failed requests: 0
Total transferred: 1878160 bytes
HTML transferred: 1868720 bytes
Requests per second: 2.29 [#/sec] (mean)
Time per request: 437.533 [ms] (mean)
結論
日本節點實測連線時間 -70%,台北節點實測連線時間 -64% 。
但是否採用 argo ,要視你網站系統的架構而定。以本站說,台灣訪客的走法有這兩種各佔一半:
- 台灣訪客 → 台北節點 → 美國主機
- 台灣訪客 → 日本節點 → 美國主機
以上述的測試來說都可以讓 TTFB 少一半以上,這對 SEO 和廣告效益會有幫助。
但是否採用 argo 還有另外一個要考量的就是口袋深度,無論是否有快取 要價 0.1USD/GB ,本站也要再考量看看。
HTML transferred: 492400 bytes
Requests per second: 1.68 [#/sec] (mean)
Time per request: 596.254 [ms] (mean)
其它測試結果
25k 圖檔: tpe non-argo to usHTML transferred: 492400 bytes
Requests per second: 1.68 [#/sec] (mean)
Time per request: 596.254 [ms] (mean)
25k 圖檔: tpe argo to us
HTML transferred: 492400 bytes
Requests per second: 2.60 [#/sec] (mean)
Time per request: 384.306 [ms] (mean)
HTML transferred: 492400 bytes
Requests per second: 2.60 [#/sec] (mean)
Time per request: 384.306 [ms] (mean)
13k 圖檔:tpe non-argo to us
HTML transferred: 267260 bytes
Requests per second: 2.63 [#/sec] (mean)
Time per request: 380.700 [ms] (mean)
Requests per second: 2.63 [#/sec] (mean)
Time per request: 380.700 [ms] (mean)
13k 圖檔:tpe argo to us
HTML transferred: 267260 bytes
Requests per second: 2.90 [#/sec] (mean)
Time per request: 344.813 [ms] (mean)
HTML transferred: 267260 bytes
Requests per second: 2.90 [#/sec] (mean)
Time per request: 344.813 [ms] (mean)