Skip to content

feat: remove earthly usage for benchmarks #627

feat: remove earthly usage for benchmarks

feat: remove earthly usage for benchmarks #627

Workflow file for this run

name: Benchmark
on:
workflow_dispatch:
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Benchmark:
runs-on: "github-001"
if: contains(github.event.pull_request.labels.*.name, 'benchmarks') || github.ref == 'refs/heads/main'
steps:
- 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: >
just
--justfile ./test/performance/justfile
--working-directory ./test/performance
graphs
- run: kill -9 $(ps aux | grep "ledger serve"| grep -v "grep" | awk '{print $2}')
if: always()
- uses: actions/upload-artifact@v4
with:
name: graphs
path: test/performance/report