From f04e19dbb16053a3a09e429050e799c4d99dee25 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 6 Jun 2024 18:18:46 +0200 Subject: [PATCH] Make e2e benchmarks more stable --- scripts/ci/locustfile.py | 4 ++-- scripts/ci/run_benchmarks.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci/locustfile.py b/scripts/ci/locustfile.py index cd46aaba9..3cf60f28b 100644 --- a/scripts/ci/locustfile.py +++ b/scripts/ci/locustfile.py @@ -1,4 +1,4 @@ -from locust import HttpUser, TaskSet, task, between +from locust import HttpUser, TaskSet, task, constant import csv import random from collections import defaultdict @@ -71,4 +71,4 @@ class OSRMTasks(TaskSet): class OSRMUser(HttpUser): tasks = [OSRMTasks] # random wait time between requests to not load server for 100% - wait_time = between(0.05, 0.5) + wait_time = constant(0.05) diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 51ced3d53..3f20cf5f9 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -35,7 +35,7 @@ function run_benchmarks_for_folder { # wait for osrm-routed to start curl --retry-delay 3 --retry 10 --retry-all-errors "http://127.0.0.1:5000/route/v1/driving/13.388860,52.517037;13.385983,52.496891?steps=true" - locust -f $FOLDER/scripts/ci/locustfile.py \ + locust -f $FOLDER/../pr/scripts/ci/locustfile.py \ --headless \ --processes -1 \ --users 10 \