Skip to content

Commit a1293ff

Browse files
authored
Create load-tests/locustfile.py
1 parent c64dc78 commit a1293ff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

load-tests/locustfile.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from locust import HttpUser, task, between
2+
3+
class RideUser(HttpUser):
4+
wait_time = between(1, 3)
5+
6+
@task
7+
def request_ride(self):
8+
self.client.post("/request-ride", json={
9+
"rider_id": "123",
10+
"pickup_lat": 40.7,
11+
"pickup_lng": -74.0,
12+
"destination_lat": 40.8,
13+
"destination_lng": -73.9
14+
})

0 commit comments

Comments
 (0)