While trying to download the results from locust the data is getting downloaded with following headers: Type Name Timestamp # requests # failures Requests/s Requests Failed/s Median response time Average response time Min response time Max response time Average Content Size 50% 66% 75% 80% 90% 95% 98% 99% 99.90% 99.99% 99.999 100% I just want the relevant values (not the % one). Is there any way to download the required columns only in locust?
Asked
Active
Viewed 285 times
2 Answers
0
No, this is not an option at present (June 2020).
You can see by yourself how this is solved in the code. You're always writing percentiles into the exported csv file.

pavelsaman
- 7,399
- 1
- 14
- 32
-
I want to make a chart out of the csv results for my test reports but due to these percentage I'm not able to create a interactive chart. It is looking messy with it. – Sayen Jul 13 '20 at 18:06
-
What percentile exactly depict here? – Sayen Jul 13 '20 at 18:07
-
I suppose you can always delete the unwanted columns, hide them, or simply don't take them into account. I don't see a reason why either option is not possible. – pavelsaman Jul 13 '20 at 18:17
-
Yeah i have to think of another way. Have you got any idea why percentiles are stored in csv? – Sayen Jul 13 '20 at 18:22
-
Why not? It's another piece of information you get from your load tests, so I suppose some people find them useful. As I said, just ignore them in one way or the other. – pavelsaman Jul 13 '20 at 18:36
0
You can follow these steps (considering you are already using Locust, I hope rest of your project is in python):
- get the default csv files with all the columns
- use pandas dataframe to read the csv and then filter only those columns you are interested in.
- create graph using matplotlib or other python graph libraries
See below a graph I created using the above process. It includes only the min, median and p99 response times

Aritra Nayak
- 63
- 8
-
Thanks for sharing this, my project is in java and I'm using locust4j. Please let me know if I can do the same in java as well. – Sayen Jul 13 '20 at 18:56
-
Yes, you can do that absolutely. After the tests are run, read the csv using java code and modify it as you like. But, I am unaware of any nice graph libraries comparable to what we have in python – Aritra Nayak Jul 13 '20 at 19:09
-
-
Yes, it worked. But if got to know that the percentiles in load testing csv results are very important part and the graph is supposed to be made by them. Bt it was worth the try – Sayen Jul 15 '20 at 02:03
-
glad to hear it. If possible can you please give an upvote or accept the answer if it satisfied your question. Thanks – Aritra Nayak Jul 16 '20 at 05:04