Skip to content

Efficient scalar mul and other Scalar improvements #74

Efficient scalar mul and other Scalar improvements

Efficient scalar mul and other Scalar improvements #74

Workflow file for this run

name: Benchmark o1js
on:
push:
branches:
- main
- berkeley
- develop
pull_request:
workflow_dispatch: {}
jobs:
benchmarks:
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
node: [20]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
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.os }} 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 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/with-cloud-history.ts --bundle >>benchmarks.log 2>&1
cat benchmarks.log >> $GITHUB_STEP_SUMMARY
shell: bash