2020-08-13 21:42:44 +00:00
|
|
|
.PHONY: release
|
|
|
|
release:
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
.PHONY: release-debug
|
|
|
|
release-debug:
|
|
|
|
RUSTFLAGS=-g cargo build --release
|
|
|
|
|
2020-03-16 15:42:04 +00:00
|
|
|
flamegraph: release-debug
|
2020-02-25 04:59:51 +00:00
|
|
|
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
|
|
|
|
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/working.svg
|
|
|
|
|
2020-03-16 15:42:04 +00:00
|
|
|
flamegraph_commit: release-debug
|
2020-02-25 04:59:51 +00:00
|
|
|
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
|
|
|
|
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/`git log -n 1 --pretty=format:"%h"`.svg
|
|
|
|
|
2020-03-15 18:45:32 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2020-04-05 02:29:51 +00:00
|
|
|
cargo test
|
2020-03-15 18:45:32 +00:00
|
|
|
test/e2e_test.sh
|
|
|
|
|
|
|
|
bench: release
|
|
|
|
test/bench.sh working
|
|
|
|
|
|
|
|
bench_commit: release
|
|
|
|
test/bench.sh `git log -n 1 --pretty=format:"%h"`
|
|
|
|
|