Implement end-to-end benchmark

This commit is contained in:
Siarhei Fedartsou 2024-05-26 13:07:45 +02:00
parent 5001c9173a
commit 8c907a218e

15
locustfile.py Normal file
View File

@ -0,0 +1,15 @@
from locust import HttpUser, TaskSet, task, between
class OSRMTasks(TaskSet):
@task
def get_route(self):
# Define the coordinates for the route
start = "13.388860,52.517037"
end = "13.397634,52.529407"
# Make a request to the OSRM route service
self.client.get(f"/route/v1/driving/{start};{end}?overview=false")
class WebsiteUser(HttpUser):
tasks = [OSRMTasks]
wait_time = between(1, 5)