By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in...

71
© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile By: Scott Barber Chief Technologist PerfTestPlus, Inc. Created for: Fully Integrating Performance Testing: Into Agile Development

Transcript of By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in...

Page 1: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

By:

Scott Barber Chief Technologist

PerfTestPlus, Inc.

Created for:

Fully Integrating Performance Testing:

Into Agile Development

Page 2: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Chief Technologist, PerfTestPlus, Inc. [email protected] www.perftestplus.com

@sbarber

Co-Founder: Workshop On Performance and Reliability www.performance-workshop.org

Scott Barber

Co-Author: Author: Contributing Author:

Books: www.perftestplus.com/pubs About me: about.me/scott.barber

Fully Integrating Performance

Testing: Into Agile Development

Page 3: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

This tutorial is a sub-set of 7 days of instruction (about the same as a 1 semester university course)

I do not believe in “Best Practices” (I believe in

problem solving via experience, experiment & education)

Everything in this tutorial is based on personal

experience in *some* context (but not yours)

Do adapt concepts to your situation/context

I *like* questions! (and challenges)

Do follow–up with me (what works for you… or doesn’t)

Notes

Page 4: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Ask questions (helping you understand is very important

to me)

Do not be shy (did I mention that I *like* to be challenged and interact with you?)

Don’t worry about what “the boss” will or won’t allow (at least not before you I finish explaining)

Do laugh at my jokes (or groan – so I know if it didn’t translate well)

Do network with others who are here (I bet they have great ideas too)

To Get The Most From This Class

Page 5: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

I speak 1 language (not very “naturally”)

I speak quickly (especially when I’m telling stories)

I choose words very carefully (that may or may not translate well)

Some suggestions are harsh (use at your own risk)

WARNING

Page 6: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Page 7: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

System or application characteristics related to:

Speed: - responsiveness - user experience

Scalability: - capacity - load - volume

Stability - consistency - reliability - stress

What is Performance?

Page 8: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

What mom tells people:

I help people make websites go fast.

What is Performance Testing?

What I tell people:

I help and/or teach individuals and organizations to optimize software systems by balancing:

• Cost

• Time to market

• Capacity

while remaining focused on the quality of service to system users.

Page 9: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Performance vs. Load Testing?

Page 10: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Page 14: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

To Prevent Poor Performance…

… don’t just react when it happens.

Page 15: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

An Ounce of Prevention…

Page 17: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

Conception to Headstone

Not

Cradle to Grave

The Performance Lifecycle is:

Page 19: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

… Do you like Swim Lanes?

Page 20: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

…Or maybe Circles?

Page 21: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

• Multi-User Responsiveness

• Resource Trending

• Limit Identification

• Prepare for Prod

• Tune/Optimize

• Predict

• Early Warning Identification

• Single User Responsiveness

• Resource Management

• Component-Level Concurrency

• Current Capacity

• Projections

• Scalability Plan

• Reliability DevOps & Architects

Architects Analysts &

Scrum

Scrum & Load Team

Load Team & DevOps

Dev

Test Stage

Prod

…Or Annotated Pie Charts?

Page 22: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

…Relativistic Comparisons?

Page 23: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

…How about Colors?

Page 27: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

Application Delivery Activities

Page 29: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 31: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 37: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

Units Stories Tiers Resources Goals

Assess Compare Investigate Accept Answer

Dev & Prod Times Resources Sizes Frequencies Dashboard!

Proactive Micro & Macro Establish Goals Update Targets

The four T’s stand for…

Page 39: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 41: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 43: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 45: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 47: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 49: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 50: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist
Page 52: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 53: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 54: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 55: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 56: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 57: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 58: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 59: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 61: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Page 62: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Throughout the Life-Cycle

Load Testing Principles Project context is central to successful testing.

Business, project, system, & user success criteria.

Identify system usage, and key metrics; plan and design tests.

Install and prepare environment, tools, & resource monitors.

Script the tests as designed.

Run and monitor tests. Validate tests, test data, and results.

Analyze the data individually and as a cross-functional team.

Consolidate and share results, customized by audience.

"Lather, rinse, repeat" as necessary.

Page 66: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

Questions?

Page 67: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

Preventing Poor Performance with a little work…

every day… from every one.

Page 69: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Contact Info

Scott Barber

Chief Technologist

PerfTestPlus, Inc

E-mail:

[email protected]

Blog:

scott-barber.blogspot.com

Web Site:

www.PerfTestPlus.com

Twitter:

@sbarber

Page 70: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile

Did we learn anything?

Review & Questions

Page 71: By: Scott Barber - PerfTestPlus › resources › ATD_Tutorial.pdf · 2012-11-20 · Performance in Agile © 2012 PerfTestPlus, Inc.All rights reserved. By: Scott Barber Chief Technologist

© 2012 PerfTestPlus, Inc. All rights reserved. Performance in Agile