Skip to content

Commit c29cf6d

Browse files
committed
feat: add derivation pipeline benchmark (with and without network call)
1 parent 8f83a0a commit c29cf6d

File tree

514 files changed

+642
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

514 files changed

+642
-95
lines changed

.github/workflows/bench.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Runs benchmarks.
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
BASELINE: base
11+
SEED: rollup-node
12+
13+
name: bench
14+
jobs:
15+
codspeed:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v5
19+
- uses: rui314/setup-mold@v1
20+
- uses: dtolnay/rust-toolchain@stable
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
cache-on-failure: true
24+
- name: Install cargo-codspeed
25+
uses: taiki-e/install-action@v2
26+
with:
27+
tool: cargo-codspeed
28+
- name: Build the benchmark target(s)
29+
run: cargo codspeed build -p scroll-derivation-pipeline
30+
- name: Run the benchmarks
31+
uses: CodSpeedHQ/action@v3
32+
with:
33+
run: cargo codspeed run --workspace

Cargo.lock

Lines changed: 138 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/derivation-pipeline/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ tracing.workspace = true
3737
[dev-dependencies]
3838
async-trait.workspace = true
3939
alloy-primitives = { workspace = true, features = ["getrandom"] }
40-
criterion = { version = "0.6", features = ["async", "async_tokio"] }
40+
criterion = { package = "codspeed-criterion-compat", version = "4.0.2", features = ["async", "async_tokio"] }
4141
eyre.workspace = true
4242
rollup-node-providers = { workspace = true, features = ["test-utils"] }
4343
reth-tracing.workspace = true
44+
reqwest.workspace = true
45+
serde_json.workspace = true
4446
scroll-db = { workspace = true, features = ["test-utils"] }
4547
scroll-codec = { workspace = true, features = ["test-utils"] }
4648
tempfile = "3.20.0"

0 commit comments

Comments
 (0)