Python code using locust to get domain performance
Requires Python 3.7.
The recommended way to install is through Pip.
pip install -r requirements.txt
cp .env.example .env
Put values in CONTEXT, SECRET and TOKEN environment because the script need to authenticate and verify all CRUD routes (Get this config in Lumen-Ala project).
Run the file domainperformance.py using Locust
locust -f domainperformance.py
And access Localhost dashboard to start the Locust
This example run with 1000 users and spawned 10 per second for 1 minute.
locust -f domainperformance.py -H {Your Host and Port Here} -u 1000 -r 10 -t 1m --headless --csv report
After running this command, you can consulting 3 files report_failures.csv, report_stats.csv and report_stats_history.csv to validate the performance test.
Want to contribute? Great!
The project using a simple code. Make a change in your file and be careful with your updates!
Not Empty Foundation - Free codes, full minds