SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 1
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
USING MACHINE LEARNING TO SUPPORT TESTING
Júlio de Lima
Principal QA Engineer @ Capco
julio.lima@capco.com
twitter.com/juliodelimas
linkedin.com/in/juliodelimas/
THE PROBLEM
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 4
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Response Time Graph
Accessing the Main Page Logging in
Milliseconds
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 5
Response Time Graph
Accessing the Main Page Logging in
Milliseconds
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Response Time Graph
1-hour load testing execution
50 virtual users
300k lines of results from JMeter
Two transactions being executed
About the Test
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 6
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA Where are the flaws?
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 7
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Where should I investigate?
Application
Logs
Responses from
the Server
Infrastructure
Logs
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 8
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Where should I investigate?
Application
Logs
Responses from
the Server
Infrastructure
Logs
Here, on the JMeter Test Results
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 9
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Access the Main Page
Access the Main Page
Access the Main Page
Access the Main Page
Access the Main Page
Access the Main Page
Logging in
Logging in
Logging in
Logging in
Logging in
Logging in
Reading the
Results Data
Table
300k samples, It’s
difficult to find flaws
here!
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 10
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Response Time Graph
Reading the Results Graph
It's too dense!
Response Time Graph
Accessing the Main Page Logging in
Milliseconds
It’s impossible to read it!
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 11
Response Time Graph
Accessing the Main Page Logging in
Milliseconds
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Gotcha, 72 seconds!
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 12
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Are you sure?
THE SOLUTION APPROACH
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 14
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
1 Pre-process
the data
2 Use K-means
clustering algorithm
3 Analyze a cluster and
its central tendency
measures
4 Be happy
by reducing the
scope analysis
300k → 1k
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 15
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Tell me more about it!
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 16
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
1 Pre-process
the data
a) Redundant records were removed, causing the
number of instances, 294,554, to be reduced to
196,335;
b) The identification attributes were ignored and
only the following were used in the experiments:
elapsed, bytes, sentBytes, Latency and Connect;
c) The data mentioned were normalized within the
range of 0 to 1.
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 17
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
2 Use K-means
clustering algorithm
A clustering algorithm that aims at identifying
groups of similar observations based on the mean.
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 18
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
3 Analyze a cluster and
its central tendency
measures
I define, empirically, that I want to know what it
would be like if there was a separation of the
dataset into 6 clusters of similar information
Cluster Observations (ms) Distribution
0 5472 3%
1 19119 10%
2 79035 40%
3 871 0%
4 48549 25%
5 43309 22%
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 19
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
4 Be happy
by reducing the
scope analysis
300k → 1k
Response Message Samples
OK 50
Non HTTP response message:
157.230.233.185:80 failed to respond
761
Non HTTP response message: Connect to
157.230.233.185:80 [/157.230.233.185]
failed: operation timed out (connection timed
out)
9
Non HTTP response message: operation timed
out (read failed)
1
Non HTTP response message: socket closed 50
A quick mode analysis of Cluster 3 response
message attribute
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 20
The response time of most samples was 10%
shorter than the peak initially identified (72
seconds)
MAXIMUM
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 21
REDUCING THE SCOPE OF
LOAD TEST ANALYSIS
BY JÚLIO DE LIMA
Smaller than you thought ;)
HANDS-ON!
Júlio de Lima
Principal QA Engineer @ Capco
julio.lima@capco.com
t.me/juliodelimas-en
twitter.com/juliodelimas
linkedin.com/in/juliodelimas/
Questions?
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 24
1998FOUNDED
21EXPERIENCE
INDUSTRY
YEARS
5000EMPLOYEES
27 WORLDWIDE OFFICES
ACROSS 4 CONTINENTS
GLOBAL
90
+
CLIENTS
INDUSTRIES
BANKING & PAYMENTS
WEALTH & ASSET MANAGEMENT
ENERGY MARKETS
CAPITAL MARKETS
INSURANCE
INNOVATION
AND THOUGHT
LEADERSHIP
DIGITAL
TRANSFORMATION
EXECUTION
EXCELLENCE
UNIQUE
CULTURE
INDUSTRY
EXPERIENCE
FAST FACTS
Capco is a global business and technology consultancy focused on financial services.
INNOVATORS: We are innovators who combine a disruptive, design-thinking approach with
unrivalled, first-hand industry knowledge and technology acumen.
FACILITATORS: We facilitate the handshake between the business and technology organizations to
deliver end-to-end consulting services and solutions.
TRANSFORMATION SPECIALISTS: We help our clients transform and advance their businesses,
increase revenue, manage risk and regulatory change.
We consistently deliver these core tenets as part of our brand:
ABOUT CAPCO
24
© 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 25
ABOUT CAPCO
WORLDWIDE OFFICES
Bangalore  Bangkok  Bratislava  Brussels  Charlotte  Chicago  Dallas  Dusseldorf  Edinburgh  Frankfurt  Geneva  Hong Kong  Houston
Kuala Lumpur  London  New York  Orlando  Paris  Pune  Sao Paulo  Singapore  Toronto  Tysons Corner  Vienna  Warsaw
Washington, D.C.  Zurich
Capco is a global technology and management consultancy dedicated to the financial services industry. Our professionals combine innovative
thinking with unrivalled industry knowledge to offer our clients consulting expertise, complex technology and package integration,
transformation delivery, and managed services, to move their organizations forward.
Through our collaborative and efficient approach, we help our clients successfully innovate, increase revenue, manage risk and regulatory
change, reduce costs, and enhance controls. We specialize primarily in banking, capital markets, wealth and investment management, finance,
risk & compliance and insurance. We also have an energy consulting practice in the US. We serve our clients from offices in leading financial
centers across the Americas, Europe, and Asia Pacific.
To learn more, visit our website at www.capco.com or follow us on Twitter, Facebook, YouTube, LinkedIn, Instagram and Xing.

