Skip to content

Commit 24c1ddf

Browse files
AndreiEresgithub-actions[bot]
authored andcommitted
Add criterion benches for statement-store (#9884)
# Description Adds micro benches simulating concurrent work with the statement-store. ## Integration This PR does not not affect downstream projects. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b36515d commit 24c1ddf

File tree

5 files changed

+434
-1
lines changed

5 files changed

+434
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prdoc/pr_9884.prdoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title: Add criterion benches for statement-store
2+
doc:
3+
- audience: Node Dev
4+
description: |-
5+
# Description
6+
7+
Adds micro benches simulating concurrent work with the statement-store.
8+
9+
## Integration
10+
11+
This PR does not not affect downstream projects.
12+
crates:
13+
- name: sc-statement-store
14+
bump: none

substrate/client/statement-store/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ sp-statement-store = { workspace = true, default-features = true }
3030
tokio = { features = ["time"], workspace = true, default-features = true }
3131

3232
[dev-dependencies]
33+
criterion = { workspace = true, default-features = true }
3334
sp-tracing = { workspace = true }
3435
tempfile = { workspace = true }
36+
37+
[[bench]]
38+
name = "statement_store"
39+
harness = false
40+
required-features = []

0 commit comments

Comments
 (0)