Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Intro Web Performance Services
Search
chph
January 29, 2016
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Intro Web Performance Services
chph
January 29, 2016
Transcript
35 slides
Afu Tseng (曾坤福) PIXNET 技術研發部前端組 Intro Web Performance Services 未命名會議室
No.1∘2016.01.29
Outline • webpagetest.org • perfwars.com • Yellow Lab.tools • Big
Rig
webpagetest.org ⽼牌的網⾴效能測試服務
webpagetest.org • 2008 年 1 ⽉成⽴ • 作者 Patrick Meenan
在 2010年加⼊ Chrome 團隊 • 提供全球多處地區測試 • 可以錄製 Dev Tools Timeline • 可以模擬特定網域單點故障情形 (SPOF Testing) • 可以錄製影格分鏡 (Filmstrip View) • 歐萊禮有出書 「Using WebPageTest」
webpagetest.org
測試前置作業 - 進階設定 Ө֨ڸ
測試結果瀑布圖 Ө֨ڸ
影格分鏡 (Filmstrip View)
深⼊閱讀... ! ! ! ! ! ! ! ! 1BUSJDL.FFOBO!0`SFJMMZ7FMPDJUZDPOG
IUUQXXXTMJEFTIBSFOFUQBUSJDLNFFOBOXFCQBHFUFTUQPXFSVTFSTWFMPDJUZ
perfwars.com 效能擂台賽
perfwars.com • 可快速的概覽常⾒的調校項⺫ • 沒有設定瀏覽器快取 • 沒有做 GZIP 傳輸壓縮 •
CSS / JS 沒有做最⼩化 • 圖⽚未最佳化 • HTTP/2 偵測
perfwars.com
perfwars.com
perfwars.com
perfwars.com
perfwars.com
Yellow Lab Tools
Yellow Lab Tools • https://github.com/gmetais/YellowLabTools/ • 有開源,可以⾃⾏架設 (Node.js) • 線上版本:http://yellowlab.tools
• 分數⽐ Page Speed Insights 還嚴格 XD
實測⼿機版⽂章內⾴ dT NT
Score details dT NT
Score details dT NT
重複 DOM 查詢過多 dT NT
JavaScript Timeline / Profiler dT NT
Big Rig Chrome trace 分析⼯具 ! GoogleChrome/big-rig 1BVM-FXJT ෆੋ(PPHMFํሢҊ
由於 dashboard web app 安裝較為繁瑣 所以只介紹 CLI 版本 …
Node Big Rig • https://github.com/GoogleChrome/node- big-rig • $ sudo npm
install -g bigrig • bigrig --file /path/to/trace.json --pretty-print
trace 從何取得? (1) • Chrome DevTools 的 Timeline 錄製
把 Chrome trace 餵給 bigrig • $ bigrig --file ~/Desktop/TimelineRawData-admin-blog-
mobile-post-2-20160129T005241 --pretty-print
EPN$POUFOU-PBEFEෆ४ CVH (PPHMF"E4FOTFੋᏈೳࡴख೭Ұ շಘGPSDF3FDBMD -BZPVU࣍Ꮠ (5.ෆᬀଟᩋ
trace 從何取得? (2) WebPageTest.org
從測試結果 Waterfall 旁下載 Timeline
૬ಉᅿࡏඒᅳეଌࢼᏓຫڐଟ BKBYHPPHMFBQJTDPN؇ຫࢸdT "E4FOTFߋຫྃ
總結 • 效能調校的⼯具服務眾多,各有千秋,多嘗試 搭配運⽤讓網站效能不再持續衰退!
References • Perf.Rocks - Tools, http://perf.rocks/tools/ • http://www.webpagetest.org/ • http://perfwars.com
• https://github.com/GoogleChrome/node-big-rig • http://yellowlab.tools/ • Using WebPageTest, O’reilly, http://shop.oreilly.com/product/0636920033592.do
Q & A @afutseng
More Decks by chph
See All by chph
Chrome Dev Tools 基礎技巧
chph
0
110
DevOpsDays Taipei 2017 敏捷思維分享
chph
0
140
在 Google Cloud Platform 架設你的網站伺服器並撰寫 Node.js 應用程式
chph
0
750
Intro to Progressive Web Apps
chph
1
83
淺談 Gzip
chph
0
160
Install WordPress on Linode
chph
0
180
Introduction Infrastructure - Linode 入門
chph
0
250
高速傳愛~三小時進化 PWA
chph
0
330
Optimize JavaScript execution and parse time using optimize-js
chph
0
180
Other Decks in Technology
See All in Technology
速くなった開発の効果をどう推し量るのか
bulbulpaul
0
130
BALLAS Technology Deck
ballas_inc
0
820
2026-11-11 Tamachi.sre#7 PaCにインフラリソースの命を救われました。 / PaC saves the infra resource life
masasuzu
1
200
Where Should Platform Complexity Live? Lessons from a Cross-Team PR Preview Platform
taiki45
0
130
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
530
Kansai WordPress Meetup@大阪『ブロックテーマを作る上で知っておくべきこと
torounit
0
220
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
150
cdkdがどんだけ早いか、実際に動かして見てみよう
smt7174
1
120
田んぼの見回りをIoTで減らしたい!水位監視から電池駆動カメラまでの試行錯誤
itosoft
1
260
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
2
750
3文字略語に騙されない! 世界一わかりやすい『EDR』超入門
kamadamakoto
1
240
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
1
490
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
We Are The Robots
honzajavorek
0
450
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
610
Thoughts on Productivity
jonyablonski
76
5.5k
Building Applications with DynamoDB
mza
96
7.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k