Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Runs benchmarks.

on:
pull_request:
push:
branches: [main]

env:
CARGO_TERM_COLOR: always
BASELINE: base
SEED: rollup-node

name: bench
jobs:
codspeed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install cargo-codspeed
uses: taiki-e/install-action@v2
with:
tool: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build -p scroll-derivation-pipeline
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run --workspace
165 changes: 138 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/derivation-pipeline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ tracing.workspace = true
[dev-dependencies]
async-trait.workspace = true
alloy-primitives = { workspace = true, features = ["getrandom"] }
criterion = { version = "0.6", features = ["async", "async_tokio"] }
criterion = { package = "codspeed-criterion-compat", version = "4.0.2", features = ["async", "async_tokio"] }
eyre.workspace = true
rollup-node-providers = { workspace = true, features = ["test-utils"] }
reth-tracing.workspace = true
reqwest.workspace = true
serde_json.workspace = true
scroll-db = { workspace = true, features = ["test-utils"] }
scroll-codec = { workspace = true, features = ["test-utils"] }
tempfile = "3.20.0"
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

[features]
Expand Down
Loading