Use tmpfs for running benchmarks

This commit is contained in:
Siarhei Fedartsou 2024-06-22 14:00:03 +02:00
parent 38fc3fa916
commit 95ad31bcc6

View File

@ -705,15 +705,15 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.base.ref }} ref: ${{ github.event.pull_request.base.ref }}
path: base path: base
# - name: Build Base Branch - name: Build Base Branch
# run: | run: |
# mkdir base/build mkdir base/build
# cd base/build cd base/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
- name: Build PR Branch - name: Build PR Branch
run: | run: |
mkdir -p pr/build mkdir -p pr/build
@ -723,7 +723,7 @@ jobs:
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
run: | run: |
@ -736,20 +736,20 @@ jobs:
./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
# cp -rf base/profiles /opt/benchmarks/profiles cp -rf base/profiles /opt/benchmarks/profiles
# 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