Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Real World Problems, Real World Load Testing

Real World Problems, Real World Load Testing

Deck used for our Industry Technical Presentation (Vendor Session) at StarEast 2012. This deck accompanied my demo of Telerik's Test Studio Load Testing.

Jim Holmes

April 20, 2012
Tweet

More Decks by Jim Holmes

Other Decks in Technology

Transcript

  1. Real  World  Problems,   Real  World  Load  Tes1ng   Jim

     Holmes   Evangelist,  Test  Studio   @aJimHolmes   h7p://bit.ly/JimAtTestStudio   [email protected]  
  2. What  the  CEO/customer  wants:   “Can  our  site  survive  as

     we  grow?”     “Will  our  users  be  happy  when  the  system’s   being  used?”    
  3. The  cost  of  degraded  performance   “According  to  a  2008

     Aberdeen  Group  study,  a  1-­‐second  delay     in  page  load  Ome  equals  11  percent  fewer  page  views,  a  16     percent  decrease  in  customer  saOsfacOon,  and  a  7  percent     loss  in  conversions.  In  dollar  terms,  this  means  that  if  a  site     typically  earns  $100,000  a  day,  this  year  you  could  lose  $2.5     million  in  sales  for  every  second  slower  your  site  is  compared     to   last   year   (or,   for   that   ma7er,   compared   to   your   compeOtor’s  website).”    -­‐-­‐  Web  Load  Tes+ng  for  Dummies    
  4. What’s  on  the  menu   •  Types  of  Load  TesOng

      •  SeZng  ExpectaOons   •  What   •  Where   •  How   •  Demo!  
  5. Set  Expecta1ons  Early   •  What  are  our  realisOc  goals?

      •  “Do  we  really  need  to  support  China  when  we  will   only  serve  our  neighborhood?”  -­‐-­‐  @BenCarey   •  Need  People,  Hardware,  TIME   •  What’s  on  the  table  for  fixing?  
  6. WHERE  do  we  test?   •  Internal   •  Lets

     us  focus  on  system  behavior   •  Hardware,  cache,  app  itself   •  External   •  Focus  is  on  overall  system,  usability  
  7. WHAT  do  we  test?   •  ExisOng  site?  Learn  the

     traffic  pa7erns.   •  How  do  users  use  your  site?   •  Got  history?  Hit  your  web  server  logs,  eg   •  Build  your  scenarios  to  mimic   •  Think  Omes   •  Ramp  up  
  8. HOW  do  we  test?   •  Control  the  environment  

    •  Change  ONE  THING  at  a  Ome   •  Automate  setup  &  config   •  Baseline  data   •  System  config   •  Flush  caches,  app  pools,  etc   •  Warmup  scripts  
  9. A  Sample  Load  Test   An   online   shopping

      cart   applicaOon   is   required   to   support   10,000   concurrent   users   broken  out  into  following  acOviOes:     •  7500  Virtual  Users  (VU’s)  log  in,  browse  through  items  and  then  log  off.   •  1250  VU’s  log  in,  add  items  to  their  shopping  cart,  check  out  and  then  log  off.   •  750  VU’s  log  in,  request  RMA  and  then  log  off.   •  500  VU’s  just  log  in  without  any  subsequent  acOvity.   *Each  of  the  below  is  classified  as  a  ‘User  Profile’  or  ‘Scenario’.   -­‐Wikipedia  
  10. How  We  Do  It.   Test  Studio   (create,  execute)

      Controller  /   Reporter   Agent   (Generates  Load  /  VU’s)     Agent   (Generates  Load  /  VU’s)     Agent   (Generates  Load  /  VU’s)     ApplicaOon  
  11. Virtual  User   Agent   (Generates  Load  /   VU’s)

        ApplicaOon   HTTP(S)  Request  to  Server   HTTP(S)  Response  from  Server   HTTP(S)  Request  to  Server   HTTP(S)  Response  from  Server