Run Benchmarks #313
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
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 }} |