From 3567c51b2910b28f6754b56550af515d38113dc2 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sun, 1 Sep 2024 13:44:13 +0900 Subject: [PATCH] fix --- .github/workflows/cibench.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cibench.yml b/.github/workflows/cibench.yml index 284eb77..d52f0fd 100644 --- a/.github/workflows/cibench.yml +++ b/.github/workflows/cibench.yml @@ -64,17 +64,17 @@ jobs: - name: Run benchmarks (master) run: | git checkout master - cargo bench --bench parse ${{ matrix.feature != 'swar' && format('--features httparse_simd') || '' }} -- --save-baseline master-${{ matrix.feature }} + cargo bench --bench parse -- --save-baseline master-${{ matrix.feature }} env: - CARGO_CFG_HTTPARSE_DISABLE_SIMD: 1 + CARGO_CFG_HTTPARSE_DISABLE_SIMD: ${{ matrix.feature == 'swar' && '1' || '0' }} RUSTFLAGS: ${{ matrix.feature != 'swar' && format('-C target-feature=+{0}', matrix.feature) || '' }} - name: Run benchmarks (PR) run: | git checkout ${{ github.event.pull_request.head.sha }} - cargo bench --bench parse ${{ matrix.feature != 'swar' && format('--features httparse_simd') || '' }} -- --save-baseline pr-${{ matrix.feature }}-${{ github.event.pull_request.number }} + cargo bench --bench parse -- --save-baseline pr-${{ matrix.feature }}-${{ github.event.pull_request.number }} env: - CARGO_CFG_HTTPARSE_DISABLE_SIMD: 1 + CARGO_CFG_HTTPARSE_DISABLE_SIMD: ${{ matrix.feature == 'swar' && '1' || '0' }} RUSTFLAGS: ${{ matrix.feature != 'swar' && format('-C target-feature=+{0}', matrix.feature) || '' }} - name: Compare benchmarks @@ -105,17 +105,17 @@ jobs: - name: Run benchmarks (master) run: | git checkout master - cargo bench --bench parse ${{ matrix.feature == 'neon' && '--features httparse_simd' || '' }} -- --save-baseline master-aarch64-${{ matrix.feature }} + cargo bench --bench parse -- --save-baseline master-aarch64-${{ matrix.feature }} env: - CARGO_CFG_HTTPARSE_DISABLE_SIMD: 1 + CARGO_CFG_HTTPARSE_DISABLE_SIMD: ${{ matrix.feature == 'swar' && '1' || '0' }} RUSTFLAGS: ${{ matrix.feature == 'neon' && '-C target-feature=+neon' || '' }} - name: Run benchmarks (PR) run: | git checkout ${{ github.event.pull_request.head.sha }} - cargo bench --bench parse ${{ matrix.feature == 'neon' && '--features httparse_simd' || '' }} -- --save-baseline pr-aarch64-${{ matrix.feature }}-${{ github.event.pull_request.number }} + cargo bench --bench parse -- --save-baseline pr-aarch64-${{ matrix.feature }}-${{ github.event.pull_request.number }} env: - CARGO_CFG_HTTPARSE_DISABLE_SIMD: 1 + CARGO_CFG_HTTPARSE_DISABLE_SIMD: ${{ matrix.feature == 'swar' && '1' || '0' }} RUSTFLAGS: ${{ matrix.feature == 'neon' && '-C target-feature=+neon' || '' }} - name: Compare benchmarks