forked from zanfranceschi/rinha-de-backend-2023-q3
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Melhora configuração para testes e altera configuração do docker-comp…
…ose (#1) * added: Improve tests and change docker-compose configs * added: Improve tests and change docker-compose configs * remove: Remove arquivos de resultados * remove: Remove arquivos de resultados --------- Co-authored-by: Diego Ferreira <diegoferreira@PPM-SPO-015219.local>
- Loading branch information
1 parent
1b9cfc1
commit 78e6234
Showing
9 changed files
with
105,186 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ vendor/ | |
.DS_Store | ||
.phpunit* | ||
*.cache | ||
.vscode/ | ||
.vscode/ | ||
stress-test/user-files/results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
worker_processes auto; | ||
|
||
events { | ||
worker_connections 4096; | ||
} | ||
|
||
http { | ||
access_log off; | ||
#proxy_cache_path /tmp/cache keys_zone=cacherinha:100m max_size=1G use_temp_path=off; | ||
#proxy_cache_valid any 15s; | ||
|
||
upstream api { | ||
server api1:9501; | ||
server api2:9501; | ||
} | ||
|
||
server { | ||
listen 9999; | ||
|
||
location / { | ||
proxy_pass http://api; | ||
|
||
#proxy_cache cacherinha; | ||
#proxy_cache_background_update on; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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" | ||
|
||
GATLING_BIN_DIR=$HOME/gatling/3.9.5/bin | ||
|
||
WORKSPACE=$HOME/projects/rinha-de-backend-2023-q3/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 3 | ||
|
||
curl -v "http://localhost:9999/contagem-pessoas" |
100,001 changes: 100,001 additions & 0 deletions
100,001
stress-test/user-files/resources/pessoas-payloads.tsv
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.