Skip to content

Commit fc81d07

Browse files
authored
Merge pull request #25 from cucapra/bmark
add benchmarking
2 parents 91034fb + ded25ae commit fc81d07

6 files changed

Lines changed: 462 additions & 1 deletion

File tree

.github/workflows/memory.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Memory benchmarks
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
memory:
8+
runs-on: ubuntu-24.04
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v6
13+
14+
- name: Install Valgrind
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y valgrind
18+
19+
- name: Build
20+
run: cargo build --release --examples
21+
22+
- name: Profile raig
23+
run: |
24+
valgrind \
25+
--tool=massif \
26+
--time-unit=B \
27+
--massif-out-file=massif-raig.out \
28+
./target/release/examples/memory_raig tests/benchmark.aig
29+
30+
ms_print massif-raig.out > massif-raig.txt
31+
32+
- name: Profile mutaig
33+
run: |
34+
valgrind \
35+
--tool=massif \
36+
--time-unit=B \
37+
--massif-out-file=massif-mutaig.out \
38+
./target/release/examples/memory_mutaig tests/benchmark.aig
39+
40+
ms_print massif-mutaig.out > massif-mutaig.txt
41+
42+
- name: Profile aig-rs
43+
run: |
44+
valgrind \
45+
--tool=massif \
46+
--time-unit=B \
47+
--massif-out-file=massif-aig-rs.out \
48+
./target/release/examples/memory_aig_rs tests/benchmark.aig
49+
50+
ms_print massif-aig-rs.out > massif-aig-rs.txt
51+
52+
- name: Upload profiles
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: memory-profiles
56+
path: |
57+
massif-*.out
58+
massif-*.txt

0 commit comments

Comments
 (0)