Skip to content

Commit 98646d8

Browse files
committed
Add fraud proof verification benchmark with criterion
Signed-off-by: linning <[email protected]>
1 parent f821e10 commit 98646d8

File tree

6 files changed

+810
-5
lines changed

6 files changed

+810
-5
lines changed

Cargo.lock

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

crates/sp-domains-fraud-proof/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ sp-trie.workspace = true
3838
sp-weights.workspace = true
3939
subspace-core-primitives.workspace = true
4040
subspace-runtime-primitives.workspace = true
41+
tracing.workspace = true
4142
trie-db.workspace = true
4243
thiserror.workspace = true
4344

4445
[dev-dependencies]
46+
criterion.workspace = true
4547
domain-block-preprocessor.workspace = true
4648
domain-test-service.workspace = true
4749
ethereum.workspace = true
@@ -52,13 +54,18 @@ frame-system.workspace = true
5254
futures.workspace = true
5355
libsecp256k1 = { workspace = true, features = ["static-context", "hmac"] }
5456
pallet-balances.workspace = true
57+
pallet-domains.workspace = true
5558
pallet-ethereum.workspace = true
5659
rand = { workspace = true, features = ["min_const_gen"] }
5760
rlp.workspace = true
5861
sp-core.workspace = true
62+
sp-externalities.workspace = true
63+
sp-weights.workspace = true
5964
sc-cli.workspace = true
6065
sp-domains = { workspace = true, features = ["test-ethereum"] }
66+
sc-domains.workspace = true
6167
sc-service.workspace = true
68+
subspace-test-runtime.workspace = true
6269
subspace-test-service.workspace = true
6370
subspace-runtime-primitives.workspace = true
6471
tempfile.workspace = true
@@ -98,3 +105,7 @@ std = [
98105
"thiserror/std",
99106
]
100107
runtime-benchmarks = []
108+
109+
[[bench]]
110+
name = "fraud_proof_verification"
111+
harness = false

0 commit comments

Comments
 (0)