Contenu connexe

Similaire à Reducing the scope of load test analysis (STAREast 2020)

DIgital Energy 2019
DIgital Energy 2019DIgital Energy 2019
DIgital Energy 2019
Ray Bugg
 

Similaire à Reducing the scope of load test analysis (STAREast 2020) (20)

Six Sigma Executive Overview
Six Sigma Executive OverviewSix Sigma Executive Overview
Six Sigma Executive Overview
 
遷移到雲端的成功秘訣
遷移到雲端的成功秘訣遷移到雲端的成功秘訣
遷移到雲端的成功秘訣
 
SAP Process Mining in Action: Hear from Two Customers
SAP Process Mining in Action: Hear from Two CustomersSAP Process Mining in Action: Hear from Two Customers
SAP Process Mining in Action: Hear from Two Customers
 
Veejay Jadhaw, Digital and Cloud Computing in Financial Services
Veejay Jadhaw, Digital and Cloud Computing in Financial ServicesVeejay Jadhaw, Digital and Cloud Computing in Financial Services
Veejay Jadhaw, Digital and Cloud Computing in Financial Services
 
Accelerate Actionable Insights with the Business Data Lake
Accelerate Actionable Insights with the Business Data LakeAccelerate Actionable Insights with the Business Data Lake
Accelerate Actionable Insights with the Business Data Lake
 
Software Principles and Project Deadlines Don't have to be Polar Opposites.pdf
Software Principles and Project Deadlines Don't have to be Polar Opposites.pdfSoftware Principles and Project Deadlines Don't have to be Polar Opposites.pdf
Software Principles and Project Deadlines Don't have to be Polar Opposites.pdf
 
Oracle Cloud modernized Finance Process at CSL
Oracle Cloud modernized Finance Process at CSLOracle Cloud modernized Finance Process at CSL
Oracle Cloud modernized Finance Process at CSL
 
AWS Summit
AWS Summit AWS Summit
AWS Summit
 
SDI MRO Connected
SDI MRO ConnectedSDI MRO Connected
SDI MRO Connected
 
ADV Slides: Strategies for Transitioning to a Cloud-First Enterprise
ADV Slides: Strategies for Transitioning to a Cloud-First EnterpriseADV Slides: Strategies for Transitioning to a Cloud-First Enterprise
ADV Slides: Strategies for Transitioning to a Cloud-First Enterprise
 
GoCo Group - NOAH19 London
GoCo Group - NOAH19 LondonGoCo Group - NOAH19 London
GoCo Group - NOAH19 London
 
