SlideShare uma empresa Scribd logo
1 de 18
Apache
Benchmar
k
E aí!
Somos o iFlix Team: Juanés,
Lucas e Márcio
Estamos aqui hoje para apresentar a ferramenta
Apache Benchmark para testes de stress.
Você pode nos achar no github
@juanesadriano, @arcelz e @marciioluucas
1.
O que é um teste
de stress?
Bora entender essa parada!
Um teste de stress é um meio de testar o
quanto o servidor consegue suportar
elevando drasticamente o número de
requisições por segundo e mostrando
estatísticas após o uso do mesmo.
2.
Apache
Benchmark?
É de comer ou de passar no cabelo?
O Apache benchmark é uma ferramenta de
testes de stress desenvolvida pela Apache
Software Foundation para testar servidores
HTTP.
3.
Como utilizá-lo?
Bora entender essa parada!
O AB possui uma CLI (Command line
interface) que, por sua vez é acessada
somente por linha de comando.
O comando básico do AB seria algo como
este:
# - ab -n 100 -c 5 google.com.br/
4.
Flags
Mas hem?
Flags não sao mais nada que comandos
adicionais para fazer coisas mais específicas
com uma CLI.
Fazendo um teste em
uma aplicação real
Por que não testar o AB em uma aplicação
real, não?!
testing://
# ab -n 100 -c 5 -w http://localhost/iflix/api/serie/ > teste1.html
# ab -n 1000 -c 50 -w http://localhost/iflix/api/serie/ > teste2.html
# ab -n 10000 -c 500 -w http://localhost/iflix/api/serie/ > teste3.html
# ab -n 100 -w http://localhost/iflix/api/serie/ > teste4.html
# ab -n 1000 -w http://localhost/iflix/api/serie/ > teste5.html
# ab -n 10000 -w http://localhost/iflix/api/serie/ > teste6.html
5.
Resultados
Resultados na ponta da caneta, ou
melhor, do teclado.
Gráfico 1 - Resultados dos 6 testes
Obrigado!
Alguma pergunta?
Você pode nos encontrar no github
@juanesadriano
@arcelz
@marciioluucas

Mais conteúdo relacionado

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Introdução ao Apache Benchmark

  • 2. E aí! Somos o iFlix Team: Juanés, Lucas e Márcio Estamos aqui hoje para apresentar a ferramenta Apache Benchmark para testes de stress. Você pode nos achar no github @juanesadriano, @arcelz e @marciioluucas
  • 3. 1. O que é um teste de stress? Bora entender essa parada!
  • 4. Um teste de stress é um meio de testar o quanto o servidor consegue suportar elevando drasticamente o número de requisições por segundo e mostrando estatísticas após o uso do mesmo.
  • 5. 2. Apache Benchmark? É de comer ou de passar no cabelo?
  • 6. O Apache benchmark é uma ferramenta de testes de stress desenvolvida pela Apache Software Foundation para testar servidores HTTP.
  • 8. O AB possui uma CLI (Command line interface) que, por sua vez é acessada somente por linha de comando.
  • 9. O comando básico do AB seria algo como este:
  • 10. # - ab -n 100 -c 5 google.com.br/
  • 12. Flags não sao mais nada que comandos adicionais para fazer coisas mais específicas com uma CLI.
  • 13. Fazendo um teste em uma aplicação real Por que não testar o AB em uma aplicação real, não?!
  • 15. # ab -n 100 -c 5 -w http://localhost/iflix/api/serie/ > teste1.html # ab -n 1000 -c 50 -w http://localhost/iflix/api/serie/ > teste2.html # ab -n 10000 -c 500 -w http://localhost/iflix/api/serie/ > teste3.html # ab -n 100 -w http://localhost/iflix/api/serie/ > teste4.html # ab -n 1000 -w http://localhost/iflix/api/serie/ > teste5.html # ab -n 10000 -w http://localhost/iflix/api/serie/ > teste6.html
  • 16. 5. Resultados Resultados na ponta da caneta, ou melhor, do teclado.
  • 17. Gráfico 1 - Resultados dos 6 testes
  • 18. Obrigado! Alguma pergunta? Você pode nos encontrar no github @juanesadriano @arcelz @marciioluucas