saphyr-serde/parser/justfile

30 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

before_commit:
cargo fmt --check
cargo clippy --release --all-targets -- -D warnings
cargo clippy --all-targets -- -D warnings
cargo build --release --all-targets
cargo build --all-targets
cargo test
cargo test --release
2024-03-20 14:50:48 +00:00
cargo test --doc
cargo build --profile=release-lto --package gen_large_yaml --bin gen_large_yaml --manifest-path tools/gen_large_yaml/Cargo.toml
2024-03-28 20:03:14 +00:00
RUSTDOCFLAGS="-D warnings" cargo doc --all-features
2024-03-15 17:29:54 +00:00
ethi_bench:
cargo build --release --all-targets
cd ../Yaml-rust && cargo build --release --all-targets
cd ../serde-yaml/ && cargo build --release --all-targets
2024-03-15 17:29:54 +00:00
cd ../libfyaml/build && ninja
cargo bench_compare run_bench
ethi_build_cg_dump:
(cargo test 2>&1 >/dev/null || (cargo test && false))
CARGO_PROFILE_RELEASE_DEBUG=true cargo build --release --bin time_parse
valgrind --tool=callgrind --dump-instr=yes --collect-jumps=yes ./target/release/time_parse ~/Projects/yaml-rust2/bench_yaml/small_objects.yaml
ethi_build_dump: ethi_build_cg_dump
cg_file=`\ls -1t callgrind.out.* | head -n1` && callgrind_annotate $cg_file --auto=no --threshold=99.99 > cg/WORK && rm $cg_file
ethi_compare: ethi_build_dump
2024-07-05 19:38:34 +00:00
callgrind_differ `\ls cg/0*` cg/WORK --show percentagediff,ircount --sort-by=-first-ir -a