Make e2e benchmarks more stable

This commit is contained in:
Siarhei Fedartsou 2024-06-06 18:18:46 +02:00
parent c7ee1a59eb
commit f04e19dbb1
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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 \