mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
16 lines
No EOL
469 B
Bash
16 lines
No EOL
469 B
Bash
#!/bin/bash
|
|
|
|
# If LOCUST_HEADLESS is true, run in headless mode with specified parameters
|
|
if [ "$LOCUST_HEADLESS" = "true" ]; then
|
|
locust -f locustfile.py \
|
|
--host ${LOCUST_HOST} \
|
|
--users ${LOCUST_USERS} \
|
|
--spawn-rate ${LOCUST_SPAWN_RATE} \
|
|
--run-time ${LOCUST_RUN_TIME} \
|
|
--headless \
|
|
--print-stats \
|
|
--html report.html
|
|
else
|
|
# Run with web interface
|
|
locust -f locustfile.py --host ${LOCUST_HOST}
|
|
fi |