performance testing back to basics may 2013. who am i?

67
Performance Testing Back to Basics May 2013

Upload: rosamund-greer

Post on 25-Dec-2015

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Performance Testing Back to Basics May 2013. Who Am I?

Performance Testing

Back to Basics

May 2013

Page 2: Performance Testing Back to Basics May 2013. Who Am I?

Who Am I?

Page 3: Performance Testing Back to Basics May 2013. Who Am I?

Who Am I?

Page 4: Performance Testing Back to Basics May 2013. Who Am I?

Who Are You?

Page 5: Performance Testing Back to Basics May 2013. Who Am I?

Who Are You?

Performance testers?

Page 6: Performance Testing Back to Basics May 2013. Who Am I?

Who Are You?

Performance testers Testers/QA?

Page 7: Performance Testing Back to Basics May 2013. Who Am I?

Who Are You?

Performance testers Testers/QA Developers?

Page 8: Performance Testing Back to Basics May 2013. Who Am I?

Who Are You?

Performance testers Testers/QA Developers CFR Cluj Supporters?

Page 9: Performance Testing Back to Basics May 2013. Who Am I?

Today

4 sessions about an hour each Some practical work in groups Any questions/comments speak up Please share your thoughts/experiences

Page 10: Performance Testing Back to Basics May 2013. Who Am I?

Conversation NOT lecture

Page 11: Performance Testing Back to Basics May 2013. Who Am I?

Performance Testing

Back to Basics

Page 12: Performance Testing Back to Basics May 2013. Who Am I?

What is Performance Testing?

?

Page 13: Performance Testing Back to Basics May 2013. Who Am I?

What is Performance Testing?

performance testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload?

Wikipedia 2013

Page 14: Performance Testing Back to Basics May 2013. Who Am I?

What is Performance Testing?

Load Testing Stress Testing Soak Testing Spike Testing Configuration Testing Isolation Testing

Page 15: Performance Testing Back to Basics May 2013. Who Am I?

Some History

Page 16: Performance Testing Back to Basics May 2013. Who Am I?

Traditional Performance Testing

understand the volumes Model the business processes Run experiments (tests) Measure performance indicators (response time,

cpu etc.) Tune if needed Sign off report

Page 17: Performance Testing Back to Basics May 2013. Who Am I?

Some History

Page 18: Performance Testing Back to Basics May 2013. Who Am I?

Some History

Page 19: Performance Testing Back to Basics May 2013. Who Am I?

Some History

Page 20: Performance Testing Back to Basics May 2013. Who Am I?

From This

Page 21: Performance Testing Back to Basics May 2013. Who Am I?

To This

Page 22: Performance Testing Back to Basics May 2013. Who Am I?

Applications have changed

More complex functionality Minimal defined business processes Diverse Public Internet Use of services (homegrown and third party) Cacheing Increased Client functionality (javascript etc.)

Page 23: Performance Testing Back to Basics May 2013. Who Am I?

Applications have changed

Cloud computing Multiple client platforms (tablet, mobile etc.) Push technology

Page 24: Performance Testing Back to Basics May 2013. Who Am I?

Traditional Performance Testing

Focus on IT/IS requirements Too difficult to model the entire application Length of time it takes to run a performance test Models have too many variables to be reliable

Problems

Page 25: Performance Testing Back to Basics May 2013. Who Am I?

New Approaches to Performance

As applications have increased in complexity and application usage has become more diverse we have developed new tools and approaches to help us predict and manage the performance of applications

Page 26: Performance Testing Back to Basics May 2013. Who Am I?

New Approaches to Performance

Synthetic testing (traditional perf testing)

A/B testing

Instrumentation/Analytics (RUM)

React Fast

Over_Provision

Third Party tools

Page 27: Performance Testing Back to Basics May 2013. Who Am I?

Performance Testing

Back To Basics

Page 28: Performance Testing Back to Basics May 2013. Who Am I?

Rank Sites by Performance

News related websites www.nytimes.com news.bbc.co.uk www.huffingtonpost.co.uk tv.msnbc.com www.cnn.com www.dailymail.co.uk

Page 29: Performance Testing Back to Basics May 2013. Who Am I?

Rank Sites by Performance

News related websites by response time news.bbc.co.uk (0.7) www.dailymail.co.uk (3.3) www.cnn.com (3.5) www.nytimes.com (3.9) tv.msnbc.com (5.5) www.huffingtonpost.co.uk (6.3)

Gomez April 2013

Page 30: Performance Testing Back to Basics May 2013. Who Am I?

Rank Sites by Performance

News related websites by popularity www.cnn.com tv.msnbc.com www.nytimes.com www.huffingtonpost.co.uk www.dailymail.co.uk news.bbc.co.uk

Page 31: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

Page 32: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

WHO?

Page 33: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

WHO? WHAT?

Page 34: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

WHO? WHAT? WHY?

Page 35: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

WHO? WHAT? WHY? WHEN?

