mirror of
https://github.com/theryangeary/choose
synced 2024-11-23 03:13:04 +00:00
Add test and bench rules to Makefile
This commit is contained in:
parent
b6d3e4ba5a
commit
dfc95865d4
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -6,6 +6,16 @@ flamegraph_commit: release
|
|||
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
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
test/e2e_test.sh
|
||||
|
||||
bench: release
|
||||
test/bench.sh working
|
||||
|
||||
bench_commit: release
|
||||
test/bench.sh `git log -n 1 --pretty=format:"%h"`
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
cargo build --release
|
||||
|
|
Loading…
Reference in a new issue