Skip to content

Commit

Permalink
fix: benchmark comparison
Browse files Browse the repository at this point in the history
was comparing self with self
  • Loading branch information
gfyrag committed Jan 20, 2025
1 parent dc4e2b6 commit 78d052a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/performance/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ run bench='.' p='1' benchtime='1s' count='1' output='./report/benchmark-output.t
compare bench='.' p='1' benchtime='1s' count='1' output='./report/benchmark-output.txt':
trap 'rm -rf {{tmpdir}}' EXIT
just run {{bench}} {{p}} {{benchtime}} {{count}} './report/benchmark-output-local.txt'
rm ./report/benchmark-output-main.txt
git clone --depth 1 -b main https://github.com/formancehq/ledger {{tmpdir}}
go test -run ^$ -tags it,local -report.file \
./report/report.json \
-timeout 600m \
-bench={{bench}} \
-count={{count}} \
-p {{p}} \
-test.benchtime {{benchtime}} \
{{tmpdir}}/test/performance | tee -a ./report/benchmark-output-main.txt
cd {{tmpdir}}/test/performance && just run {{bench}} {{p}} {{benchtime}} {{count}} '../../../report/benchmark-output-main.txt'
benchstat ./report/benchmark-output-main.txt ./report/benchmark-output-local.txt > ./report/benchmark-comparison.txt || true

graphs:
Expand Down

0 comments on commit 78d052a

Please sign in to comment.