{"id":15411973,"url":"https://github.com/fcrozetta/locust-stress-test","last_synced_at":"2026-02-14T13:02:55.535Z","repository":{"id":184180958,"uuid":"671064445","full_name":"fcrozetta/locust-stress-test","owner":"fcrozetta","description":"Sample code to show how to stress test using locust","archived":false,"fork":false,"pushed_at":"2025-03-21T22:54:22.000Z","size":872,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T16:13:14.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcrozetta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-26T13:09:50.000Z","updated_at":"2024-06-27T05:43:51.000Z","dependencies_parsed_at":"2023-07-27T11:43:05.638Z","dependency_job_id":"28455937-42b3-419e-9765-0006088a11f9","html_url":"https://github.com/fcrozetta/locust-stress-test","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.3846153846153846,"last_synced_commit":"56cd991b0a5d19b7f01c46c805761468c461100d"},"previous_names":["fcrozetta/locust-stress-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcrozetta/locust-stress-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrozetta%2Flocust-stress-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrozetta%2Flocust-stress-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrozetta%2Flocust-stress-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrozetta%2Flocust-stress-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcrozetta","download_url":"https://codeload.github.com/fcrozetta/locust-stress-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrozetta%2Flocust-stress-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:50:44.146Z","updated_at":"2026-02-14T13:02:55.520Z","avatar_url":"https://github.com/fcrozetta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# locust-stress-test\n\nThis is the repository that contains the code for the API and locust programs.\n\n## Quickstart\n\nIf you have docker, vscode and devcontainers extension, open the project in vscode, and click to open in devcontainers.\n\ndevcontainers will do the following:\n\n- create a linux container\n- install poetry\n- configure poetry to create virtual environments in the project folder\n- create a python environment, install the needed packages\n\nAdditionally, .vscode has the settings and launch files which contains black configurations and the launch command ready, with the reload argument so every change in the API will be updated in real time\n\nIf you are not using vscode and/or devcontainers,\nyou will need to install everything manually, and start the api with the command\n\n```bash\nuvicorn api.main:app --reload\n```\nThe API will be served on [your localhost](http://127.0.0.1:8000/docs)\n\n\n## Running locust\n\nto run the existing locust file with the sample user that calls a failing endpoint, you can use the command:\n\n```bash\n# Locust\nlocust -f ./locust/locust.py -h http://localhost:8000\n```\nThis will start locust in the [web GUI mode](http://localhost:8089). If you want to execute it via CLI, use the command:\n\n```bash\nlocust -f ./locust/locust.py -h http://localhost:8000 --headless --users 10 --spawn-rate 1 -t 30m -s 1m\n```\n\u003e *Note:* You can add other arguments in this command, to customize it to your needs.\n\nTo check other possible arguments, refer to the [official documentation](https://docs.locust.io/en/stable/index.html), or using the command:\n\n```bash\nlocust --help\n```\n\n## Locust\n\nLocust is a performance/stress testing tool created for use at EA/DICE, for a a game called Battlefield, but now is used by many other organizations.\n\n[This tool was created because the developers always find limitations when scripting tests using other tools](https://docs.locust.io/en/stable/history.html#history). Then they created one that runs in python, so not only it is expandable, but a new language is **not** necessary to make it run.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcrozetta%2Flocust-stress-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcrozetta%2Flocust-stress-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcrozetta%2Flocust-stress-test/lists"}