Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of response time distribution in locust.io?

Tags:

python

locust

Would like to ask the experts here what is the purpose of response time distribution in locust.io? I could not figure out what does 50%, 60% means in the downloaded CSV.

like image 328
Moses Liao GZ Avatar asked Jul 21 '15 07:07

Moses Liao GZ


People also ask

What is median response time in Locust?

1 locust every 20 seconds)

How do you put RPS in a locust?

The code your Locust users runs needs to be written in such a way that each user is only making one request. Then in your Locust User class, you set wait_time = constant(1) or wait_time = constant_pacing(1) , whichever behavior you want.

What is percentile response time?

Percentiles explained A percentile is a measure used in statistics indicating the value below which a given percentage of observations in a group of observations fall. For example, the response time for a HTTP request below which 90% of the response time values lie, is called the 90-percentile response time.

How do you stop locusts after number of requests?

In this case, each user should sign-in and make 3 GET request and locust should stop. So a total of 12 request. I found that previously there was an option -n to specify the number of request, however it is not there in version 0.14. 4.


1 Answers

It shows the percentage of request completed given time interval which in table below means that 50% of the total requests to home is completed 160ms and 66% of requests are completed in 290ms and respectively goes on.

You can make a risk analysis about the performance of the services with this table for example to cover 99% 2sec needed but for 100% 14sec 1% of requests has very long time waiting.

If your target is to have 300ms at most, you can just cover the 66% requests so you will take the risk of your 34% percent of user to lose.

Method  Name    #requests   50%  66%    75%  80%    90%     95%    98%   99%    100%
GET    /home    14151       160  290    400  600    800     1100   1700  2000   13934
like image 102
Mesut GUNES Avatar answered Oct 22 '22 09:10

Mesut GUNES