Skip to content

Run Benchmarks

Run Benchmarks #313

Workflow file for this run

name: Run Benchmarks
# run on changes to trunk, and also nightly
on:
push:
branches: [master]
schedule:
# Run an hour after the daily test-all-packages.yml job, so it can
# populate the build caches
- cron: '47 6 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/restore-node
with:
node-version: '18.x'
- name: yarn bench (boot)
shell: bash
run: |
cd packages/boot && yarn bench
echo "METRIC_VALUE=`cat benchmark-stress-vaults.json | jq .avgPerVaultMs`" >> $GITHUB_ENV
- uses: ./.github/actions/publish-metric
with:
metric: 'vats.perf.avgPerVaultMs'
metric-value: ${{env.METRIC_VALUE}}
datadog-token: ${{ secrets.DATADOG_API_KEY }}