SlideShare une entreprise Scribd logo
1  sur  31
Drupal 超速指引 How to Speed Up Drupal Jimmy Huang 2011 Drupalcamp Taipei email: Jimmy at netivism.com.tw blog: jimmyhub.net
高效能 Drupal 策略 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
如何擬定效能改善方針 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
如何擬定效能改善方針  ( 續 ) ,[object Object],[object Object],[object Object],[object Object],[object Object]
如何擬定效能改善方針  ( 續 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
在  Drupal  如何檢測效能 ,[object Object],[object Object],[object Object],[object Object]
在  Drupal  如何檢測效能 ( 續 ) garland, system, block, dblog, filter, menu, node, taxonomy, user, content, date, date_api, date_repeat, date_timezone, number, optionwidgets, text, feeds, feeds_ui, feeds_xpathparser, ctools, job_scheduler, devel, views, views_ui
在  Drupal  如何檢測效能 ( 續 )
 
檢測效能 –  Apache / MySQL
檢測效能 – 流量問題
檢測效能 – 流量問題
實戰  - css / javascript aggregration Before…
實戰  - css / javascript aggregration After…
實戰  - html / css / javascript  壓縮 Before…
實戰  - html / css / javascript  壓縮 ( 續 ) After…
實戰  - html / css / javascript  壓縮 ( 續 ) use: http://www.seoconsultants.com/tools/compression
實戰  - html / css / javascript  壓縮 ( 續 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
實戰 – 快取技術 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Drupal 頁面快取
Views 快取
Panel 快取
Boost 快取
實戰 – 記憶體快取 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
實戰 – 記憶體快取
Before… # ab -c 100 -t 30 http://netivism.com.tw/ Document Path:  / Document Length:  33246 bytes Concurrency Level:  100 Time taken for tests:  30.085 seconds Complete requests:  130 Failed requests:  0 Write errors:  0 Total transferred:  4992040 bytes HTML transferred:  4920408 bytes Requests per second:  4.32 [#/sec] (mean) Time per request:  23142.220 [ms] (mean) Time per request:  231.422 [ms] (mean, across all concurrent requests) Transfer rate:  162.04 [Kbytes/sec] received
After Memcache: # ab -c 100 -t 30 http://netivism.com.tw/ Document Path:  / Document Length:  33246 bytes Concurrency Level:  100 Time taken for tests:  30.021 seconds Complete requests:  432 Failed requests:  0 Write errors:  0 Total transferred:  14976120 bytes HTML transferred:  14761224 bytes Requests per second:  14.39 [#/sec] (mean) Time per request:  6949.333 [ms] (mean) Time per request:  69.493 [ms] (mean, across all concurrent requests) Transfer rate:  487.16 [Kbytes/sec] received
# ab -c 100 -t 30 http://netivism.com.tw/ Document Path:  / Document Length:  33329 bytes Concurrency Level:  100 Time taken for tests:  30.009 seconds Complete requests:  5113 Failed requests:  0 Write errors:  0 Total transferred:  172425088 bytes HTML transferred:  170310941 bytes Requests per second:  170.38 [#/sec] (mean) Time per request:  586.922 [ms] (mean) Time per request:  5.869 [ms] (mean, across all concurrent requests) Transfer rate:  5611.05 [Kbytes/sec] received After Boost:
Before After
參考資源 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
photo list ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

En vedette (6)

Android with LBS
Android with LBSAndroid with LBS
Android with LBS
 
Open source business model note in Drupal
Open source business model note in DrupalOpen source business model note in Drupal
Open source business model note in Drupal
 
Aegir with drupal
Aegir with drupalAegir with drupal
Aegir with drupal
 
Drupal Case Study for Taiwan Wheat Traceability Information System
Drupal Case Study for Taiwan Wheat Traceability Information SystemDrupal Case Study for Taiwan Wheat Traceability Information System
Drupal Case Study for Taiwan Wheat Traceability Information System
 
年輕世代與公共事務參與
年輕世代與公共事務參與年輕世代與公共事務參與
年輕世代與公共事務參與
 
CiviCRM 分享會
CiviCRM 分享會CiviCRM 分享會
CiviCRM 分享會
 

Similaire à Drupal performance (in DrupalCamp Taipei)

[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
Drupal Taiwan
 
高性能网站最佳实践
高性能网站最佳实践高性能网站最佳实践
高性能网站最佳实践
longhao
 
快!快!快! 互联网第一条军规
快!快!快! 互联网第一条军规快!快!快! 互联网第一条军规
快!快!快! 互联网第一条军规
yangdj
 
DrupalCamp Taipei 2012 迷人的有「型」網站
DrupalCamp Taipei 2012 迷人的有「型」網站DrupalCamp Taipei 2012 迷人的有「型」網站
DrupalCamp Taipei 2012 迷人的有「型」網站
Hipfox
 
非常靠谱 Html 5
非常靠谱 Html 5 非常靠谱 Html 5
非常靠谱 Html 5
Tony Deng
 
腾讯大讲堂08 可扩展web架构探讨
腾讯大讲堂08 可扩展web架构探讨腾讯大讲堂08 可扩展web架构探讨
腾讯大讲堂08 可扩展web架构探讨
George Ang
 
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
Scourgen Hong
 
HTML5概览
HTML5概览HTML5概览
HTML5概览
Adam Lu
 
构建基于Lamp的网站架构
构建基于Lamp的网站架构构建基于Lamp的网站架构
构建基于Lamp的网站架构
Cosey Lee
 

Similaire à Drupal performance (in DrupalCamp Taipei) (20)

[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
[DCTPE2011] 8) 多伺服器/高效能的Drupal 主機解決方案--黃雋
 
高性能网站最佳实践
高性能网站最佳实践高性能网站最佳实践
高性能网站最佳实践
 
前端性能优化和自动化
前端性能优化和自动化前端性能优化和自动化
前端性能优化和自动化
 
Html5和css3入门
Html5和css3入门Html5和css3入门
Html5和css3入门
 
快!快!快! 互联网第一条军规
快!快!快! 互联网第一条军规快!快!快! 互联网第一条军规
快!快!快! 互联网第一条军规
 
How to ASP.NET MVC4
How to ASP.NET MVC4How to ASP.NET MVC4
How to ASP.NET MVC4
 
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development FundamentalsExam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development Fundamentals
 
雲端技術的新趨勢
雲端技術的新趨勢雲端技術的新趨勢
雲端技術的新趨勢
 
[2008]网站重构 -who am i
[2008]网站重构 -who am i[2008]网站重构 -who am i
[2008]网站重构 -who am i
 
DrupalCamp Taipei 2012 迷人的有「型」網站
DrupalCamp Taipei 2012 迷人的有「型」網站DrupalCamp Taipei 2012 迷人的有「型」網站
DrupalCamp Taipei 2012 迷人的有「型」網站
 
Inside the browser
Inside the browserInside the browser
Inside the browser
 
非常靠谱 Html 5
非常靠谱 Html 5 非常靠谱 Html 5
非常靠谱 Html 5
 
腾讯大讲堂08 可扩展web架构探讨
腾讯大讲堂08 可扩展web架构探讨腾讯大讲堂08 可扩展web架构探讨
腾讯大讲堂08 可扩展web架构探讨
 
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
从林书豪到全明星 - 虎扑网技术架构如何化解流量高峰
 
如何使用 Xhprof 分析網站效能 (真實案例)
如何使用 Xhprof 分析網站效能 (真實案例)如何使用 Xhprof 分析網站效能 (真實案例)
如何使用 Xhprof 分析網站效能 (真實案例)
 
HTML5概览
HTML5概览HTML5概览
HTML5概览
 
使用Big pipe提升浏览速度 wk_velocity
使用Big pipe提升浏览速度 wk_velocity使用Big pipe提升浏览速度 wk_velocity
使用Big pipe提升浏览速度 wk_velocity
 
构建基于Lamp的网站架构
构建基于Lamp的网站架构构建基于Lamp的网站架构
构建基于Lamp的网站架构
 
百度前端技术交流会--搜搜前端架构演变与优化
百度前端技术交流会--搜搜前端架构演变与优化百度前端技术交流会--搜搜前端架构演变与优化
百度前端技术交流会--搜搜前端架构演变与优化
 
[Baidu web frontend_conference_2010]_[soso_frontend_architecture]
[Baidu web frontend_conference_2010]_[soso_frontend_architecture][Baidu web frontend_conference_2010]_[soso_frontend_architecture]
[Baidu web frontend_conference_2010]_[soso_frontend_architecture]
 

Plus de jimyhuang (12)

穿越時空的資料新聞學
穿越時空的資料新聞學穿越時空的資料新聞學
穿越時空的資料新聞學
 
從數位公益出發的社會企業 - 網絡行動科技
從數位公益出發的社會企業 - 網絡行動科技從數位公益出發的社會企業 - 網絡行動科技
從數位公益出發的社會企業 - 網絡行動科技
 
賽豬公上太空計畫(twlandsat)
賽豬公上太空計畫(twlandsat)賽豬公上太空計畫(twlandsat)
賽豬公上太空計畫(twlandsat)
 
網路科技於社會工作倡議
網路科技於社會工作倡議網路科技於社會工作倡議
網路科技於社會工作倡議
 
Scaling in Mind (Case study of Drupal Core)
Scaling in Mind (Case study of Drupal Core)Scaling in Mind (Case study of Drupal Core)
Scaling in Mind (Case study of Drupal Core)
 
只會用鍵盤可以改變什麼?
只會用鍵盤可以改變什麼?只會用鍵盤可以改變什麼?
只會用鍵盤可以改變什麼?
 
經營網站前,先設計網站
經營網站前,先設計網站經營網站前,先設計網站
經營網站前,先設計網站
 
Ne tivism intro
Ne tivism introNe tivism intro
Ne tivism intro
 
喜願小麥網站分享
喜願小麥網站分享喜願小麥網站分享
喜願小麥網站分享
 
D7 易用性增進
D7 易用性增進D7 易用性增進
D7 易用性增進
 
Drupal sharing in HP7
Drupal sharing in HP7Drupal sharing in HP7
Drupal sharing in HP7
 
Drupal Npo
Drupal NpoDrupal Npo
Drupal Npo
 

Drupal performance (in DrupalCamp Taipei)

  • 1. Drupal 超速指引 How to Speed Up Drupal Jimmy Huang 2011 Drupalcamp Taipei email: Jimmy at netivism.com.tw blog: jimmyhub.net
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. 在 Drupal 如何檢測效能 ( 續 ) garland, system, block, dblog, filter, menu, node, taxonomy, user, content, date, date_api, date_repeat, date_timezone, number, optionwidgets, text, feeds, feeds_ui, feeds_xpathparser, ctools, job_scheduler, devel, views, views_ui
  • 8. 在 Drupal 如何檢測效能 ( 續 )
  • 9.  
  • 10. 檢測效能 – Apache / MySQL
  • 13. 實戰 - css / javascript aggregration Before…
  • 14. 實戰 - css / javascript aggregration After…
  • 15. 實戰 - html / css / javascript 壓縮 Before…
  • 16. 實戰 - html / css / javascript 壓縮 ( 續 ) After…
  • 17. 實戰 - html / css / javascript 壓縮 ( 續 ) use: http://www.seoconsultants.com/tools/compression
  • 18.
  • 19.
  • 24.
  • 26. Before… # ab -c 100 -t 30 http://netivism.com.tw/ Document Path: / Document Length: 33246 bytes Concurrency Level: 100 Time taken for tests: 30.085 seconds Complete requests: 130 Failed requests: 0 Write errors: 0 Total transferred: 4992040 bytes HTML transferred: 4920408 bytes Requests per second: 4.32 [#/sec] (mean) Time per request: 23142.220 [ms] (mean) Time per request: 231.422 [ms] (mean, across all concurrent requests) Transfer rate: 162.04 [Kbytes/sec] received
  • 27. After Memcache: # ab -c 100 -t 30 http://netivism.com.tw/ Document Path: / Document Length: 33246 bytes Concurrency Level: 100 Time taken for tests: 30.021 seconds Complete requests: 432 Failed requests: 0 Write errors: 0 Total transferred: 14976120 bytes HTML transferred: 14761224 bytes Requests per second: 14.39 [#/sec] (mean) Time per request: 6949.333 [ms] (mean) Time per request: 69.493 [ms] (mean, across all concurrent requests) Transfer rate: 487.16 [Kbytes/sec] received
  • 28. # ab -c 100 -t 30 http://netivism.com.tw/ Document Path: / Document Length: 33329 bytes Concurrency Level: 100 Time taken for tests: 30.009 seconds Complete requests: 5113 Failed requests: 0 Write errors: 0 Total transferred: 172425088 bytes HTML transferred: 170310941 bytes Requests per second: 170.38 [#/sec] (mean) Time per request: 586.922 [ms] (mean) Time per request: 5.869 [ms] (mean, across all concurrent requests) Transfer rate: 5611.05 [Kbytes/sec] received After Boost:
  • 30.
  • 31.