From e13eddbae261be4beb33c2b4c5ea2e68a7bcea1b Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 28 May 2024 13:38:43 +0200 Subject: [PATCH] wip --- scripts/ci/locustfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/locustfile.py b/scripts/ci/locustfile.py index bd29d39e5..14d6cb851 100644 --- a/scripts/ci/locustfile.py +++ b/scripts/ci/locustfile.py @@ -32,7 +32,7 @@ class OSRMTasks(TaskSet): @task def get_table(self): - num_coords = random.randint(3, 50) + num_coords = random.randint(3, 100) selected_coords = random.sample(self.coordinates, num_coords) coords_str = ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in selected_coords]) @@ -40,7 +40,7 @@ class OSRMTasks(TaskSet): @task def get_match(self): - num_coords = random.randint(20, 50) + num_coords = random.randint(50, 100) track_id = random.choice(self.track_ids) track_coords = self.tracks[track_id][:num_coords] coords_str = ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in track_coords])