Skip to content

Commit

Permalink
Pin all but neqo-bin to CPU 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Mar 26, 2024
1 parent e988287 commit 6648d15
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,19 @@ jobs:
- name: Prepare machine
run: sudo /root/bin/prep.sh

# Pin the benchmark run to core 0 and run all benchmarks at elevated priority.
- name: Run cargo bench
run: |

Check failure on line 74 in .github/workflows/bench.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2086:info:10:54: Double quote to prevent globbing and word splitting
taskset -c 0 nice -n -20 \
cargo "+$TOOLCHAIN" bench --features bench -- --noplot | tee results.txt
# Pin all but neqo-bin benchmarks to CPU 0.
benchmarks=(
("taskset -c 0" "--exclude neqo-bin")
("" "--package neqo-bin")
)
for config in "${benchmarks[@]}"; do
read -r cpu_pinning packages <<< "${config}"
# run all benchmarks at elevated priority.
$cpu_pinning nice -n -20 cargo "+$TOOLCHAIN" bench $packages --features bench -- --noplot | tee -a results.txt
done
# Compare various configurations of neqo against msquic, and gather perf data
# during the hyperfine runs.
Expand Down

0 comments on commit 6648d15

Please sign in to comment.