Use tmpfs for running benchmarks

This commit is contained in:
Siarhei Fedartsou 2024-06-22 12:56:57 +02:00
parent 807fc7d1fa
commit d32e76e972

View File

@ -714,15 +714,15 @@ jobs:
make -j$(nproc) benchmarks make -j$(nproc) benchmarks
cd .. cd ..
make -C test/data make -C test/data
- name: Build PR Branch # - name: Build PR Branch
run: | # run: |
mkdir -p pr/build # mkdir -p pr/build
cd pr/build # cd pr/build
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release .. # cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc) # make -j$(nproc)
make -j$(nproc) benchmarks # make -j$(nproc) benchmarks
cd .. # cd ..
make -C test/data # make -C test/data
- run: du -sh base/build pr/build - run: du -sh base/build pr/build
- run: mkdir -p /opt/benchmarks - run: mkdir -p /opt/benchmarks
- name: Run PR Benchmarks - name: Run PR Benchmarks
@ -731,23 +731,24 @@ jobs:
cp -rf pr/build /opt/benchmarks/build cp -rf pr/build /opt/benchmarks/build
mkdir -p /opt/benchmarks/test mkdir -p /opt/benchmarks/test
cp -rf pr/test/data /opt/benchmarks/test/data cp -rf pr/test/data /opt/benchmarks/test/data
cp -rf pr/profiles /opt/benchmarks/profiles
ls -R /opt/benchmarks 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 ./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 sudo umount /opt/benchmarks
- run: ls -R /opt/benchmarks - run: ls -R /opt/benchmarks
- name: Run Base Benchmarks # - name: Run Base Benchmarks
run: | # run: |
sudo mount -t tmpfs -o size=4g none /opt/benchmarks # sudo mount -t tmpfs -o size=4g none /opt/benchmarks
cp -rf base/build /opt/benchmarks/build # cp -rf base/build /opt/benchmarks/build
mkdir -p /opt/benchmarks/test # mkdir -p /opt/benchmarks/test
cp -rf base/test/data /opt/benchmarks/test/data # cp -rf base/test/data /opt/benchmarks/test/data
ls -R /opt/benchmarks # ls -R /opt/benchmarks
# we intentionally use scripts from PR branch to be able to update them and see results in the same PR # # 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 # ./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 # sudo umount /opt/benchmarks
- name: Post Benchmark Results # - name: Post Benchmark Results
run: | # run: |
python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results # python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results
- name: Show CCache statistics - name: Show CCache statistics
run: | run: |
ccache -p ccache -p