Use tmpfs for running benchmarks

This commit is contained in:
Siarhei Fedartsou 2024-06-22 10:15:49 +02:00
parent 0fc2cd9aba
commit a9bd8404e0

View File

@ -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