Skip to content

Commit 6852bf6

Browse files
authored
feat: bench derivation pipeline (#350)
1 parent e1d9306 commit 6852bf6

File tree

515 files changed

+648
-99
lines changed

Some content is hidden

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

515 files changed

+648
-99
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 & 27 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ 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"] }
43-
reth-tracing.workspace = true
43+
reqwest.workspace = true
44+
serde_json.workspace = true
4445
scroll-db = { workspace = true, features = ["test-utils"] }
4546
scroll-codec = { workspace = true, features = ["test-utils"] }
46-
tempfile = "3.20.0"
4747
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
4848

4949
[features]

0 commit comments

Comments
 (0)