Skip to content

Commit

Permalink
feat(ledger): add some parameters to benchmarks (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag authored and flemzord committed Dec 4, 2023
1 parent 8b7fe8b commit 76bc275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ bench:
ARG benchTime=1s
ARG count=1
ARG GOPROXY
ARG testTimeout=10m
ARG bench=.
WITH DOCKER --pull postgres:15-alpine
RUN --mount type=cache,id=gopkgcache,target=${GOPATH}/pkg/mod \
--mount type=cache,id=gobuild,target=/root/.cache/go-build \
go test -bench=. -run ^$ \
go test -timeout $testTimeout -bench=$bench -run ^$ \
-benchtime=$benchTime \
-count=$count \
-transactions=$numberOfTransactions | tee -a /results.txt
Expand Down

0 comments on commit 76bc275

Please sign in to comment.