Skip to content

Commit

Permalink
fix path to benchstat
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
  • Loading branch information
xcoulon committed Apr 2, 2022
1 parent a6379b2 commit cb7e694
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions make/bench.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
REPORTS_DIR=./tmp/bench/reports
BENCH_COUNT=10
BENCH_COUNT ?= 10

# Detecting GOPATH and removing trailing "/" if any
GOPATH = $(realpath $(shell go env GOPATH))
$(info GOPATH: ${GOPATH})

.PHONY: bench
## run the top-level benchmarks
Expand Down Expand Up @@ -31,10 +35,10 @@ bench-diff: clean generate-optimized check-git-status
@git checkout $(GIT_BRANCH_NAME)
@echo ""
@echo "Comparing with 'master' branch"
@benchstat $(REPORTS_DIR)/$(GIT_BRANCH_NAME)-$(GIT_COMMIT_ID_SHORT).bench $(REPORTS_DIR)/master.bench
@$(GOPATH)/bin/benchstat $(REPORTS_DIR)/$(GIT_BRANCH_NAME)-$(GIT_COMMIT_ID_SHORT).bench $(REPORTS_DIR)/master.bench
@echo ""
@echo "Comparing with 'v0.7.0' tag"
@benchstat $(REPORTS_DIR)/$(GIT_BRANCH_NAME)-$(GIT_COMMIT_ID_SHORT).bench $(REPORTS_DIR)/v0.7.0.bench
@$(GOPATH)/bin/benchstat $(REPORTS_DIR)/$(GIT_BRANCH_NAME)-$(GIT_COMMIT_ID_SHORT).bench $(REPORTS_DIR)/v0.7.0.bench

check-git-status:
ifneq ("$(shell git status --porcelain)","")
Expand Down

0 comments on commit cb7e694

Please sign in to comment.