SlideShare una empresa de Scribd logo
1 de 15
The Top7 Mistakes in Performance Testing
Stuart Moncrieff
Good performance testing is really important…
…but so many people do it reallybadly…
…and that reallybothers me.
StuartMoncrieff:Web PerformanceEvangelist
• How am I qualified to be here?
• Web performance specialist since 2002
• 15 years of consulting experience
• I have seen almost all the ways that people
mess up when they are doing performance
testing.
• What I think I look like when I’m talking
about Performance Testing:
• What I actually look like when I’m talking
about Performance Testing:
The “we want the advanced training”paradox
• Companies usually ask to include “expert level”
content in training courses for their staff, even
when their staff don’t understand the basics.
• But their staff are all searching Google for entry-level
training material.
• See also:
• The Dunning-Kruger effect
The structuralproblem: Most companies can’t differentiate
between good and bad performancetesting
• Performance Testing treated as an empty
ritual to be performed before deployment.
• Patterns of dysfunction:
• Not even noticing problems in Production because
performance monitoring is inadequate.
• Problems discovered in Production, even though
they could have been discovered in Test.
• Testing team can blame anything missed on
“differences between Test and Production
environments”.
• Ops team tries to solve performance problems in
Production without involving performance testers.
Tuning in Production. Throwing hardware at the
problem.
Mistake1: Not adding validationchecks in your scripts
Load testing tools will automatically detect HTTP error
codes, but error pages are often served with an HTTP 200
response code.
How do you know your application is not throwing errors under
load?
What you should do:
• Add verification checks for each page request.
• Check for something that indicates success and is unique to
the page.
• Bonus points: static analysis of scripts as they are checked into
version control.
Mistake2: Not monitoringthe Test environment
“Setting up monitoring will take too long, so we won’t
include infrastructure metrics like CPU utilisation in our
report.”
How do you diagnose the root cause of load-related problems
found during testing?
What you should do:
• Make the effort to set up infrastructure monitoring in the Test
environment.
• Bonus points: have exactly the same monitoring in Test and
Production environments.
Mistake3: Bad WorkloadModelling (or none at all)
“We are going to generate 1000 concurrent users worth of
load”
What does that even mean? Web apps care more about requests
per minute than they do about how many virtual users are
configured in your testing tool.
What you should do:
• Use real-world usage data as an input
• Define a Peak Hour usage model that includes a transaction
rate (e.g. orders per hour).
• Include network conditions (Network Virtualization)
• Bonus points: what % of your traffic is generated by bots?
Mistake4: “We only do testing”(silos)
“Our job is all about finding defects in the Test
environment.”
Performance testers can have a stake in system architecture,
capacity planning, monitoring, non-functional requirements,
contracts with vendors (SLAs), and incidents in Production.
What you should do:
• Don’t ignore the app after go-live.
• Keep looking for defects in the Production environment
(using monitoring tools).
• Be an advocate for application performance at every stage of
the software lifecycle.
Mistake5: “We’reresponsetimetesters”(tunnel vision)
“Our job is to measure response times with our load
testing tool.”
Your job is to find load and performance-related
problems…preferably before they reach Production.
What you should do:
• Check for errors under load.
• Test Failover under load.
• Test system behaviour when there are interface outages under
load.
• Ensure that performance problems and system metrics will be
visible to the Ops team in Production.
Mistake6: Ignoringerrorsand otherdefects
“We tried to run our test last night, but the web server
crashed. It’s okay though; they’ve restarted everything
and deleted the logs, so we can re-run the test.”
So it sounds like you actually found a few defects last night.
What you should do:
• Constantly be asking yourself “if this happened in Production,
would it be a problem?”
• If you see something, say something.
• Some of your most interesting days as a testers will start out
with “hmmm…that’s odd.”
Mistake7: Miscalculatingerrorrates
If you are reporting your error rate as:
𝑬𝒓𝒓𝒐𝒓 𝑹𝒂𝒕𝒆 =
𝑷𝒂𝒔𝒔𝒆𝒅 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔
𝑻𝒐𝒕𝒂𝒍 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔
…then you are doing it wrong.
What you should do:
• Report on the probability of the user completing the entire
business process, not just individual steps.
• Bonus points: Under controlled conditions, anything above an 0%
error rate indicates a problem that should be investigated.
Transaction Passed Faile
d
Total
Front page 99,041 959
100,00
0
Search
catalogue
99,002 998
100,00
0
Browse
catalogue
99,033 967
100,00
0
View item 98,966 1,034
100,00
0
Checkout 51 49 100
TOTAL
396,09
3
4,007
400,10
0
Summary of Mistakes
What have we covered?
1. Scripts without enough verification checks
2. Not monitoring the Test environment
3. Bad Workload Modelling
4. Focusing on “performance testing”, rather than
“performance”
5. Thinking your responsibility starts and ends with
response times
6. Ignoring defects that are right in front of you
7. Miscalculating error rates
•
•
•
•

Más contenido relacionado

Más de Neotys_Partner

Twan Koot - Beyond the % usage, an in-depth look into monitoring
Twan Koot - Beyond the % usage, an in-depth look into monitoringTwan Koot - Beyond the % usage, an in-depth look into monitoring
Twan Koot - Beyond the % usage, an in-depth look into monitoringNeotys_Partner
 
Stijn Schepers - Performance Test Automation Beyond Frontier
Stijn Schepers - Performance Test Automation Beyond FrontierStijn Schepers - Performance Test Automation Beyond Frontier
Stijn Schepers - Performance Test Automation Beyond FrontierNeotys_Partner
 
Stephen Townshend - Constellations
Stephen Townshend - ConstellationsStephen Townshend - Constellations
Stephen Townshend - ConstellationsNeotys_Partner
 
Stefano Doni - Achieve Superhuman Performance with Machine Learning
Stefano Doni - Achieve Superhuman Performance with Machine LearningStefano Doni - Achieve Superhuman Performance with Machine Learning
Stefano Doni - Achieve Superhuman Performance with Machine LearningNeotys_Partner
 
Neotys PAC 2018 - Gayatree Nalwadad
Neotys PAC 2018 - Gayatree NalwadadNeotys PAC 2018 - Gayatree Nalwadad
Neotys PAC 2018 - Gayatree NalwadadNeotys_Partner
 
PAC 2018 - Stijn Schepers
PAC 2018 - Stijn SchepersPAC 2018 - Stijn Schepers
PAC 2018 - Stijn SchepersNeotys_Partner
 
Neotys PAC 2018 - Helen Bally
Neotys PAC 2018 - Helen BallyNeotys PAC 2018 - Helen Bally
Neotys PAC 2018 - Helen BallyNeotys_Partner
 
Neotys PAC 2018 - Mark Tomlinson
Neotys PAC 2018 - Mark TomlinsonNeotys PAC 2018 - Mark Tomlinson
Neotys PAC 2018 - Mark TomlinsonNeotys_Partner
 
Neotys PAC 2018 - Wilson Mar
Neotys PAC 2018 - Wilson MarNeotys PAC 2018 - Wilson Mar
Neotys PAC 2018 - Wilson MarNeotys_Partner
 
Neotys PAC 2018 - Thomas Steinmaurer
Neotys PAC 2018 - Thomas SteinmaurerNeotys PAC 2018 - Thomas Steinmaurer
Neotys PAC 2018 - Thomas SteinmaurerNeotys_Partner
 
Neotys PAC 2018 - Todd De Capua
Neotys PAC 2018 - Todd De CapuaNeotys PAC 2018 - Todd De Capua
Neotys PAC 2018 - Todd De CapuaNeotys_Partner
 
Neotys PAC 2018 - Tingting Zong
Neotys PAC 2018 - Tingting ZongNeotys PAC 2018 - Tingting Zong
Neotys PAC 2018 - Tingting ZongNeotys_Partner
 
Neotys PAC 2018 - Thomas Rotté
Neotys PAC 2018 - Thomas RottéNeotys PAC 2018 - Thomas Rotté
Neotys PAC 2018 - Thomas RottéNeotys_Partner
 
Neotys PAC 2018 - Stephen Townshend
Neotys PAC 2018 - Stephen TownshendNeotys PAC 2018 - Stephen Townshend
Neotys PAC 2018 - Stephen TownshendNeotys_Partner
 
Neotys PAC 2018 - Srivalli Aperna
Neotys PAC 2018 - Srivalli ApernaNeotys PAC 2018 - Srivalli Aperna
Neotys PAC 2018 - Srivalli ApernaNeotys_Partner
 
Neotys PAC 2018 - Ramya Ramalinga Moorthy
Neotys PAC 2018 - Ramya Ramalinga MoorthyNeotys PAC 2018 - Ramya Ramalinga Moorthy
Neotys PAC 2018 - Ramya Ramalinga MoorthyNeotys_Partner
 
Neotys PAC 2018 - Jonathon Wright
Neotys PAC 2018 - Jonathon WrightNeotys PAC 2018 - Jonathon Wright
Neotys PAC 2018 - Jonathon WrightNeotys_Partner
 
Neotys PAC 2018 - Ian Molyneaux
Neotys PAC 2018 - Ian MolyneauxNeotys PAC 2018 - Ian Molyneaux
Neotys PAC 2018 - Ian MolyneauxNeotys_Partner
 
