From ffe239d6200a2dc6dae287022fa53c51d1e75894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 24 Jul 2025 14:08:05 +0200 Subject: [PATCH] Actually respect the benchmarks matrix on CI --- .github/workflows/benchmarks.yml | 2 +- Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 945e6a89d..45d0ef321 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -28,7 +28,7 @@ jobs: bins: cargo-codspeed - name: Build the benchmark target(s) - run: cargo codspeed build ${{ matrix.benchmarks }} + run: cargo codspeed build -p benchmarks ${{ matrix.benchmark }} - name: Run the benchmarks uses: CodSpeedHQ/action@0b6e7a3d96c9d2a6057e7bcea6b45aaf2f7ce60b diff --git a/Cargo.toml b/Cargo.toml index 5435d5d42..180c6bc51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -180,6 +180,10 @@ lto = false # Get symbol names for profiling purposes. debug = true +[profile.bench] +inherits = "dbg" +lto = false + [patch.crates-io] async-compat = { git = "https://github.com/element-hq/async-compat", rev = "5a27c8b290f1f1dcfc0c4ec22c464e38528aa591" } const_panic = { git = "https://github.com/jplatte/const_panic", rev = "9024a4cb3eac45c1d2d980f17aaee287b17be498" }