Skip to content

Commit

Permalink
feat(ledger): add earthfile target to compare benchmarks (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag authored and flemzord committed Dec 4, 2023
1 parent b69ca22 commit 8b7fe8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ bench:

benchstat:
FROM core+builder-image
DO core+GO_INSTALL --package=golang.org/x/perf/cmd/benchstat
COPY +bench/results.txt /tmp/branch.txt
COPY ../../components/ledger:main+bench/results.txt /tmp/main.txt
DO --pass-args core+GO_INSTALL --package=golang.org/x/perf/cmd/benchstat@latest
COPY --pass-args +bench/results.txt /tmp/branch.txt
COPY --pass-args github.com/formancehq/stack/components/ledger:main+bench/results.txt /tmp/main.txt
RUN benchstat /tmp/main.txt /tmp/branch.txt

0 comments on commit 8b7fe8b

Please sign in to comment.