File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66jobs :
77 memory :
88 runs-on : ubuntu-24.04
9+ env :
10+ BENCHMARK_FILE : tests/inputs/function_exactly_two_of_four.aag
911
1012 steps :
1113 - name : Checkout
1214 uses : actions/checkout@v6
1315
16+ - name : Install Rust toolchain
17+ uses : dtolnay/rust-toolchain@nightly
18+
1419 - name : Install Valgrind
1520 run : |
1621 sudo apt-get update
1722 sudo apt-get install -y valgrind
1823
19- - name : Build
20- run : cargo build --release --examples
24+ - name : Build memory benchmarks
25+ run : |
26+ mkdir -p examples
27+ cp benchmark/memory/memory_raig.rs examples/memory_raig.rs
28+ cp benchmark/memory/memory_mutaig.rs examples/memory_mutaig.rs
29+ cp benchmark/memory/memory_aig_rs.rs examples/memory_aig_rs.rs
30+ cargo build --release --examples
2131
2232 - name : Profile raig
2333 run : |
2434 valgrind \
2535 --tool=massif \
2636 --time-unit=B \
2737 --massif-out-file=massif-raig.out \
28- ./target/release/examples/memory_raig tests/benchmark.aig
38+ ./target/release/examples/memory_raig "$BENCHMARK_FILE"
2939
3040 ms_print massif-raig.out > massif-raig.txt
3141
3545 --tool=massif \
3646 --time-unit=B \
3747 --massif-out-file=massif-mutaig.out \
38- ./target/release/examples/memory_mutaig tests/benchmark.aig
48+ ./target/release/examples/memory_mutaig "$BENCHMARK_FILE"
3949
4050 ms_print massif-mutaig.out > massif-mutaig.txt
4151
4555 --tool=massif \
4656 --time-unit=B \
4757 --massif-out-file=massif-aig-rs.out \
48- ./target/release/examples/memory_aig_rs tests/benchmark.aig
58+ ./target/release/examples/memory_aig_rs "$BENCHMARK_FILE"
4959
5060 ms_print massif-aig-rs.out > massif-aig-rs.txt
5161
5565 name : memory-profiles
5666 path : |
5767 massif-*.out
58- massif-*.txt
68+ massif-*.txt
You can’t perform that action at this time.
0 commit comments