Page 36: Performance Testing Back to Basics May 2013. Who Am I?

The Five W's

WHO? WHAT? WHY? WHEN? WHERE?

Page 37: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

IS/IT Department

Page 38: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

IS/IT Department Protection of production Stability Capacity Resource

Page 39: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

Customer

Page 40: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

Customer Stability (of Browser) Freezing Consistency Ease of use (fewest steps to get job done)

Page 41: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

Business

Page 42: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

Business Revenue Unique monthly visitors Conversion rates Site Abandonment rate

Page 43: Performance Testing Back to Basics May 2013. Who Am I?

Who is interested in performance?

As Application complexity has increased so too has the amount of performance related information available

As a performance tester it is important to be able to interpret the data and be able to present information that is useful and relevant to people.

Page 44: Performance Testing Back to Basics May 2013. Who Am I?

Test models

Choose 2 key business processes for each site www.amazon.com www.lastminute.com www.digitalspy.co.uk

Page 45: Performance Testing Back to Basics May 2013. Who Am I?

Test models

Choose 2 key business processes for each site www.amazon.com

Page 46: Performance Testing Back to Basics May 2013. Who Am I?

Test models

Choose 2 key business processes for each site www.lastminute.com

Page 47: Performance Testing Back to Basics May 2013. Who Am I?

Test models

Choose 2 key business processes for each site www.digitalspy.co.uk

Page 48: Performance Testing Back to Basics May 2013. Who Am I?

What to Test?

Information used to prioritize testing

Page 49: Performance Testing Back to Basics May 2013. Who Am I?

What to Test?

Information used to prioritize testing New technology Heavy usage Spikes in usage Key revenue generators Customer goals (or hot buttons)

Page 50: Performance Testing Back to Basics May 2013. Who Am I?

What to Test?

As it has become harder to model and test an entire application, being able to identify which areas of an application are key for performance is now more important than ever

Page 51: Performance Testing Back to Basics May 2013. Who Am I?

Test models

Choose 2 key business processes for each site www.facebook.com www.youtube.com

Page 52: Performance Testing Back to Basics May 2013. Who Am I?

Why Do we Test?

?

Page 53: Performance Testing Back to Basics May 2013. Who Am I?

Why Do we Test?

Prevent problems Validate improvements Reproduce problems Aid in decision making

Page 54: Performance Testing Back to Basics May 2013. Who Am I?

Why Do we Test?

What Does a Successful Test look like?

Setting goals Convert business goals into technical model Volumes (Average, Peak)

Page 55: Performance Testing Back to Basics May 2013. Who Am I?

Understanding business process

Using Webpagetest

Free tool to allow you to see underlying calls made when you execute a business process

Identify Key calls for performance

Page 56: Performance Testing Back to Basics May 2013. Who Am I?

Understanding business process

Using Webpagetest

http://www.webperformancetoday.com/2010/07/09/waterfalls-101/

Page 57: Performance Testing Back to Basics May 2013. Who Am I?

Using Webpagetest

News related websites www.nytimes.com news.bbc.co.uk www.huffingtonpost.co.uk tv.msnbc.com www.cnn.com www.dailymail.co.uk

Page 58: Performance Testing Back to Basics May 2013. Who Am I?

Understanding business process

Identify Key calls for performance

Based on who is Interested Based on what the key business processes are Based on why you are testing

Page 59: Performance Testing Back to Basics May 2013. Who Am I?

Why do we Test?

Integrate business goals with technical and customer goals

Be wary of using design/developers as way of understanding what the application really does

Page 60: Performance Testing Back to Basics May 2013. Who Am I?

When to Test?

Traditionally performance testing was done just prior to release. Reasons for this:

Models take time to build Need for stable baseline to compare against Site must be functional before perf testing

Page 61: Performance Testing Back to Basics May 2013. Who Am I?

When to Test?

Rise of Agile requires new approaches Split up into smaller component models to

allow testing during development Clustering production allows testing in

production with incremental rollout Test in design

Page 62: Performance Testing Back to Basics May 2013. Who Am I?

Web Sequence diagrams

Example for Facebook Login

http://www.uml-diagrams.org/sequence-diagrams-examples.html

Page 63: Performance Testing Back to Basics May 2013. Who Am I?

Where to Test?

Dedicated Performance environment Prod Disaster recovery QA/Dev Environment Preprod Isolated components

Page 64: Performance Testing Back to Basics May 2013. Who Am I?

Where to Test?

Dont forget the surrounding infrastructure Network Load Balancers Caches CDN Third Party services

Page 65: Performance Testing Back to Basics May 2013. Who Am I?

How?

Lots of Vendors promising magic. Get demos and proof of concept for your site

Only once you have a good understanding of the basics for your site.

Page 66: Performance Testing Back to Basics May 2013. Who Am I?

How?

Dont forget the basic free tools available WebPageTest Browser developer tools Curl SoapUI/LoadUI Many others

Page 67: Performance Testing Back to Basics May 2013. Who Am I?

Questions