-
Notifications
You must be signed in to change notification settings - Fork 25
ci: add benchmark workflow #1643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,35 @@ | ||||||||||||||
| name: firewood-benchmarks | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: [main] | ||||||||||||||
| workflow_dispatch: | ||||||||||||||
|
|
||||||||||||||
| env: | ||||||||||||||
| CARGO_TERM_COLOR: always | ||||||||||||||
| RUST_BACKTRACE: full | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| bench: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this run on a dedicated/self-hosted runner instead of ubuntu-latest? Shared runners have variable performance which can make benchmark results unreliable for tracking regressions across runs.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What dedicated/self-hosted runners are available to use? Open to switching but I'm unaware of the options.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reference, these self-hosted runners are available (managed via ARC):
Worth reaching out to security/GitHub admin for a full list. Not a blocker tho ubuntu-latest is fine to start.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full list of self-hosted runners: https://github.com/ava-labs/devops-argocd/blob/main/base/system/actions-runners/action-runner.yaml |
||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||
| - uses: dtolnay/rust-toolchain@stable | ||||||||||||||
| - uses: Swatinem/rust-cache@v2 | ||||||||||||||
| with: | ||||||||||||||
| shared-key: "maxperf-ethhash-logger" | ||||||||||||||
| cache-all-crates: true | ||||||||||||||
| cache-workspace-crates: true | ||||||||||||||
| - name: Cargo Fetch (run `cargo generate-lockfile` if this fails) | ||||||||||||||
| run: cargo fetch --locked --verbose | ||||||||||||||
| - name: Build | ||||||||||||||
| run: cargo build --frozen --profile maxperf --features ethhash,logger --workspace --benches | ||||||||||||||
| - name: Run firewood crate benchmarks | ||||||||||||||
| run: cargo bench --frozen --profile maxperf --features ethhash,logger -p firewood --bench hashops -- --noplot | ||||||||||||||
| - name: Run storage crate benchmarks | ||||||||||||||
| run: cargo bench --frozen --profile maxperf --features ethhash,logger -p firewood-storage --bench serializer -- --noplot | ||||||||||||||
| - name: Upload benchmark results | ||||||||||||||
| uses: actions/upload-artifact@v4 | ||||||||||||||
| with: | ||||||||||||||
| name: benchmark-results | ||||||||||||||
| path: target/criterion | ||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.