-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
27 lines (22 loc) · 900 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ---------------------- General helpers that should work for everyone ---------------------- #
# build and run rust benchmarks
bench-rust:
cargo bench -p factrs-bench
# build and run cpp benchmarks
bench-cpp:
cmake -B build factrs-bench/cpp
cmake --build build
./build/bench
# profile the g2o example using flamegraph
profile:
cargo flamegraph --profile profile --example g2o -- ./examples/data/parking-garage.g2o
# build docs with latex support
docs:
RUSTDOCFLAGS="--html-in-header $PWD/assets/katex-header.html" cargo doc
# ---------------------- Easton specific helpers that work on my system ---------------------- #
# tune the system for benchmarking using pyperf
perf-tune:
sudo ~/.local/share/uv/tools/pyperf/bin/pyperf system tune
# reset the system after benchmarking using pyperf
perf-reset:
sudo ~/.local/share/uv/tools/pyperf/bin/pyperf system reset