From b9e212a167897ef2723c43196cb1bbfd3dbbc894 Mon Sep 17 00:00:00 2001 From: pshu Date: Thu, 4 Jun 2026 14:55:09 +0800 Subject: [PATCH] ci(bench): build codspeed with package_json_raw_json_api feature The benchmark built without the feature, so the raw_json()/init_serde_json code path was never compiled and CodSpeed could not measure changes to it. Enable the feature in the build step so the package.json parsing benchmark exercises the serde_json materialization path. --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b5c3e647..804679bd 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -55,7 +55,7 @@ jobs: - name: Build Benchmark env: RUSTFLAGS: "-C debuginfo=1 -C strip=none -g" - run: cargo codspeed build + run: cargo codspeed build --features package_json_raw_json_api - name: Prepare Valgrind temporary directory run: mkdir -p "${RUNNER_TEMP}/codspeed-valgrind-tmp"