誰也不服,Cloudflare 和Fastly 開啓性能之爭

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"11 月 21 日,"},{"type":"link","attrs":{"href":"https:\/\/blog.cloudflare.com\/network-performance-update-full-stack-week","title":null,"type":null},"content":[{"type":"text","text":"Cloudflare "}],"marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}]},{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"發佈博客稱,其無服務器產品“Workers”性能比競爭對手 Fastly 的產品 [email protected] 快了 196%,該結論是基於世界各地Catchpoint數據在50個節點上運行的測試的結果。近日,Fastly "},{"type":"link","attrs":{"href":"https:\/\/www.fastly.com\/blog\/debunking-cloudflares-recent-performance-tests","title":null,"type":null},"content":[{"type":"text","text":"反駁了"}],"marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}]},{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"Cloudflare 的結論,並且宣佈自己的無服務器產品超過了 Cloudflare。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"2021年11月8日,Cloudflare 使用 Workers和 [email protected]的免費賬戶進行了測試。Cloudflare 在兩個產品上運行完全相同的代碼,測試代碼如下:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/24\/62\/245a20862acafdff6092e22d5e42de62.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"對此,Fastly指出,Cloudflare 沒有解釋爲什麼選擇了 Catchpoint 節點。兩家基礎設施的位置不完全相同,測試位置選擇會極大地影響結果。根據 "},{"type":"link","attrs":{"href":"https:\/\/www.cdnplanet.com\/compare\/fastly\/cloudflare","title":null,"type":null},"content":[{"type":"text","text":"cdnplanet"}],"marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}]},{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" 統計,兩家的網絡設施分佈如下:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/f8\/f3\/f80808e562e6e4f7385150a44dbff5f3.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"另外,Fastly認爲,雖然都是在JavaScript 上的比較,但Cloudflare Workers已經是成熟且被廣泛使用的產品,而[email protected] 上的 JavaScript 只是測試版。Fastly認爲,公平的測試是比較 [email protected] 上的 Rust 與 Cloudflare Workers 上的 JavaScript 。而且,與付費帳戶相比,Fastly 的免費試用帳戶用途有限,兩者的負載性能沒有可比性。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"Fastly表示,Cloudflare 的測試只用用了一個小時,無法針對日常交通模式或異常事件進行標準化,並且容易受到隨機失真效應的影響。用幾乎沒有計算負載、有效負載大小和平臺 API 的測試來評估首字節時間 (TTFB) ,這對 [email protected] 的性能評估沒有意義。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"基於以上幾點,Fastly “將節點數從 50 個擴展到 673 個” “將週期從 1 小時延長到 1 周” “用付費 Fastly 賬戶而不是免費試用賬戶” “用 Rust 而不是JavaScript”“使用創建的 WASM 二進制文件”的條件下執行了一個測試來測量 TTFB。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"結果顯示,在測試的六個地區中,Fastly 在除亞洲和非洲以外的四個地區顯示出了具有更小的 TTFB。特別是在北美和歐洲,Fastly 速度大約是Cloudflare 的兩倍,而在大洋洲,其速度達到了 Cloudflare 的 10 倍。Fastly 解釋未使用 JavaScript的原因:“我們知道 JavaScript 對許多客戶很重要,但是我們對 JavaScript 的性能並不滿意。 這也是爲什麼 JavaScript 仍處於測試階段的原因。”"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/e5\/86\/e56df6a46aaf8d0a89ac723c5476a686.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"Fastly成立於2011年,現在已經是非常成熟的CDN提供商,並以“實時 CDN”而聞名。Cloudflare成立於2009年,提供包括CDN、優化工具、安全、分析以及應用等服務。目前Fastly提供的服務,Cloudflare也都有,兩家公司的產品的相似度越來越高。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":" "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#494949","name":"user"}}],"text":"不過,Cloudflare和Fastly的目標客戶羣有所區分。Cloudflare偏重於中小企業用戶,甚至是免費用戶,所以在財報上會看到Cloudflare的使用者\/客戶總數龐大,但卻不一定都是付費用戶。而Fastly 客戶羣僅着重在大企業用戶。由於Fastly注重開發者,所以他們的目標更接近大企業中的工程團隊,而Cloudflare則主要針對公司的信息團隊。"}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章