Skip to content

Commit 505c515

Browse files
committed
ci(codspeed): run walltime benches on huge-page text
Preload elfremapper and disable the profiler, which can't symbolize the remapped code.
1 parent 3b5a39f commit 505c515

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/codspeed.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,20 @@ jobs:
151151
MTU: 1500 # Step-scoped: `neqo-bin` benches append `/mtu-$MTU` to their names.
152152
run: sudo ip link set dev lo mtu "$MTU"
153153

154+
- name: Prepare huge-page text
155+
id: huge-page-text
156+
if: ${{ matrix.batch.mode == 'walltime' }}
157+
uses: $/.github/actions/huge-page-text
158+
154159
- name: Run bench & upload results
155160
uses: CodSpeedHQ/action@af75f77f17a054769abefaa42fe8dc2975469b5f # v5.6.3
161+
env:
162+
PRELOAD: ${{ steps.huge-page-text.outputs.preload }}
163+
# `perf` can't symbolize the remapped code, so the profiler's flamegraphs would lose it.
164+
CODSPEED_PROFILER_ENABLED: ${{ matrix.batch.mode != 'walltime' }}
156165
with:
157166
mode: ${{ matrix.batch.mode }}
158-
run: cargo codspeed run
167+
run: env "LD_PRELOAD=$PRELOAD" cargo codspeed run
159168
token: ${{ secrets.CODSPEED_TOKEN }} # zizmor: ignore[secrets-outside-env]
160169

161170
# The client/server jobs live here, rather than in a workflow of their own, so that all of a

0 commit comments

Comments
 (0)