lc-core/tests/run.sh
hrj 79428bc5e7 reduce number of users in locust stress test
by reducing wait time, we can generate same load with fewer users
2021-04-12 16:56:59 +05:30

16 lines
277 B
Bash
Executable File

set -ex
python3 -m venv testEnv
source ./testEnv/bin/activate
pip install locust
java -jar target/scala-2.13/LibreCaptcha.jar &
JAVA_PID=$!
sleep 4
locust --headless -u 300 -r 100 --run-time 4m --stop-timeout 30 -f tests/locustfile.py
status=$?
kill $JAVA_PID
exit $status