Implement end-to-end benchmark
This commit is contained in:
parent
5001c9173a
commit
8c907a218e
15
locustfile.py
Normal file
15
locustfile.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user