Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
type: [performance] # , memory] # memory profile disabled due to variance
type: [simulation] # , memory] # memory profile disabled due to variance
package: [
uu_base64,
uu_cksum,
Expand Down Expand Up @@ -78,18 +78,14 @@ jobs:
shell: bash
run: |
echo "Building ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
if [ "${{ matrix.type }}" = "memory" ]; then
cargo codspeed build -m analysis -p ${{ matrix.package }}
else
cargo codspeed build -p ${{ matrix.package }}
fi
cargo codspeed build -m ${{ matrix.type }} -p ${{ matrix.package }}

- name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }}
uses: CodSpeedHQ/action@v4
env:
CODSPEED_LOG: debug
with:
mode: ${{ matrix.type == 'memory' && 'memory' || 'simulation' }}
mode: ${{ matrix.type }}
run: |
echo "Running ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
cargo codspeed run -p ${{ matrix.package }} > /dev/null
Expand Down
Loading