-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmarks in CI (without prev results comparison).
- Loading branch information
Showing
6 changed files
with
142 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Benchmark o1js | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
pull_request: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
benchmarks: | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [18, 20] | ||
os: [ubuntu-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_HASH: ${{ github.sha }} | ||
GIT_BRANCH: ${{ github.head_ref }} | ||
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' | ||
run: | | ||
git submodule update --init --recursive | ||
npm ci | ||
npm run build | ||
bash run-ci-benchmarks.sh | ||
cat benchmarks.log >> $GITHUB_STEP_SUMMARY | ||
shell: bash |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
echo "" | ||
echo "Running o1js benchmarks." | ||
echo "" | ||
|
||
./run benchmarks/ecdsa.ts --bundle >>benchmarks.log 2>&1 |