-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·25 lines (19 loc) · 888 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# Exemplos de requests
# curl -v -XPOST -H "content-type: application/json" -d '{"apelido" : "xpto", "nome" : "xpto xpto", "nascimento" : "2000-01-01", "stack": null}' "http://localhost:9999/pessoas"
# curl -v -XGET "http://localhost:9999/pessoas/1"
# curl -v -XGET "http://localhost:9999/pessoas?t=xpto"
# curl -v "http://localhost:9999/contagem-pessoas"
docker compose rm -f
docker compose down -v --rmi local --remove-orphans
docker compose up -d --build
GATLING_BIN_DIR=$HOME/gatling/3.9.5/bin
WORKSPACE=$(pwd)/stress-test
sh $GATLING_BIN_DIR/gatling.sh -rm local -s RinhaBackendSimulation \
-rd "DESCRICAO" \
-rf $WORKSPACE/user-files/results \
-sf $WORKSPACE/user-files/simulations \
-rsf $WORKSPACE/user-files/resources \
sleep 5
curl -v "http://localhost:9999/contagem-pessoas"
go tool pprof -http=localhost: http://localhost:9999/debug/pprof/heap