Neotys PAC 2018 - Bruno Da Silva
Neotys PAC 2018 - Bruno Da SilvaNeotys PAC 2018 - Bruno Da Silva
Neotys PAC 2018 - Bruno Da SilvaNeotys_Partner
 

Más de Neotys_Partner (20)

Twan Koot - Beyond the % usage, an in-depth look into monitoring
Twan Koot - Beyond the % usage, an in-depth look into monitoringTwan Koot - Beyond the % usage, an in-depth look into monitoring
Twan Koot - Beyond the % usage, an in-depth look into monitoring
 
Stijn Schepers - Performance Test Automation Beyond Frontier
Stijn Schepers - Performance Test Automation Beyond FrontierStijn Schepers - Performance Test Automation Beyond Frontier
Stijn Schepers - Performance Test Automation Beyond Frontier
 
Stephen Townshend - Constellations
Stephen Townshend - ConstellationsStephen Townshend - Constellations
Stephen Townshend - Constellations
 
Stefano Doni - Achieve Superhuman Performance with Machine Learning
Stefano Doni - Achieve Superhuman Performance with Machine LearningStefano Doni - Achieve Superhuman Performance with Machine Learning
Stefano Doni - Achieve Superhuman Performance with Machine Learning
 
Neotys PAC 2018 - Gayatree Nalwadad
Neotys PAC 2018 - Gayatree NalwadadNeotys PAC 2018 - Gayatree Nalwadad
Neotys PAC 2018 - Gayatree Nalwadad
 
PAC 2018 - Stijn Schepers
PAC 2018 - Stijn SchepersPAC 2018 - Stijn Schepers
PAC 2018 - Stijn Schepers
 
Neotys PAC 2018 - Helen Bally
Neotys PAC 2018 - Helen BallyNeotys PAC 2018 - Helen Bally
Neotys PAC 2018 - Helen Bally
 
Neotys PAC 2018 - Mark Tomlinson
Neotys PAC 2018 - Mark TomlinsonNeotys PAC 2018 - Mark Tomlinson
Neotys PAC 2018 - Mark Tomlinson
 
Neotys PAC 2018 - Wilson Mar
Neotys PAC 2018 - Wilson MarNeotys PAC 2018 - Wilson Mar
Neotys PAC 2018 - Wilson Mar
 
Neotys PAC - Zak Cole
Neotys PAC - Zak ColeNeotys PAC - Zak Cole
Neotys PAC - Zak Cole
 
Neotys PAC 2018 - Thomas Steinmaurer
Neotys PAC 2018 - Thomas SteinmaurerNeotys PAC 2018 - Thomas Steinmaurer
Neotys PAC 2018 - Thomas Steinmaurer
 
Neotys PAC 2018 - Todd De Capua
Neotys PAC 2018 - Todd De CapuaNeotys PAC 2018 - Todd De Capua
Neotys PAC 2018 - Todd De Capua
 
Neotys PAC 2018 - Tingting Zong
Neotys PAC 2018 - Tingting ZongNeotys PAC 2018 - Tingting Zong
Neotys PAC 2018 - Tingting Zong
 
Neotys PAC 2018 - Thomas Rotté
Neotys PAC 2018 - Thomas RottéNeotys PAC 2018 - Thomas Rotté
Neotys PAC 2018 - Thomas Rotté
 
Neotys PAC 2018 - Stephen Townshend
Neotys PAC 2018 - Stephen TownshendNeotys PAC 2018 - Stephen Townshend
Neotys PAC 2018 - Stephen Townshend
 
Neotys PAC 2018 - Srivalli Aperna
Neotys PAC 2018 - Srivalli ApernaNeotys PAC 2018 - Srivalli Aperna
Neotys PAC 2018 - Srivalli Aperna
 
Neotys PAC 2018 - Ramya Ramalinga Moorthy
Neotys PAC 2018 - Ramya Ramalinga MoorthyNeotys PAC 2018 - Ramya Ramalinga Moorthy
Neotys PAC 2018 - Ramya Ramalinga Moorthy
 
Neotys PAC 2018 - Jonathon Wright
Neotys PAC 2018 - Jonathon WrightNeotys PAC 2018 - Jonathon Wright
Neotys PAC 2018 - Jonathon Wright
 
Neotys PAC 2018 - Ian Molyneaux
Neotys PAC 2018 - Ian MolyneauxNeotys PAC 2018 - Ian Molyneaux
Neotys PAC 2018 - Ian Molyneaux
 
Neotys PAC 2018 - Bruno Da Silva
Neotys PAC 2018 - Bruno Da SilvaNeotys PAC 2018 - Bruno Da Silva
Neotys PAC 2018 - Bruno Da Silva
 

Último

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 

Último (20)

Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 

