Skip to content

Commit

Permalink
Just duplicate the two calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Mar 27, 2024
1 parent 8678188 commit 6eaea5c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,11 @@ jobs:

- name: Run cargo bench
run: |
# Run all benchmarks at elevated priority.
# Pin all but neqo-bin benchmarks to CPU 0. neqo-bin benchmarks run both a client and a server, thus benefiting from multiple CPU core.
benchmarks=(
"taskset -c 0,--exclude neqo-bin"
",--package neqo-bin"
)
for config in "${benchmarks[@]}"; do
IFS=',' 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
taskset -c 0 nice -n -20 cargo "+$TOOLCHAIN" bench --exclude neqo-bin --features bench -- --noplot | tee results.txt
taskset -c 0 nice -n -20 cargo "+$TOOLCHAIN" bench --package neqo-bin --features bench -- --noplot | tee -a results.txt
# Compare various configurations of neqo against msquic, and gather perf data
# during the hyperfine runs.
Expand Down

0 comments on commit 6eaea5c

Please sign in to comment.