22 lines
709 B
Makefile
22 lines
709 B
Makefile
criterion:
|
|
cargo bench
|
|
|
|
flamegraph:
|
|
cargo flamegraph --bench search -- --bench
|
|
|
|
flamegraph-debug:
|
|
cargo flamegraph --dev -o debug_flamegraph.svg --bench search -- --bench
|
|
|
|
asm:
|
|
cargo clean
|
|
cargo rustc --release --lib -- --emit asm=.vscode/asm_mangled
|
|
pwsh -Command 'Get-Content .vscode/asm_mangled | c++filt > .\src\lib.S'
|
|
pwsh -Command 'Remove-Item .vscode/asm_mangled'
|
|
|
|
maturin:
|
|
pwsh -Command 'venv/Scripts/activate; maturin develop --release'
|
|
|
|
hyperfine:
|
|
hyperfine --show-output --parameter-scan n 5 20 -S 'pwsh' -s 'venv/scripts/activate' --export-json hyperfine.json --export-csv hyperfine.csv 'python ./pytest/timing.py {n}'
|
|
|
|
.PHONY: criterion flamegraph flamegraph-debug asm hyperfine maturin |