欢迎来到天天文库
浏览记录
ID:32008008
大小:4.67 MB
页数:97页
时间:2019-01-30
《如何建设高性能网站》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、HighperformanceWebSitesrichardchang不知大家有没有看过这个ppt以及这个架构图Yahoo’sCasePerformanceresearchand14rulesExceptionalPerformancestartedin2004quantifyandimprovetheperformanceofallYahoo!productsworldwidecenterofexpertisebuildtools,analyzedatagather,research,andevangelizebestpracti
2、cesScopeperformancebreaksintotwocategoriesresponsetimeefficiencycurrentfocusisresponsetimeofwebproductsTheImportanceofFront-EndPerformancepercentageoftimespentonthefront-endBack-endvs.Front-endThePerformanceGoldenRule80-90%oftheend-userresponsetimeisspentonthefront-end
3、.Startthere.GreaterpotentialforimprovementSimplerProventoworkPerformanceResearchhttp://yuiblog.com/blog/2006/11/28/performance-research-part-1/80/20PerformanceRuleVilfredoPareto:80%ofconsequencescomefrom20%ofcausesFocusonthe20%thataffects80%oftheend-userresponsetime.St
4、artatthefront-end.1userrequestswww.yahoo.com2userrequestsotherwebpages3userre-requestswww.yahoo.comEmptyvs.FullCache1userrequestswww.yahoo.com2userrequestsotherwebpages3userre-requestswww.yahoo.comEmptyvs.FullCachewithanemptycache1userrequestswww.yahoo.com2userrequests
5、otherwebpages3userre-requestswww.yahoo.comEmptyvs.FullCacheEmptyvs.FullCacheExpiresheader1userrequestswww.yahoo.com2userrequestsotherwebpages3userre-requestswww.yahoo.comwithafullcacheEmptyvs.FullCacheemptycache2.4secondsfullcache0.9seconds83%fewerbytes90%fewerHTTPrequ
6、estsHowmuchdoesthisbenefitourusers?Itdependsonhowmanyusershavecomponentsincache.Whatpercentageofusersviewapagewithanemptycache*?*“Emptycache”meansthebrowserhastorequestthecomponentsinsteadofpullingthemfromthebrowserdiskcache.Whatpercentageofpageviewsaredonewithanempty
7、cache*?http://yuiblog.com/blog/2007/01/04/performance-research-part-2/Addanewimagetoyourpagewiththefollowingresponseheaders:Expires:Thu,15Apr200420:00:00GMTLast-Modified:Wed,28Sep200623:49:57GMT}1pxBrowserCacheExperimentBro
8、wserCacheExperimentRequestsfromthebrowserwillhaveoneoftheseresponsestatuscodes:200–Thebrowserdoesnothavetheimageinit
此文档下载收益归作者所有