Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 17, 2024
1 parent f65edb7 commit 5f5b793
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,26 @@ jobs:
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"
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"
taskset -c 1 nice -n -20 \
perf $PERF_OPT -o "$client-$server$EXT.client.perf" \
hyperfine -w 1 -n "$TAG" --export-markdown step.md "$CMD" |
tee -a comparison.txt || true
echo >>comparison.txt
hyperfine -w 1 -n "$TAG" -u millisecond --export-markdown step.md "$CMD" |
tee -a comparison.txt
echo >> comparison.txt
kill $PID
{
echo
cat step.md
} >>comparison.md
cat step.md >> steps.md
done
done
done
done
sed '/^\| Command/{x;/^$/!d;g;}' steps.md | sed '/^\|:-/{x;/^$/!d;g;}' > comparison.md
rm -r "$TMP"
# Re-enable turboboost, hyperthreading and use powersave governor.
Expand Down

0 comments on commit 5f5b793

Please sign in to comment.