Locust test coding has its own set of advantages. A version control system like Git, for example, makes it considerably easier to manage and configure performance testing for various settings. Dealing with code is preferred in these situations. Knowing Python is certainly beneficial in the case of Locust. Simultaneously, if you prefer coding over creating UI tests but aren’t familiar with the Python programming language.
However, if you need to perform a complex load involving multiple protocols, if you don’t have time to write your own samplers in Python, if you need script recording functionality, if you need to simulate a specific load with some custom ramp-up patterns, or if you simply prefer a UI desktop app for script creation, or if you don’t know Python well enough, you should use Python. However, as previously said, if you are unfamiliar with Python, JMeter appears to be the superior alternative.