Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.71 KB

README.md

File metadata and controls

72 lines (51 loc) · 1.71 KB

agostinho

   __    ___  _____  ___  ____  ____  _  _  _   _  _____ 
  /__\  / __)(  _  )/ __)(_  _)(_  _)( \( )( )_( )(  _  )
 /(__)\( (_-. )(_)( \__ \  )(   _)(_  )  (  ) _ (  )(_)( 
(__)(__)\___/(_____)(___/ (__) (____)(_)\_)(_) (_)(_____)

Uma versão Ruby bastante modesta da rinha do backend 2ª edição 2024/Q1

Requisitos

Stack

  • 2 Ruby 3.3 +YJIT apps
  • 1 PostgreSQL
  • 1 NGINX

Ruby é lento????? So far, so good

agostinho-gatling

Usage

$ make help

Usage: make <target>
  help                       Prints available commands
  start.dev                  Start the rinha in Dev
  start.prod                 Start the rinha in Prod
  docker.stats               Show docker stats
  health.check               Check the stack is healthy
  stress.it                  Run stress tests
  docker.build               Build the docker image
  docker.push                Push the docker image

Inicializando a aplicação

$ docker compose up -d nginx

# Ou então utilizando Make...
$ make start.dev

Testando a app:

$ curl -v http://localhost:9999/clientes/1/extrato

# Ou então utilizando Make...
$ make health.check

Unleash the madness

Colocando Gatling no barulho:

$ make stress.it 
$ open stress-test/user-files/results/**/index.html

ASCII art generator