[軟體效能測試] 效能測試、壓力測試和負載測試的比較

文章推薦指數: 80 %
投票人數:10人

談完效能測試後,接下來我都會大家一個問題:效能測試、壓力測試(Stress Testing)和負載測試的差別在哪裡? 一般人聽到這三個名詞,覺得很相像, ... DavidKo的學習之旅 跳到主文 歡迎光臨DavidKo在痞客邦的小天地 部落格全站分類:不設分類 相簿 部落格 留言 名片 Aug12Sun201820:24 [軟體效能測試]效能測試、壓力測試和負載測試的比較 談完效能測試後,接下來我都會大家一個問題:效能測試、壓力測試(StressTesting)和負載測試的差別在哪裡?     一般人聽到這三個名詞,覺得很相像,又覺得不太一樣,很少人會分的清楚到底差在哪裡。

這三個名詞要做的事情當然不一樣,否則老外不會那麼無聊去創造出他們出來,讓我們來看看各位名家所給的定義:     A.JMyers   這位老大是”TheArtofSoftwareTesting”一書的作者,基本上市面上講黑箱測試(BlackBoxTesting)的理論,可以說十本有十本是出自於他的內容,是超級無敵軟體測試界的聖經。

以下是他給的定義:   (1).效能測試 Thepurposeofperformancetestingistodemonstratethattheprogramdoesnotmeetitsobjectives,testcasesmustbedevisedthatattempttoshowthattheprogramdoesnotsatisfyitsperformanceobjectives.   (2).壓力測試 Stresstestinginvolvessubjectingtheprogramtoheavyloadsorstresses.Thisshouldnotbeconfusedwithvolumetesting,aheavystressisapeakvolumeofdataencounteredoverashortspanoftime.   (3).負載測試 Volumetestingissubjectingtheprogramtoheavyvolumesofdata.Thepurposeofvolumetestingistoshowthattheprogramcannothandlethevolumeofdataspecifiedinitsobjectives.   他舉一個有名的例子:當你要測試文書處理程式,負載測試是決定程式是否能處理一個1GB的檔案;而壓力測試則是在測試,此程式使否成承受當使用者每秒輸入1000個字元。

也就是說壓力測試伴隨著一個壓力的條件,可能是單位時間內會衝大量,或是磁碟空間不足,或是記憶體不足。

看看在這樣的狀況下,是否程式還能處理正常。

    B.CemKaner   接下來這位作者也是赫赫有名,他是”TestingComputerSoftware”一書的作者,這本書是實務派的,很多業界的人員都會買這本書,是接著”TheArtofSoftwareTesting”另一本巨著。

目前在軟體測試業界,很多人都會去看他的文章和blog。

另一件要提的是,他是exploratorytesting開山始祖,影響軟體測試界甚深。

