Skip to content

Commit

Permalink
Makefile: add build.binary.bench
Browse files Browse the repository at this point in the history
Building bench binary.

Signed-off-by: Ekaterina Pavlova <[email protected]>
  • Loading branch information
AliceInHunterland committed May 21, 2024
1 parent 81c6f30 commit 723033f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ help:
@echo ''
@awk '/^#/{ comment = substr($$0,3) } comment && /^[a-zA-Z][a-zA-Z0-9_-]+ ?:/{ print " ", $$1, comment }' $(MAKEFILE_LIST) | column -t -s ':' | grep -v 'IGNORE' | sort | uniq

.PHONY: build prepare push gen build.node.go build.node.sharp stop start config \
.PHONY: build prepare push gen build.node.go build.node.sharp build.binary.bench stop start config \
start.GoSingle10wrk start.GoSingle30wrk start.GoSingle100wrk \
start.GoSingle25rate start.GoSingle50rate start.GoSingle60rate start.GoSingle300rate start.GoSingle1000rate \
start.GoFourNodes10wrk start.GoFourNodes30wrk start.GoFourNodes100wrk \
Expand All @@ -39,6 +39,14 @@ help:
# Build all images
build: gen build.node.bench build.node.go build.node.sharp

# Build Benchmark binary file
build.binary.bench:
@set -x \
&& export GOGC=off \
&& export CGO_ENABLED=0 \
&& cd cmd \
&& go build -v -o bin/bench -trimpath ./bench

# Push all images to registry
push:
docker push $(HUB)-bench:$(TAG)
Expand Down Expand Up @@ -134,7 +142,7 @@ start: start.GoSingle10wrk start.GoSingle30wrk start.GoSingle100wrk \
## GoSingle:
# ## Workers:
start.GoSingle10wrk:
./runner.sh --validators 1 -d "GoSingle" -m wrk -w 10 -z 5m -t 30s
./runner.sh --validators 1 -d "GoSingle" -m wrk -w 10 -z 5m -t 30s -e

start.GoSingle30wrk:
./runner.sh --validators 1 -d "GoSingle" -m wrk -w 30 -z 5m -t 30s
Expand Down

0 comments on commit 723033f

Please sign in to comment.