From 61225fc3f3de8a5a8759baf3e0bcf39b617f9949 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 6 Jun 2024 21:45:16 +0200 Subject: [PATCH] wip --- .github/workflows/osrm-backend.yml | 2 +- scripts/ci/run_benchmarks.sh | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index eb6745b56..cbf73e443 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -656,7 +656,7 @@ jobs: path: pr - name: Install dependencies 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 - name: Prepare data run: | diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 1ea6e05bb..9137b1bdd 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -35,17 +35,19 @@ 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 $LOCUSTFILE_FOLDER/scripts/ci/locustfile.py \ - --headless \ - --processes -1 \ - --users 1 \ - --spawn-rate 1 \ - --host http://localhost:5000 \ - --run-time 1m \ - --csv=locust_results_$ALGORITHM \ - --loglevel ERROR + # locust -f $LOCUSTFILE_FOLDER/scripts/ci/locustfile.py \ + # --headless \ + # --processes -1 \ + # --users 1 \ + # --spawn-rate 1 \ + # --host http://localhost:5000 \ + # --run-time 1m \ + # --csv=locust_results_$ALGORITHM \ + # --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