以下是他的解釋:   (1).效能測試 Oneobjectiveofperformancetestingisperformanceenhancement.Thetestsmightdeterminewhichmodulesexecutemostoftenorusethemostcomputertime.   (2).壓力測試 Itstudiestheprogram'sresponsetopeakburstsofactivity.Highvolumeismuchworkoveralongperiod.Highstressismaxloadatonetime.   (3).負載測試 Itstudiesthelargesttaskstheprogramcandealwith       C.wiki   我想wiki的定義有一定的公信力,因此也值得大家參考一下,畢竟前面兩本書的年紀有點大了,看看現在年輕一點的說法是什麼。

  (1).效能測試 Performancetestingistestingthatisperformedtodeterminehowfastsomeaspectofasystemperformsunderaparticularworkload.   (2).壓力測試 Stresstestingisaformoftestingthatisusedtodeterminethestabilityofagivensystemorentity.Itinvolvestestingbeyondnormaloperationalcapacity,oftentoabreaking.   (3).負載測試 Loadtestingistheprocessofrunninganumberofclientssimultaneouslytotestaclient-serversystemandmeasureresponsetimes Loadtestinggenerallyreferstothepracticeofmodelingtheexpectedusageofasoftwareprogrambysimulatingmultipleusersaccessingtheprogram'sservicesconcurrently.Assuch,thistestingismostrelevantformulti-usersystems,oftenonebuiltusingaclient/servermodel,suchaswebservers. Whentheloadplacedonthesystemisraisedbeyondnormalusagepatterns,inordertotestthesystem'sresponseatunusuallyhighorpeakloads,itisknownasStresstesting.Theloadisusuallysogreatthaterrorconditionsaretheexpectedresult,althoughthereisagrayareabetweenthetwodomainsandnoclearboundaryexistswhenanactivityceasestobealoadtestandbecomesastresstest       D.Improving.NETApplicationPerformanceandScalability   最後我們來看微軟的說法,畢竟它是最大的軟體公司,他還是有他獨到的地方。

  (1).效能測試 Performancetestingisusedtoverifythatanapplicationisabletoperformunderexpectedandpeakloadconditions,andthatitcanscalesufficientlytohandleincreasedcapacity. Themaingoalofperformancetestingisidentifyhowwellyourapplicationperformsinrelationtoyourperformanceobjectives.   (2).壓力測試 Usestresstestingtoevaluateyourapplication'sbehaviorwhenit'spushedbeyondthenormalorpealloadconditions.Stresstestyourapplicationbysubjectingittoveryhighloadsthatarebeyondthecapacityoftheapplication,whiledenyingittheresourcesrequiredtoprocessthatload.   (3).負載測試 Useloadtestingtoverifyapplicationbehaviorundernormalandpeakloadconditions. Youincrementallyincreasetheloadfromnormaltopeakloadtoseehowyourapplicationperformswithvaryingloadconditions.   全站熱搜 創作者介紹 kojenchieh DavidKo的學習之旅 kojenchieh發表在痞客邦留言(0)人氣() E-mail轉寄 全站分類:不設分類個人分類:PerformanceTesting此分類上一篇:[軟體效能測試]什麼是效能測試 此分類下一篇:[軟體效能測試]SimultaneousUsers和ConcurrentUsers是什麼? 上一篇:[軟體效能測試]什麼是效能測試 下一篇:[軟體效能測試]SimultaneousUsers和ConcurrentUsers是什麼? 歷史上的今天 2015:Devops常見的迷思 2013:StopStarting,StartFinishing讀書摘要(3) 2009:溫伯格的軟體管理學:關照全局的管理作為(第3卷)中譯本出來了 ▲top 留言列表 發表留言 文章搜尋 熱門文章 最新留言 動態訂閱 文章分類 正念(2)DevOps(13)AgileHR(1)課程介紹(13)retrospective(15)敏捷需求探索(21)自媒體(2)TOC(4)GoogleSprint(31)敏捷轉型(68)LeSS(3)KanbanExperienceReport(20)引導/教練(29)Spotify(4)Pretotyping(7)LeanStartup(22)ImpactMapping(4)AgileUX(35)Kanban(115)LeanfromtheTrenches(11)Estimation(7)Scaling&DistributedAgile(9)StandupMeeting(18)FeatureTeam(10)scrum教學(5)過敏(9)魚油(3)Hadoop(1)Scrum入門手冊(4)KanbanandScrum(44)健康(46)TDD(41)CloudComputing(1)我的Scrum新體驗(4)Innovation(14)TestingBooks/Magazine/WebSite(12)RegressionTest(6)測試管理(18)讀書心得(27)UserStory(19)ContinuousIntegration(16)Scrum(124)AgileConcept(204)勵志(44)ScrumandXP的實戰經驗(65)MSServer(3)PerformanceTesting(38)AgileTesting(41)投資理財(25)ExploratoryTesting(22)C#(1)專案管理(25)測試自動化(62)測試基本知識(108)未分類文章(37) 文章精選 文章精選 2022五月(4) 2022四月(2) 2022一月(2) 2021十二月(4) 2021十一月(3) 2021十月(1) 2021八月(3) 2021七月(1) 2021五月(1) 2021四月(1) 2021三月(5) 2021二月(4) 2021一月(4) 2020十二月(1) 2020十一月(3) 2020十月(1) 2020九月(4) 2020八月(8) 2020七月(7) 2020六月(13) 2020五月(7) 2020四月(5) 2020三月(3) 2020一月(3) 2019十二月(6) 2019十一月(4) 2019十月(2) 2019九月(3) 2019六月(1) 2019三月(6) 2019二月(7) 2019一月(4) 2018十二月(10) 2018十一月(7) 2018十月(8) 2018九月(4) 2018八月(10) 2018七月(1) 2018六月(8) 2018五月(17) 2018四月(5) 2018三月(5) 2018二月(5) 2017十二月(6) 2017十一月(2) 2017十月(9) 2017九月(2) 2017八月(1) 2017七月(6) 2017六月(1) 2017五月(4) 2017四月(3) 2017三月(6) 2017二月(8) 2017一月(6) 2016十二月(2) 2016十一月(4) 2016十月(6) 2016九月(7) 2016八月(4) 2016七月(9) 2016六月(7) 2016五月(5) 2016四月(2) 2016三月(7) 2016二月(8) 2016一月(12) 2015十二月(12) 2015十一月(8) 2015十月(10) 2015九月(14) 2015八月(17) 2015七月(16) 2015六月(13) 2015五月(13) 2015四月(13) 2015三月(15) 2015二月(12) 2015一月(14) 2014十二月(18) 2014十一月(16) 2014十月(18) 2014九月(18) 2014八月(20) 2014七月(19) 2014六月(14) 2014五月(21) 2014四月(20) 2014三月(19) 2014二月(17) 2014一月(21) 2013十二月(13) 2013十一月(4) 2013九月(5) 2013八月(6) 2013七月(3) 2013五月(2) 2013四月(1) 2013三月(8) 2013二月(4) 2013一月(2) 2012十二月(7) 2012十一月(7) 2012十月(15) 2012九月(4) 2012八月(4) 2012七月(1) 2012六月(3) 2012三月(1) 2012二月(11) 2012一月(1) 2011十二月(3) 2011十一月(4) 2011十月(1) 2011九月(10) 2011八月(4) 2011七月(2) 2011六月(3) 2011五月(10) 2011四月(3) 2011三月(4) 2011二月(7) 2011一月(8) 2010十二月(9) 2010十一月(6) 2010十月(12) 2010九月(4) 2010八月(11) 2010七月(13) 2010六月(16) 2010五月(24) 2010四月(35) 2010三月(40) 2010二月(16) 2010一月(20) 2009十二月(26) 2009十一月(25) 2009十月(26) 2009九月(27) 2009八月(23) 2009七月(29) 2009六月(26) 2009五月(29) 2009四月(29) 2009三月(31) 2009二月(25) 2009一月(26) 2008十二月(29) 2008十一月(29) 2008十月(35) 2008九月(23) 2008八月(13) 2008七月(5) 2008六月(2) 所有文章列表 新聞交換(RSS) 參觀人氣 本日人氣: 累積人氣: QRCode POWEREDBY (登入) 回到頁首 回到主文 免費註冊 客服中心 痞客邦首頁 ©2003-2022PIXNET 關閉視窗 PIXNET Facebook Yahoo! Google MSN {{guestName}} (登出) 您尚未登入,將以訪客身份留言。

亦可以上方服務帳號登入留言 請輸入暱稱(最多顯示6個中文字元) 請輸入標題(最多顯示9個中文字元) 請輸入內容(最多140個中文字元) 請輸入左方認證碼: 看不懂,換張圖 請輸入驗證碼 送出留言



請為這篇文章評分?