-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove earthly usage for benchmarks
- Loading branch information
Showing
8 changed files
with
140 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,7 @@ | |
just | ||
nodejs_22 | ||
self.packages.${system}.speakeasy | ||
goperf | ||
]; | ||
}; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
set dotenv-load | ||
set positional-arguments | ||
|
||
tmpdir := `mktemp -d` | ||
|
||
run bench='.' p='1' benchtime='1s' count='1' ledger-url='' output='./report/benchmark-output.txt': | ||
rm -f {{output}} | ||
go test -run ^$ -tags it,local \ | ||
-report.file ./report/report.json \ | ||
-timeout 60m \ | ||
-bench={{bench}} \ | ||
-count={{count}} \ | ||
--ledger.url={{ledger-url}} \ | ||
-p {{p}} \ | ||
-test.benchtime {{benchtime}} . | tee -a {{output}} | ||
|
||
compare bench='.' p='1' benchtime='1s' count='1' output='./report/benchmark-output.txt': | ||
just run {{bench}} {{p}} {{benchtime}} {{count}} '' './report/benchmark-output-local.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 60m \ | ||
-bench={{bench}} \ | ||
-count={{count}} \ | ||
-p {{p}} \ | ||
-test.benchtime {{benchtime}} \ | ||
{{tmpdir}}/test/performance | tee -a ./report/benchmark-output-main.txt | ||
benchstat ./report/benchmark-output-main.txt ./report/benchmark-output-local.txt > ./report/benchmark-comparison.txt || true | ||
|
||
graphs: | ||
cd charts && npm install | ||
cd charts && npm run build | ||
cd charts && node ./index.js |