Skip to content

Commit

Permalink
Use temp dir, and fix path error
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 12, 2024
1 parent 84e2206 commit 9d3a8b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@ jobs:
- name: Profile client/server transfer
run: |
for CC in newreno cubic; do
TMP=$(mktemp -d)
taskset -c 0 nice -n -20 \
cargo "+$TOOLCHAIN" flamegraph -o "server-$CC.svg" -v -c "$PERF_OPT -o server-$CC.perf" \
--bin neqo-server -- --db ../test-fixture/db --cc "$CC" "$HOST:4433" &
--bin neqo-server -- --cc "$CC" "$HOST:4433" &
PID=$!
time taskset -c 1 nice -n -20 \
cargo "+$TOOLCHAIN" flamegraph -o "client-$CC.svg" -v -c "$PERF_OPT -o client-$CC.perf" \
--bin neqo-client -- --output-dir . --cc "$CC" "https://$HOST:4433/$SIZE"
--bin neqo-client -- --output-dir "$TMP" --cc "$CC" "https://$HOST:4433/$SIZE"
killall -INT $PID
[ "$(wc -c < client/"$SIZE")" -eq "$SIZE" ] || exit 1
[ "$(wc -c < "$TMP/$SIZE")" -eq "$SIZE" ] || exit 1
rm -rf "$TMP"
done
env:
HOST: localhost
Expand Down

0 comments on commit 9d3a8b7

Please sign in to comment.