@@ -723,14 +723,34 @@ jobs:
723
723
make -j$(nproc) benchmarks
724
724
cd ..
725
725
make -C test/data
726
+ # we run benchmarks in tmpfs to avoid impact of disk IO
727
+ - name : Create folder for tmpfs
728
+ run : mkdir -p /opt/benchmarks
726
729
- name : Run PR Benchmarks
727
730
run : |
728
- ./pr/scripts/ci/run_benchmarks.sh -f $(pwd)/pr -r $(pwd)/pr_results -s $(pwd)/pr -b $(pwd)/pr/build -o ~/data.osm.pbf -g ~/gps_traces.csv
731
+ sudo mount -t tmpfs -o size=4g none /opt/benchmarks
732
+ cp -rf pr/build /opt/benchmarks/build
733
+ mkdir -p /opt/benchmarks/test
734
+ cp -rf pr/test/data /opt/benchmarks/test/data
735
+ cp -rf pr/profiles /opt/benchmarks/profiles
736
+
737
+ ./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
738
+ sudo umount /opt/benchmarks
729
739
- name : Run Base Benchmarks
730
740
run : |
741
+ sudo mount -t tmpfs -o size=4g none /opt/benchmarks
742
+ cp -rf base/build /opt/benchmarks/build
743
+ mkdir -p /opt/benchmarks/test
744
+ cp -rf base/test/data /opt/benchmarks/test/data
745
+ cp -rf base/profiles /opt/benchmarks/profiles
746
+
747
+ # TODO: remove it when base branch will have this file at needed location
748
+ if [ ! -f /opt/benchmarks/test/data/portugal_to_korea.json ]; then
749
+ cp base/src/benchmarks/portugal_to_korea.json /opt/benchmarks/test/data/portugal_to_korea.json
750
+ fi
731
751
# we intentionally use scripts from PR branch to be able to update them and see results in the same PR
732
- ./pr/scripts/ci/run_benchmarks.sh -f $(pwd)/base -r $(pwd)/base_results -s $(pwd)/pr -b $(pwd)/base /build -o ~/data.osm.pbf -g ~/gps_traces.csv
733
-
752
+ ./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
753
+ sudo umount /opt/benchmarks
734
754
- name : Post Benchmark Results
735
755
run : |
736
756
python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results
0 commit comments