tests starting #11
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: 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 |