Machine Learning in Action
Machine Learning in ActionMachine Learning in Action
Machine Learning in Action
 
Stargo - NOAH18 Tel Aviv
Stargo - NOAH18 Tel Aviv Stargo - NOAH18 Tel Aviv
Stargo - NOAH18 Tel Aviv
 
Managing Assets for Maximum Performance and Value
Managing Assets for Maximum Performance and ValueManaging Assets for Maximum Performance and Value
Managing Assets for Maximum Performance and Value
 
7. Andy Campbell - Make the Most of the Cloud
7. Andy Campbell -  Make the Most of the Cloud7. Andy Campbell -  Make the Most of the Cloud
7. Andy Campbell - Make the Most of the Cloud
 
12/6 Initiative
12/6 Initiative12/6 Initiative
12/6 Initiative
 
DIgital Energy 2019
DIgital Energy 2019DIgital Energy 2019
DIgital Energy 2019
 
Connected planning for construction
Connected planning for constructionConnected planning for construction
Connected planning for construction
 
Trash the Rulebook
Trash the RulebookTrash the Rulebook
Trash the Rulebook
 
Ge Six Sigma
Ge Six SigmaGe Six Sigma
Ge Six Sigma
 

Plus de Júlio de Lima

Plus de Júlio de Lima (20)

[ATC2021] Distribuição de Testes em Diferentes Camadas
[ATC2021] Distribuição de Testes em Diferentes Camadas[ATC2021] Distribuição de Testes em Diferentes Camadas
[ATC2021] Distribuição de Testes em Diferentes Camadas
 
ALTER FACE Test Heuristic
ALTER FACE Test HeuristicALTER FACE Test Heuristic
ALTER FACE Test Heuristic
 
[ScrumDay2020] A evolução da responsabilidade em testes
[ScrumDay2020] A evolução da responsabilidade em testes[ScrumDay2020] A evolução da responsabilidade em testes
[ScrumDay2020] A evolução da responsabilidade em testes
 
[TDC2019] Inteligência Artificial e Testes in a Nutshell
[TDC2019] Inteligência Artificial e Testes  in a Nutshell[TDC2019] Inteligência Artificial e Testes  in a Nutshell
[TDC2019] Inteligência Artificial e Testes in a Nutshell
 
[GaragemTalks2019] Cultura de Testes e Qualidade de Software
[GaragemTalks2019] Cultura de Testes e Qualidade de Software[GaragemTalks2019] Cultura de Testes e Qualidade de Software
[GaragemTalks2019] Cultura de Testes e Qualidade de Software
 
