Skip to content

Commit 7821584

Browse files
committed
Add ci action to measure memory used in micro benchmarks
1 parent a22b272 commit 7821584

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci-nix.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ jobs:
153153
nix build .#${{ matrix.package }}-bench
154154
nix develop .#${{ matrix.package }}-bench --command ${{ matrix.bench }} ${{ matrix.options }}
155155
156+
- name: 📈 Memory usage
157+
run: |
158+
159+
nix develop --command -- bash -c "cabal update"
160+
N_TXNS=1000000 nix develop .#hydra-node --command -- bash -c "cabal bench micro --benchmark-options '--json output.json +RTS -T'"
161+
nix develop --command -- bash -c "jq '.[2][0].reportMeasured[0][5]' hydra-node/output.json"
162+
156163
- name: 💾 Upload build & test artifacts
157164
uses: actions/upload-artifact@v4
158165
with:

0 commit comments

Comments
 (0)