网站性能测试指南(Performance Testing Guidance for Web Appl

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1PerformanceTestingGuidanceforWebApplicationsFeedback/Comments:PerfTest@microsoft.comPerformanceTestingGuidanceforWebApplicationspatterns&practicesJ.D.MeierCarlosFarrePrashantBansodeScottBarberDennisReaInformationinthisdocument,includingURLandotherInternetWebsitereferences,issubjecttochangewithoutnotice.Unlessotherwisenoted,theexamplecompanies,organizations,products,domainnames,e-mailaddresses,logos,people,places,andeventsdepictedhereinarefictitious,andnoassociationwithanyrealcompany,organization,product,domainname,e-mailaddress,logo,person,place,oreventisintendedorshouldbeinferred.Complyingwithallapplicablecopyrightlawsistheresponsibilityoftheuser.Withoutlimitingtherightsundercopyright,nopartofthisdocumentmaybereproduced,storedinorintroducedintoaretrievalsystem,ortransmittedinanyformorbyanymeans(electronic,mechanical,photocopying,recording,orotherwise),orforanypurpose,withouttheexpresswrittenpermissionofMicrosoftCorporation.Microsoftmayhavepatents,patentapplications,trademarks,copyrights,orotherintellectualpropertyrightscoveringsubjectmatterinthisdocument.ExceptasexpresslyprovidedinanywrittenlicenseagreementfromMicrosoft,thefurnishingofthisdocumentdoesnotgiveyouanylicensetothesepatents,trademarks,copyrights,orotherintellectualproperty.©2007MicrosoftCorporation.Allrightsreserved.Microsoft,MS-DOS,Windows,WindowsNT,WindowsServer,ActiveDirectory,MSDN,VisualBasic,VisualC++,VisualC#,VisualStudio,andWin32areeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesand/orothercountries.Thenamesofactualcompaniesandproductsmentionedhereinmaybethetrademarksoftheirrespectiveowners.Foreword By Alberto Savoia Testingtheperformanceofwebapplicationsiseasy.It’seasytodesignunrealisticscenarios.Easytocollectandmeasureirrelevantperformancedata.And,evenifyoumanagetodesignasoundscenarioandcollecttherightdata,it’seasytousethewrongstatisticalmethodstosummarizeandpresenttheresults.Startinginthelate90s,throughthepeakoftheInternetbubbleandbeyond,Ispentalotoftimetestingtheperformanceofwebapplications.Duringthatperiod,Idesignedandledseveralmission-criticalwebperformanceandloadtestsforhigh-profileInternetcompanies.Workingwiththein-houseperformanceexpertsateachcompanywasveryrevealing–andquitefrightening.Mostoftheengineersassignedtoworkonwebapplicationperformanceweresmart,hard-working,anddedicated;theyinvestedinexpensivesoftwareandhardware,readtherightbooks,andfollowedthebestpracticesoftheday.But,somehow,theresultsoftheirperformancemeasurementsandpredictionsdidnotmatchreality.Insomecasestheperformancetestsoverestimatedtheperformanceandscalabilityofthewebapplications–leadingtoembarrassingandcostlycrasheswhenthewebapplicationwasdeployed.Inothercases,theyunderestimatedcapacityandscalability–leadingtounnecessaryspendingonhardwareandinfrastructure.Theerrorsinthesetestswerenotsmall;sometestsoverestimatedorunderestimatedactualperformanceandcapacitybyanorderofmagnitudeormore!Howisthispossible?Basedonmyexperience,themajorityofgrosserrorsinwebapplicationperformancetestingaretheresultofoversimplification.Moreprecisely,theyaretheresultoversimplificationofuserbehaviorandoversimplificationinsummarizingandreportingtestresults.Imagineatransportationengineerestimatingtrafficpatternsforaproposedstretchofhighwaybyassumingthatmostdriverswilldriveatthesameaveragespeed,breakandacceleratewiththesameresponsetimeandatthesamerate,andneverchangelanes.Asimple–butcompletelyworthless–scenario.Orimaginethesametransportationengineerreportingthattherearenotrafficissuesbecausetheaveragespeedis57mph–withoutbringingupthatduringrush-hourtheaveragespeedis25mph.Asimple,butverymisleading,result.Unfortunately,mostwebapplicationperformancetesterscommiterrorsofoversimplificationasbad,orworse,astheonescommittedbyourhypotheticaltransportationengineer.Iamallforsimplicitybut,asAlbertEinsteinoncesaid:“Makeeverythingassimpleaspossible,butnotsimpler.”Whenitcomestotestingtheperformanceofwebapplications,that’sexactlywhatthisremarkable–andmuchneeded–bookteachesyou.Theauthorsleveragetheirpassion,experience,andhard-earnedknowledgeandprovideyouwiththebroad,thorough,andextensiblefoundationyouneedtotacklewebperformancetestingtherightway.PerformanceTestingGuidanceforWebApplicationsdoesnotgetboggeddownwithunnecessarydetails,butitdoesmakesurethatyouknowabout–anddon’toverlook–thekeyparametersandvariablesthatyouneedtotakeintoaccountindesigning,conducting,andanalyzingyourtests.Ifyouarenewtowebperformancetesting,thisbookwillgetyoustartedontherightpathandsaveyoualotoftimeandembarrassment.Evenifyouareaseasonedwebperformancetestingveteran,Iamconfidentthatthisbookwillprovideyouwithnewinsightsand,mostlikely,haveyouslapyourforeheadafewtimesasyoureadaboutsomecommonandfamiliarmistakes.Ineithercase,PerformanceTestingGuidanceforWebApplications,isamust-haveforanywebperformanceengineerbookshelf.AlbertoSavoiaFounderandCTO,AgitarSoftwareInc.July,2007Authorof:“TheScienceandArtofWebSiteLoadTesting”,“WebLoadTestPlanning”,and“TradeSecretsfromaWebTestingExpert”.Foreword By Rico Mariani It’shardtoimagi

1 / 221
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功