diff --git a/scripts/test_ratelimiter.sh b/scripts/test_ratelimiter.sh new file mode 100755 index 000000000..e67651c5c --- /dev/null +++ b/scripts/test_ratelimiter.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +#URL=http://localhost:8000/materia/4379 +URL=http://localhost:8000/norma/pesquisar +#URL=http://localhost/norma/pesquisar + +for i in $(seq 1 6); do + curl -sS -o /dev/null -w "req=$i http=%{http_code} time=%{time_total}\n" "$URL" +done