Skip to content

sharkguto/teste_carga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teste_carga

teste de carga

#run java gradle bootRun

#pytest test_*.py --cov=. --cov-report=

pytest --cov=. tests/ --cov-fail-under 80 --cov-report xml --cov-report term-missing

dump mysql

mysqldump -u root -p"devel123" -h 127.0.0.1 test > devops/sql-scripts/dump-mysql.sql

dump postgresql

PGPASSWORD=test pg_dump -h 127.0.0.1 -U gustavo -F p test > dump-postgres.sql

tunning

shared_buffers='2GB'        # to ensure buffers our dataset
work_mem='2GB'      # increase work_mem  as it helps a lot for analytical stuff
max_parallel_workers_per_gather=2   # the default actually, so just as a reminder
shared_preload_libraries='pg_stat_statements'   # for storing/analyzing test results
logging_collector=on

uvcorn

gunicorn bench_blacksheep:app --workers=8 -b "0.0.0.0:8080" --worker-class=uvicorn.workers.UvicornWorker --log-level error

wrk

taskset -c 1 wrk --latency -t1 -c100 -d30s http://127.0.0.1:8080/

About

teste de carga

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •