diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 86230de79d..d7b062e053 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -123,15 +123,15 @@ jobs: TAG="$TAG)" echo "Running benchmarks for $TAG" | tee -a comparison.txt transmogrify "${server_cmd[$server]}" "$cc" "$pacing" - # shellcheck disable=SC2086 echo "perf $PERF_OPT -o $client-$server$EXT.server.perf $CMD" + # shellcheck disable=SC2086 taskset -c 0 nice -n -20 \ perf $PERF_OPT -o "$client-$server$EXT.server.perf" $CMD & PID=$! transmogrify "${client_cmd[$client]}" "$cc" "$pacing" - # shellcheck disable=SC2086 echo "perf $PERF_OPT -o $client-$server$EXT.client.perf \ hyperfine -w 1 -n $TAG -u millisecond --export-markdown step.md $CMD" + # shellcheck disable=SC2086 taskset -c 1 nice -n -20 \ perf $PERF_OPT -o "$client-$server$EXT.client.perf" \ hyperfine -w 1 -n "$TAG" -u millisecond --export-markdown step.md "$CMD" |