Neotys PAC - Stuart Moncrieff

  • 1. The Top7 Mistakes in Performance Testing Stuart Moncrieff
  • 2. Good performance testing is really important… …but so many people do it reallybadly… …and that reallybothers me.
  • 3. StuartMoncrieff:Web PerformanceEvangelist • How am I qualified to be here? • Web performance specialist since 2002 • 15 years of consulting experience • I have seen almost all the ways that people mess up when they are doing performance testing.
  • 4. • What I think I look like when I’m talking about Performance Testing: • What I actually look like when I’m talking about Performance Testing:
  • 5. The “we want the advanced training”paradox • Companies usually ask to include “expert level” content in training courses for their staff, even when their staff don’t understand the basics. • But their staff are all searching Google for entry-level training material. • See also: • The Dunning-Kruger effect
  • 6. The structuralproblem: Most companies can’t differentiate between good and bad performancetesting • Performance Testing treated as an empty ritual to be performed before deployment. • Patterns of dysfunction: • Not even noticing problems in Production because performance monitoring is inadequate. • Problems discovered in Production, even though they could have been discovered in Test. • Testing team can blame anything missed on “differences between Test and Production environments”. • Ops team tries to solve performance problems in Production without involving performance testers. Tuning in Production. Throwing hardware at the problem.
  • 7. Mistake1: Not adding validationchecks in your scripts Load testing tools will automatically detect HTTP error codes, but error pages are often served with an HTTP 200 response code. How do you know your application is not throwing errors under load? What you should do: • Add verification checks for each page request. • Check for something that indicates success and is unique to the page. • Bonus points: static analysis of scripts as they are checked into version control.
  • 8. Mistake2: Not monitoringthe Test environment “Setting up monitoring will take too long, so we won’t include infrastructure metrics like CPU utilisation in our report.” How do you diagnose the root cause of load-related problems found during testing? What you should do: • Make the effort to set up infrastructure monitoring in the Test environment. • Bonus points: have exactly the same monitoring in Test and Production environments.
  • 9. Mistake3: Bad WorkloadModelling (or none at all) “We are going to generate 1000 concurrent users worth of load” What does that even mean? Web apps care more about requests per minute than they do about how many virtual users are configured in your testing tool. What you should do: • Use real-world usage data as an input • Define a Peak Hour usage model that includes a transaction rate (e.g. orders per hour). • Include network conditions (Network Virtualization) • Bonus points: what % of your traffic is generated by bots?
  • 10. Mistake4: “We only do testing”(silos) “Our job is all about finding defects in the Test environment.” Performance testers can have a stake in system architecture, capacity planning, monitoring, non-functional requirements, contracts with vendors (SLAs), and incidents in Production. What you should do: • Don’t ignore the app after go-live. • Keep looking for defects in the Production environment (using monitoring tools). • Be an advocate for application performance at every stage of the software lifecycle.
  • 11. Mistake5: “We’reresponsetimetesters”(tunnel vision) “Our job is to measure response times with our load testing tool.” Your job is to find load and performance-related problems…preferably before they reach Production. What you should do: • Check for errors under load. • Test Failover under load. • Test system behaviour when there are interface outages under load. • Ensure that performance problems and system metrics will be visible to the Ops team in Production.
  • 12. Mistake6: Ignoringerrorsand otherdefects “We tried to run our test last night, but the web server crashed. It’s okay though; they’ve restarted everything and deleted the logs, so we can re-run the test.” So it sounds like you actually found a few defects last night. What you should do: • Constantly be asking yourself “if this happened in Production, would it be a problem?” • If you see something, say something. • Some of your most interesting days as a testers will start out with “hmmm…that’s odd.”
  • 13. Mistake7: Miscalculatingerrorrates If you are reporting your error rate as: 𝑬𝒓𝒓𝒐𝒓 𝑹𝒂𝒕𝒆 = 𝑷𝒂𝒔𝒔𝒆𝒅 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔 𝑻𝒐𝒕𝒂𝒍 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔 …then you are doing it wrong. What you should do: • Report on the probability of the user completing the entire business process, not just individual steps. • Bonus points: Under controlled conditions, anything above an 0% error rate indicates a problem that should be investigated. Transaction Passed Faile d Total Front page 99,041 959 100,00 0 Search catalogue 99,002 998 100,00 0 Browse catalogue 99,033 967 100,00 0 View item 98,966 1,034 100,00 0 Checkout 51 49 100 TOTAL 396,09 3 4,007 400,10 0
  • 14. Summary of Mistakes What have we covered? 1. Scripts without enough verification checks 2. Not monitoring the Test environment 3. Bad Workload Modelling 4. Focusing on “performance testing”, rather than “performance” 5. Thinking your responsibility starts and ends with response times 6. Ignoring defects that are right in front of you 7. Miscalculating error rates