Today I am going to post a comparison of these two different load tests framework. I know most people use Jmeter and it has been longer in the market, but I have recently used Locust and also Artillery (which will post a comparison later) and the results are great, the team was able to improve the creation of the tests and also the maintainability.
In the end of the day you need to use the right tool for your needs, Jmeter is a great and powerful tool, but depending on what you really need (something more lighter) then Jmeter might become an overcomplex, slow, hard to maintain tool.
Jmeter | Locust | |
In-built Protocols Support |
|
|
Speed to write tests |
|
|
Support of βTest as Codeβ |
|
|
Ramp-up Flexibility |
|
|
Test Results Analyzing |
|
|
Resources Consumption |
|
|
Easy to use with Version Control Systems |
|
|
Number of Concurrent Users |
|
|
Recording Functionality |
|
|
Distributed Execution |
|
|
Load Tests Monitoring |
|
|
Jmeter is most used when:
- You need to perform a complex load including different protocols
- If you need the script recording functionality
- If you need to simulate specific load with some custom ramp-up patterns
- If you just prefer UI desktop app for scripts creation, or you just do not know Python well enough
Locust solves some specific problems:
- You can write performance scripts pretty fast
- Push to your VCS and easily maintain the scripts
- Spend minimum time on maintenance without additional GUI applications
- Simulate thousands of test users on local machine without the need to have multiple slaves
One thought on “Load Tests: Locust vs Jmeter”