Locust requests counter and users

Viewed 23

I am currently working with the python performance test framework Locust. I prepared a script that uses Locust as a library and runs multiple tests one after the other.

After every run I multiply the number of users with the test number (e.g. second test -> 2*user) in order to test how an API would respond to the change of this variable.

What I saw for "high" values of users was not what I was expecting, The number of requests sent stayed the same even after the increase of the user.

For a range between 100 to 1000 the requests count shown in the CSV files were practically the same and I wanted to better understand what could be the causes of this behaviour.

requestCounterImage

In this image, extracted from Grafana, every sawtooth wave represent the request count. It can be seen that the request counter peaks are similar, although there is a difference of 100 users between one and the other.

Could this be a limitation of Locust as a library? I tried to explore the documentation on this topic but I did not find anything about this problem. If someone knows about a reliable source of information it would be very useful.

Thanks to everyone who will take the time to answer my question

0 Answers
Related