diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index 3dceefd32..4943d6de3 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -640,13 +640,16 @@ jobs: key: v1-conan-benchmarks-${{ github.sha }} restore-keys: | v1-conan-benchmarks- - - run: pip install locust + - name: Prepare data + run: | + wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf -O ~/data.osm.pbf + - name: Install dependencies + run: python3 -m pip install "conan<2.0.0" "requests==2.31.0" "locust==2.28.0" - name: Checkout PR Branch uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} path: pr - - run: python3 -m pip install "conan<2.0.0" "requests==2.31.0" - name: Build PR Branch run: | mkdir -p pr/build diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 3103c6b28..1cdd76a66 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -21,12 +21,12 @@ function run_benchmarks_for_folder { # ./$BENCHMARKS_FOLDER/rtree-bench "./$FOLDER/test/data/monaco.osrm.ramIndex" "./$FOLDER/test/data/monaco.osrm.fileIndex" "./$FOLDER/test/data/monaco.osrm.nbg_nodes" > "$RESULTS_FOLDER/rtree.bench" BINARIES_FOLDER="$FOLDER/build" - wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf echo "PWD: $FOLDER" - $BINARIES_FOLDER/osrm-extract -p $FOLDER/profiles/car.lua $FOLDER/berlin-latest.osm.pbf - $BINARIES_FOLDER/osrm-partition $FOLDER/berlin-latest.osrm - $BINARIES_FOLDER/osrm-customize $FOLDER/berlin-latest.osrm - $BINARIES_FOLDER/osrm-routed --algorithm mld $FOLDER/berlin-latest.osrm & + cp ~/data.osm.pbf $FOLDER + $BINARIES_FOLDER/osrm-extract -p $FOLDER/profiles/car.lua $FOLDER/data.osm.pbf + $BINARIES_FOLDER/osrm-partition $FOLDER/data.osrm + $BINARIES_FOLDER/osrm-customize $FOLDER/data.osrm + $BINARIES_FOLDER/osrm-routed --algorithm mld $FOLDER/data.osrm & OSRM_ROUTED_PID=$! # TODO: save results