This commit is contained in:
Siarhei Fedartsou 2024-06-06 21:45:16 +02:00
parent 76836b8470
commit 61225fc3f3
2 changed files with 13 additions and 11 deletions

View File

@ -656,7 +656,7 @@ jobs:
path: pr path: pr
- name: Install dependencies - name: Install dependencies
run: | run: |
python3 -m pip install "conan<2.0.0" "requests==2.31.0" "locust==2.28.0" python3 -m pip install "conan<2.0.0" "requests==2.31.0" "locust==2.28.0" numpy
sudo apt-get update -y && sudo apt-get install ccache sudo apt-get update -y && sudo apt-get install ccache
- name: Prepare data - name: Prepare data
run: | run: |

View File

@ -35,17 +35,19 @@ function run_benchmarks_for_folder {
# wait for osrm-routed to start # 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" 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 $LOCUSTFILE_FOLDER/scripts/ci/locustfile.py \ # locust -f $LOCUSTFILE_FOLDER/scripts/ci/locustfile.py \
--headless \ # --headless \
--processes -1 \ # --processes -1 \
--users 1 \ # --users 1 \
--spawn-rate 1 \ # --spawn-rate 1 \
--host http://localhost:5000 \ # --host http://localhost:5000 \
--run-time 1m \ # --run-time 1m \
--csv=locust_results_$ALGORITHM \ # --csv=locust_results_$ALGORITHM \
--loglevel ERROR # --loglevel ERROR
python3 $FOLDER/scripts/ci/process_locust_benchmark_results.py locust_results_$ALGORITHM $ALGORITHM $RESULTS_FOLDER # python3 $FOLDER/scripts/ci/process_locust_benchmark_results.py locust_results_$ALGORITHM $ALGORITHM $RESULTS_FOLDER
python3 $LOCUSTFILE_FOLDER/scripts/ci/e2e_benchmark.py
kill -0 $OSRM_ROUTED_PID kill -0 $OSRM_ROUTED_PID