From ce5f43e47e7a0de53a6557c4358c5ec22c97ebb8 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 13 Oct 2025 12:41:47 +0800 Subject: [PATCH] ci: add target-cpu=native in bench --- .github/workflows/benchmark.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5a04b0a..44f034c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -45,6 +45,8 @@ jobs: - name: Build benchmark run: cargo codspeed build --features codspeed + env: + RUSTFLAGS: '-C target-cpu=native' - name: Run benchmark uses: CodSpeedHQ/action@v4