diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index a9e7288cf..a6cad7e11 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,22 +16,12 @@ jobs: - uses: 'actions/checkout@v4' with: fetch-depth: 0 - - run: go build -o /tmp/ledger ./ - - run: echo "running actions as ${USER}" - - run: > - /tmp/ledger serve - --postgres-uri=postgres://formance:formance@127.0.0.1/ledger - --postgres-conn-max-idle-time=120s - --postgres-max-open-conns=500 - --postgres-max-idle-conns=100 - --experimental-features - --otel-metrics-keep-in-memory & - uses: extractions/setup-just@v2 - run: > just --justfile ./test/performance/justfile --working-directory ./test/performance - run . 5 10s 1 http://localhost:3068 + run . 5 10s 1 - run: > just --justfile ./test/performance/justfile diff --git a/test/performance/justfile b/test/performance/justfile index 45149377e..2159ffe1e 100755 --- a/test/performance/justfile +++ b/test/performance/justfile @@ -3,20 +3,19 @@ set positional-arguments tmpdir := `mktemp -d` -run bench='.' p='1' benchtime='1s' count='1' ledger-url='' output='./report/benchmark-output.txt': +run bench='.' p='1' benchtime='1s' count='1' 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': trap 'rm -rf {{tmpdir}}' EXIT - just run {{bench}} {{p}} {{benchtime}} {{count}} '' './report/benchmark-output-local.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 \