From a9bd8404e01c94fd8af0fb50d454842b6a33bc48 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 22 Jun 2024 10:15:49 +0200 Subject: [PATCH] Use tmpfs for running benchmarks --- .github/workflows/osrm-backend.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index e6cd31539..18cf2dc04 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -728,12 +728,16 @@ jobs: run: | sudo mount -t tmpfs -o size=4g none /opt/benchmarks cp -rf pr/build /opt/benchmarks/build + cp -rf pr/test/data /opt/benchmarks/test/data + ls -R /opt/benchmarks ./pr/scripts/ci/run_benchmarks.sh -f /opt/benchmarks -r $(pwd)/pr_results -s $(pwd)/pr -b /opt/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv sudo umount /opt/benchmarks - name: Run Base Benchmarks run: | sudo mount -t tmpfs -o size=4g none /opt/benchmarks cp -rf base/build /opt/benchmarks/build + cp -rf base/test/data /opt/benchmarks/test/data + ls -R /opt/benchmarks # we intentionally use scripts from PR branch to be able to update them and see results in the same PR ./pr/scripts/ci/run_benchmarks.sh -f /opt/benchmarks -r $(pwd)/base_results -s $(pwd)/pr -b /opt/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv sudo umount /opt/benchmarks