Skip to content

Commit 74fe23c

Browse files
committed
codspeed: evaluate the memory benchmarking
1 parent 3fe258a commit 74fe23c

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/benchmarks.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
benchmarks:
21-
name: Run benchmarks (CodSpeed)
21+
name: Run performance benchmarks (CodSpeed)
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v6
@@ -37,11 +37,40 @@ jobs:
3737
shell: bash
3838
run: cargo codspeed build
3939

40-
- name: Run benchmarks
40+
- name: Run performance benchmarks
4141
uses: CodSpeedHQ/action@v4
4242
env:
4343
CODSPEED_LOG: debug
4444
with:
4545
mode: simulation
4646
run: cargo codspeed run > /dev/null
4747
token: ${{ secrets.CODSPEED_TOKEN }}
48+
49+
memory-benchmarks:
50+
name: Run memory benchmarks (CodSpeed)
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v6
54+
with:
55+
persist-credentials: false
56+
57+
- uses: dtolnay/rust-toolchain@stable
58+
59+
- uses: Swatinem/rust-cache@v2
60+
61+
- name: Install cargo-codspeed
62+
shell: bash
63+
run: cargo install cargo-codspeed --locked
64+
65+
- name: Build benchmarks
66+
shell: bash
67+
run: cargo codspeed build
68+
69+
- name: Run memory benchmarks
70+
uses: CodSpeedHQ/action@v4
71+
env:
72+
CODSPEED_LOG: debug
73+
with:
74+
mode: memory
75+
run: cargo codspeed run > /dev/null
76+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)