Skip to content

Commit

Permalink
chore: fix make compare
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Apr 28, 2023
1 parent 6096083 commit d3031b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ profile:
go test -benchmem -run=^$$ -bench ^BenchmarkLintMD$$ github.com/errata-ai/vale/v2/internal/lint -cpuprofile=bin/cpu.out -memprofile=bin/mem.out -trace=bin/trace.out
mv lint.test bin

# go install github.com/aclements/go-misc/benchmany@latest
# go install golang.org/x/tools/cmd/benchcmp@latest
# go install golang.org/x/perf/cmd/benchstat@latest
compare:
cd internal/lint && \
benchmany -n 5 -o new.txt ${CURR_SHA} && \
benchmany -n 5 -o old.txt ${LAST_TAG} && \
benchcmp old.txt new.txt && \
benchmany -n 10 -o new.txt ${CURR_SHA} && \
benchmany -n 10 -o old.txt ${LAST_TAG} && \
benchstat old.txt new.txt

setup:
Expand Down

0 comments on commit d3031b9

Please sign in to comment.