Using Locust for macro benchmarking and CI/CD integration of API performance #3330
Unanswered
user1500177
asked this question in
Q&A
Replies: 1 comment
-
|
You used AI to write this, right? Why didnt you just ask the AI those questions? Or read the documentation? Feels like you're asking for someone else to do your work for you... I'll bite on one of the questions though:
No, testing something in-memory/in-process is not a good use case for Locust. Always run Locust (or any other load testing tool) as a separate process, ideally on a separate machine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I’m exploring whether Locust can be used for macro-benchmarking of an API, and I’d like guidance on best practices and real-world usage.
What I want to achieve
Questions
1. Macro benchmarking with Locust
2. CI/CD integration
3. Test server vs real server
When running Locust:
4. Starting the API server from Locust
I’m considering the following approach for CI/CD simplicity:
Questions related to this approach:
5. TestClient vs subprocess
My goal is to have CI/CD simply run:
…and produce CSV / HTML reports without requiring manual server orchestration.
Any guidance, best practices, or real-world examples would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions