Importance of Software Load Testing

download Importance of Software Load Testing

of 23

Transcript of Importance of Software Load Testing

  • 8/11/2019 Importance of Software Load Testing

    1/23

    Why performance testing is

    important ?

    we offer the complete solution for

    performance testing

  • 8/11/2019 Importance of Software Load Testing

    2/23

    Performance & Load TestingBasics

    Introduction to Performance Testing

    Dierence between Performance, Load andStress Testing

    Why Performance Testing?

    When is it required?

    What should be tested?

    Performance Testing Process

    Load Test conguration for a web system

    Practice !uestions

  • 8/11/2019 Importance of Software Load Testing

    3/23

    Introduction to Performance Testing

    Performance testing is the "rocess of determining thes"eed or eecti#eness of a com"uter, networ$,software "rogram or de#ice%

    &efore going into the details, we should understandthe factors that go#erns Performance testing'

    Through"ut

    (es"onse Time

    Tuning

    &enchmar$ing

  • 8/11/2019 Importance of Software Load Testing

    4/23

    Throughput

    )a"ability of a "roduct

    to handle multi"letransactions in a gi#e"eriod%

    Through"ut re"resentsthe number ofrequests*business

    transactions "rocessedby the "roduct in as"ecied time duration%

    +s the number ofconcurrent usersincrease, thethrough"ut increases

    almost linearly with thenumber of requests% +sthere is #ery littlecongestion within the+""lication Ser#ersystem queues%

  • 8/11/2019 Importance of Software Load Testing

    5/23

    Throughput

    In the hea#y load one or Section &, as the concurrent clientload increases, through"ut remains relati#ely constant%

    In Section ) -the buc$le one. one or more of the systemcom"onents ha#e become e/hausted and through"ut starts

    to degrade% 0or e/am"le, the system might enter the buc$leone when the networ$ connections at the Web ser#ere/haust the limits of the networ$ ada"ter or if the requestse/ceed o"erating system limits for le handles%

  • 8/11/2019 Importance of Software Load Testing

    6/23

    Response Time

    It is equally im"ortant tond out how much timeeach of the transactionstoo$ to com"lete%

    (es"onse time isdened as the delaybetween the "oint ofrequest and the rstres"onse from the"roduct%

    The res"onse timeincreases "ro"ortionallyto the user load%

  • 8/11/2019 Importance of Software Load Testing

    7/23

    Tuning

    Tuning is the "rocedureby which "roduct"erformance is enhancedby setting dierent#alues to the "arametersof the "roduct, o"eratingsystem and othercom"onents%

    Tuning im"ro#es the"roduct "erformance

    without ha#ing to touchthe source code of the"roduct%

  • 8/11/2019 Importance of Software Load Testing

    8/23

    Benchmarking

    + #ery well1im"ro#ed"erformance of a"roduct ma$es nobusiness sense if that"erformance doesnot match u" to thecom"etiti#e "roducts%

    + careful analysis isneeded to chal$ outthe list oftransactions to becom"ared across

    "roducts so that ana""le1a""lecom"arison becomes"ossible%

  • 8/11/2019 Importance of Software Load Testing

    9/23

    Performance Testing- Denition

    The testing to e#aluate the res"onse time -s"eed.,through"ut and utiliation of system to e/ecute itsrequired functions in com"arison with dierent #ersionsof the same "roduct or a dierent com"etiti#e "roduct iscalled Performance Testing%

    Performance testing is done to deri#e benchmar$numbers for the system%

    2ea#y load is not a""lied to the system

    Tuning is "erformed until the system under test achie#es

    the e/"ected le#els of "erformance%

  • 8/11/2019 Importance of Software Load Testing

    10/23

    Dierence betweenPerformance Load and !tress Testing

    Load Testing Process of e/ercising the

    system under test by feedingit the largest tas$s it cano"erate with%

    )onstantly increasing theload on the system #ia

    automated tools to simulatereal time scenariowith#irtual users%

    "#amp$es% Testing a word "rocessor by

    editing a #ery largedocument%

    0or Web +""lication load isdened in terms ofconcurrent users or 2TTPconnections%

  • 8/11/2019 Importance of Software Load Testing

    11/23

    Dierence betweenPerformance Load and !tress

    Testing!tress Testing Trying to brea$ the system

    under test by o#erwhelmingits resources or by ta$ingresources away from it%

    Pur"ose is to ma$e sure that

    the system fails and reco#ers

    gracefully%"#amp$e%

    Double the baseline numberfor concurrent users*2TTPconnections%

    (andomly shut down andrestart "orts on the networ$switches*routers thatconnects ser#ers%

  • 8/11/2019 Importance of Software Load Testing

    12/23

    h' Performance Testing(

    The week of )eb * +,,,%2ac$ers deli#ered o#er 31&illion transactions concurrentlyto each one of these sites%

    4ahoo e&ay &uy%com +maon eTrade

    -ow did 'ou think the' performed (

  • 8/11/2019 Importance of Software Load Testing

    13/23

    h' Performance Testing

    Identies "roblems early on before they become costly toresol#e%

    (educes de#elo"ment cycles%

    Produces better quality, more scalable code%

    Pre#ents re#enue and credibility loss due to "oor Web site

    "erformance%

    5nables intelligent "lanning for future e/"ansion%

    To ensure that the system meets "erformance e/"ectationssuch as res"onse time, through"ut etc% under gi#en le#els ofload%

    5/"ose bugs that do not surface in cursory testing, such asmemory management bugs, memory lea$s, buer o#er6ows,etc%

  • 8/11/2019 Importance of Software Load Testing

    14/23

    hen is it re.uired(

    Design Phase%Pages containing lots of images and multimedia forreasonable wait times% 2ea#y loads are lessim"ortant than $nowing which ty"es of contentcause slowdowns%

    De/e$opment Phase%To chec$ results of indi#idual "ages and "rocesses,loo$ing for brea$ing "oints, unnecessary code andbottlenec$s%

    Dep$o'ment Phase%To identify the minimum hardware and softwarerequirements for the a""lication%

  • 8/11/2019 Importance of Software Load Testing

    15/23

    hat shou$d be tested(

    igh fre.uenc' transactions%The most frequently

    used transactions ha#e the "otential to im"act the"erformance of all of the other transactions if they are note7cient%

    0ission 1ritica$ transactions%The more im"ortanttransactions that facilitate the core ob8ecti#es of thesystem should be included, as failure under load of these

    transactions has, by denition, the greatest im"act%

    Read Transactions%+t least one (5+D 9:L4 transactionshould be included, so that "erformance of suchtransactions can be dierentiated from other morecom"le/ transactions%

    2pdate Transactions%+t least one u"date transactionshould be included so that "erformance of suchtransactions can be dierentiated from othertransactions%

  • 8/11/2019 Importance of Software Load Testing

    16/23

    Performance Testing Process

  • 8/11/2019 Importance of Software Load Testing

    17/23

    Determine the performance testing ob3ecti/es

    Describe the app$ication to test using aapp$ication mode$

    3% Describe the 2ardware en#ironment

    ;% )reate a &enchmar$ -+genda. to be recorded inPhase ;%

    +% Dene what tas$s each user will "erform&% Dene -or estimate. the "ercentage of users

    "er tas$%

    45P$anning45P$anning

  • 8/11/2019 Importance of Software Load Testing

    18/23

    Record

    (ecord the dened testing acti#ities that will beused as a foundation for your load test scri"ts%

    9ne acti#ity "er tas$ or multi"le acti#itiesde"ending on user tas$ denition

    0odif'

  • 8/11/2019 Importance of Software Load Testing

    19/23

    7irtua$ 2sers 872s9% Test :oa$s

    Start' =

  • 8/11/2019 Importance of Software Load Testing

    20/23

    0onitoring the scenario%We monitor scenario e/ecution usingthe #arious online runtime monitors%

  • 8/11/2019 Importance of Software Load Testing

    21/23

    Load Generation

    System Under Test

    Benefits of Automation

    Web server Databaseserver

    Vuserhost

    Controller manages the virtual users Analyze results with graphs and

    reports

    Replaces testers with virtual users

    olves the resource limitations

    Runs many Vusers on a few machinesAnalysis

    Controller

  • 8/11/2019 Importance of Software Load Testing

    22/23

    Too$s used forPerformance Testing

    ?pen !ource

    9"enST+

    Diesel Test

    Test

  • 8/11/2019 Importance of Software Load Testing

    23/23