Skip to Main Content
高效能網站建置指南
book

高效能網站建置指南

by Steve Souders
January 2013
Intermediate to advanced content levelIntermediate to advanced
280 pages
5h 38m
Chinese
GoTop Information, Inc.
Content preview from 高效能網站建置指南
240
|
附錄 A
其他
本節所介紹的工具牽涉到前幾節未涵蓋的特定 Web 效能領域,雖然不是每天,但我確實
經常使用這些工具。
Hammerhead
改善 Web 效能需要量測頁面加載時間,雖然這聽起來很簡單,但事實上,要以準確且統
計性健全的方式蒐集加載時間的數據其實非常困難。這並沒有唯一的解法,相反地,必
須使用多項技術,包括量測真實世界的網路交通,水桶測試(bucket testing
2
,以及指
令稿或綜合測試(synthetic testing
3
。問題是這些技術都是很昂貴的,不管是費用或時
間都一樣。
我建立 Hammerhead
http://stevesouders.com/hammerhead/
),讓開發者更容易在開發過
程早期量測加載時間。Hammerhead Firebug 的擴充套件。要測試一組網頁,就把它
們的 URL 輸入 Hammerhead,伴隨著想要的量測次數。圖 A-5 顯示一個例子。
A-5 Hammerhead
Hammerhead 以指定次數載入各個 URL,並且記錄每一個量測數據,並且計算加載時間
的平均數和中位數。頁面以空的快取及基本快取兩種方式分別載入(Hammerhead 為你
管理該快取)。雖然 Hammerhead 的量測數據只是在一組測試條件下(你的開發環境)
收集的,但是它提供了簡單快速的方法,可以比較二或多個網頁實作方案。
2
http://en.wikipedia.org/wiki/A/B_testing
3
http://en.wikipedia.or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

初探深度學習|使用TensorFlow

初探深度學習|使用TensorFlow

Reza Zadeh, Bharath Ramsundar
優雅的SciPy|Python科學研究的美學

優雅的SciPy|Python科學研究的美學

Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow

Publisher Resources

ISBN: 9789862766583