forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (42 loc) · 1.55 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Benchmark o1js
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch: {}
jobs:
benchmarks:
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
node: [20]
runners: [sdk-self-hosted-linux-amd64, sdk-self-hosted-linux-arm64]
runs-on: ${{ matrix.runners }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.JS ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Build o1js and execute benchmarks on ${{ matrix.runners }} and Node.JS ${{ matrix.node }}
env:
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
INFLUXDB_URL: ${{ secrets.INFLUXDB_URL }}
INFLUXDB_ORG: ${{ secrets.INFLUXDB_ORG }}
INFLUXDB_BUCKET: ${{ secrets.INFLUXDB_BUCKET }}
INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }}
METRICS_SOURCE_ENVIRONMENT: 'o1js GitHub Actions'
METRICS_BASE_BRANCH_FOR_COMPARISON: 'main'
run: |
GIT_LFS_SKIP_SMUDGE=1 git submodule update --init --recursive
npm ci
npm run build
echo 'Running o1js benchmarks.'
node --enable-source-maps --stack-trace-limit=1000 src/build/run.js benchmark/runners/init.ts --bundle >>benchmarks.log 2>&1
node --enable-source-maps --stack-trace-limit=1000 src/build/run.js benchmark/runners/simple.ts --bundle >>benchmarks.log 2>&1
cat benchmarks.log >> $GITHUB_STEP_SUMMARY
shell: bash