Make e2e benchmarks more stable
This commit is contained in:
parent
c7ee1a59eb
commit
f04e19dbb1
@ -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)
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user