Skip to content

Commit

Permalink
Add locust report and locust section in README
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco265 committed Jan 6, 2024
1 parent 55f7a51 commit 6844566
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,21 @@ Here's the view to the monitors:

![Second Monitor](./docs/images/BU/monitor2.png)

## Load testing using Locust

Lastly we tested the performances of the application using **Locust**, all the possible requests are defined in *locustfile.py*, in particular we test all the four different endpoints of our API:
- Get models list (GET request)
- Get model info (GET request)
- Get image prediction (POST request)
- Get context prediction (POST request)

POST requests are done more frequently as they are the main functionality of our service.

Our service is quite heavy as the model is around 100M parameters and the user has to send to the server one or more images (the predict_image endpoint is the one that has the highest response time), so our server suffers from high response times even with only a few users connected at the time.
This issue could be solved by simply upgrading the hosting service, as the one we are using is a very basic one.

[Here](./reports/locust_report.html) you can find a short report generated by Locust.

---


Expand Down

0 comments on commit 6844566

Please sign in to comment.