[MoT SP #1] PRISMA para Testes Baseados em Risco
[MoT SP #1] PRISMA para Testes Baseados em Risco[MoT SP #1] PRISMA para Testes Baseados em Risco
[MoT SP #1] PRISMA para Testes Baseados em Risco
 
Mindset de QA em Diferentes Contextos
Mindset de QA em Diferentes ContextosMindset de QA em Diferentes Contextos
Mindset de QA em Diferentes Contextos
 
[DevelopersBR-2018] Testes de performance usando a nuvem
[DevelopersBR-2018] Testes de performance usando a nuvem[DevelopersBR-2018] Testes de performance usando a nuvem
[DevelopersBR-2018] Testes de performance usando a nuvem
 
[7Masters Aug, 2018] Escolhas durante automação de testes de API
[7Masters Aug, 2018] Escolhas durante automação de testes de API[7Masters Aug, 2018] Escolhas durante automação de testes de API
[7Masters Aug, 2018] Escolhas durante automação de testes de API
 
[Front in Sampa 2018] Desenvolvendo como QAs
[Front in Sampa 2018] Desenvolvendo como QAs[Front in Sampa 2018] Desenvolvendo como QAs
[Front in Sampa 2018] Desenvolvendo como QAs
 
Mindset do QA em diferentes contextos
Mindset do QA em diferentes contextosMindset do QA em diferentes contextos
Mindset do QA em diferentes contextos
 
[QANinjaConf2017] Testes de Regressão Visual com Galen Framework
[QANinjaConf2017] Testes de Regressão Visual com Galen Framework[QANinjaConf2017] Testes de Regressão Visual com Galen Framework
[QANinjaConf2017] Testes de Regressão Visual com Galen Framework
 
[PHPConference 2016] Criando Mocks com Prophecy
[PHPConference 2016] Criando Mocks com Prophecy[PHPConference 2016] Criando Mocks com Prophecy
[PHPConference 2016] Criando Mocks com Prophecy
 
[QANinjaConference] Carreira em Testes: Ainda vale a pena?
[QANinjaConference] Carreira em Testes: Ainda vale a pena?[QANinjaConference] Carreira em Testes: Ainda vale a pena?
[QANinjaConference] Carreira em Testes: Ainda vale a pena?
 
[QANinjaConference] Automação de Testes com Codeception
[QANinjaConference] Automação de Testes com Codeception[QANinjaConference] Automação de Testes com Codeception
[QANinjaConference] Automação de Testes com Codeception
 
[TDC2016] Ruby in Tests: Automatizando testes de Unidade, API e GUI (Web)
[TDC2016] Ruby in Tests: Automatizando testes de Unidade, API e GUI (Web)[TDC2016] Ruby in Tests: Automatizando testes de Unidade, API e GUI (Web)
[TDC2016] Ruby in Tests: Automatizando testes de Unidade, API e GUI (Web)
 
[PHPConferenceBR] Automação de testes com Codeception
[PHPConferenceBR] Automação de testes com Codeception[PHPConferenceBR] Automação de testes com Codeception
[PHPConferenceBR] Automação de testes com Codeception
 
[38º GURU SP] Automação de Testes Web em Ruby com Cucumber e Webdriver
[38º GURU SP] Automação de Testes Web em Ruby com Cucumber e Webdriver[38º GURU SP] Automação de Testes Web em Ruby com Cucumber e Webdriver
[38º GURU SP] Automação de Testes Web em Ruby com Cucumber e Webdriver
 
[UNIP2015] Testando a Performance de Aplicações Web com JMeter
[UNIP2015] Testando a Performance de Aplicações Web com JMeter[UNIP2015] Testando a Performance de Aplicações Web com JMeter
[UNIP2015] Testando a Performance de Aplicações Web com JMeter
 
Palestra DevOps para Teste de Software
Palestra DevOps para Teste de SoftwarePalestra DevOps para Teste de Software
Palestra DevOps para Teste de Software
 

Dernier

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Reducing the scope of load test analysis (STAREast 2020)

  • 1. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 1 REDUCING THE SCOPE OF LOAD TEST ANALYSIS USING MACHINE LEARNING TO SUPPORT TESTING
  • 2. Júlio de Lima Principal QA Engineer @ Capco julio.lima@capco.com twitter.com/juliodelimas linkedin.com/in/juliodelimas/
  • 4. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 4 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Response Time Graph Accessing the Main Page Logging in Milliseconds
  • 5. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 5 Response Time Graph Accessing the Main Page Logging in Milliseconds REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Response Time Graph 1-hour load testing execution 50 virtual users 300k lines of results from JMeter Two transactions being executed About the Test
  • 6. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 6 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Where are the flaws?
  • 7. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 7 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Where should I investigate? Application Logs Responses from the Server Infrastructure Logs
  • 8. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 8 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Where should I investigate? Application Logs Responses from the Server Infrastructure Logs Here, on the JMeter Test Results
  • 9. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 9 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Access the Main Page Access the Main Page Access the Main Page Access the Main Page Access the Main Page Access the Main Page Logging in Logging in Logging in Logging in Logging in Logging in Reading the Results Data Table 300k samples, It’s difficult to find flaws here!
  • 10. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 10 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Response Time Graph Reading the Results Graph It's too dense! Response Time Graph Accessing the Main Page Logging in Milliseconds It’s impossible to read it!
  • 11. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 11 Response Time Graph Accessing the Main Page Logging in Milliseconds REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Gotcha, 72 seconds!
  • 12. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 12 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Are you sure?
  • 14. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 14 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA 1 Pre-process the data 2 Use K-means clustering algorithm 3 Analyze a cluster and its central tendency measures 4 Be happy by reducing the scope analysis 300k → 1k
  • 15. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 15 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Tell me more about it!
  • 16. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 16 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA 1 Pre-process the data a) Redundant records were removed, causing the number of instances, 294,554, to be reduced to 196,335; b) The identification attributes were ignored and only the following were used in the experiments: elapsed, bytes, sentBytes, Latency and Connect; c) The data mentioned were normalized within the range of 0 to 1.
  • 17. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 17 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA 2 Use K-means clustering algorithm A clustering algorithm that aims at identifying groups of similar observations based on the mean.
  • 18. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 18 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA 3 Analyze a cluster and its central tendency measures I define, empirically, that I want to know what it would be like if there was a separation of the dataset into 6 clusters of similar information Cluster Observations (ms) Distribution 0 5472 3% 1 19119 10% 2 79035 40% 3 871 0% 4 48549 25% 5 43309 22%
  • 19. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 19 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA 4 Be happy by reducing the scope analysis 300k → 1k Response Message Samples OK 50 Non HTTP response message: 157.230.233.185:80 failed to respond 761 Non HTTP response message: Connect to 157.230.233.185:80 [/157.230.233.185] failed: operation timed out (connection timed out) 9 Non HTTP response message: operation timed out (read failed) 1 Non HTTP response message: socket closed 50 A quick mode analysis of Cluster 3 response message attribute
  • 20. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 20 The response time of most samples was 10% shorter than the peak initially identified (72 seconds) MAXIMUM REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA
  • 21. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 21 REDUCING THE SCOPE OF LOAD TEST ANALYSIS BY JÚLIO DE LIMA Smaller than you thought ;)
  • 23. Júlio de Lima Principal QA Engineer @ Capco julio.lima@capco.com t.me/juliodelimas-en twitter.com/juliodelimas linkedin.com/in/juliodelimas/ Questions?
  • 24. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 24 1998FOUNDED 21EXPERIENCE INDUSTRY YEARS 5000EMPLOYEES 27 WORLDWIDE OFFICES ACROSS 4 CONTINENTS GLOBAL 90 + CLIENTS INDUSTRIES BANKING & PAYMENTS WEALTH & ASSET MANAGEMENT ENERGY MARKETS CAPITAL MARKETS INSURANCE INNOVATION AND THOUGHT LEADERSHIP DIGITAL TRANSFORMATION EXECUTION EXCELLENCE UNIQUE CULTURE INDUSTRY EXPERIENCE FAST FACTS Capco is a global business and technology consultancy focused on financial services. INNOVATORS: We are innovators who combine a disruptive, design-thinking approach with unrivalled, first-hand industry knowledge and technology acumen. FACILITATORS: We facilitate the handshake between the business and technology organizations to deliver end-to-end consulting services and solutions. TRANSFORMATION SPECIALISTS: We help our clients transform and advance their businesses, increase revenue, manage risk and regulatory change. We consistently deliver these core tenets as part of our brand: ABOUT CAPCO 24
  • 25. © 2019 The Capital Markets Company. Capco Confidential. All rights reserved. 25 ABOUT CAPCO WORLDWIDE OFFICES Bangalore  Bangkok  Bratislava  Brussels  Charlotte  Chicago  Dallas  Dusseldorf  Edinburgh  Frankfurt  Geneva  Hong Kong  Houston Kuala Lumpur  London  New York  Orlando  Paris  Pune  Sao Paulo  Singapore  Toronto  Tysons Corner  Vienna  Warsaw Washington, D.C.  Zurich Capco is a global technology and management consultancy dedicated to the financial services industry. Our professionals combine innovative thinking with unrivalled industry knowledge to offer our clients consulting expertise, complex technology and package integration, transformation delivery, and managed services, to move their organizations forward. Through our collaborative and efficient approach, we help our clients successfully innovate, increase revenue, manage risk and regulatory change, reduce costs, and enhance controls. We specialize primarily in banking, capital markets, wealth and investment management, finance, risk & compliance and insurance. We also have an energy consulting practice in the US. We serve our clients from offices in leading financial centers across the Americas, Europe, and Asia Pacific. To learn more, visit our website at www.capco.com or follow us on Twitter, Facebook, YouTube, LinkedIn, Instagram and Xing.