Skip to content

Commit 86474cf

Browse files
committed
codspeed
1 parent fa5e974 commit 86474cf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/codspeed.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ jobs:
9898
# benchmark emits a callgrind dump keyed by its uri.
9999
run: |
100100
mkdir -p profiles
101+
# Invoke the venv python DIRECTLY under valgrind, not `uv run`: uv run forks pytest as a child, and
102+
# valgrind without --trace-children only instruments uv, so the child runs un-instrumented (native
103+
# speed) and pytest-codspeed's callgrind_dump_stats_at calls no-op -> zero dumps.
101104
CODSPEED_PROFILE_FOLDER="$PWD/profiles" valgrind --tool=callgrind --instr-atstart=no \
102105
--callgrind-out-file="$PWD/profiles/cg.%p.%n" \
103-
uv run --no-sync pytest benchmarks/ \
106+
"$VIRTUAL_ENV/bin/python" -m pytest benchmarks/ \
104107
--ignore=benchmarks/test_concurrency_perf.py \
105108
-m "gate or informational" --codspeed -o addopts= -p no:cacheprovider
106109

external/duckdb

Submodule duckdb updated 45 files

0 commit comments

Comments
 (0)