Skip to content

Commit 8732faf

Browse files
avrabeclaude
andcommitted
feat(benches): criterion benchmarks for signature verification paths
Adds criterion-driven benchmarks for the four signature-verification hot paths: Ed25519 verify, DSSE envelope parse+verify, Merkle tree validation (parameterised by leaf count), and cert-chain validation (parameterised by chain length, matching MAX_CHAIN_DEPTH=8 from audit PR #98). SLH-DSA bench deferred to issue #46. CI integration deferred to a follow-up PR — this commit only lands the bench harness so baselines can be captured. Traceability comments at the top of the bench file link each group to its CR-* artifact. Implements: #89 Verifies: CR-1, CR-3, CR-7, CR-8 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 57c5b71 commit 8732faf

3 files changed

Lines changed: 442 additions & 5 deletions

File tree

Cargo.lock

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

src/lib/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ optional = true
109109
[dev-dependencies]
110110
# WAT (WebAssembly Text) parser for tests
111111
wat = "1.221"
112+
# Criterion for signature-verification benchmarks (issue #89)
113+
criterion = { version = "0.5", features = ["html_reports"] }
114+
115+
[[bench]]
116+
name = "verification_benchmarks"
117+
harness = false
112118

113119
[features]
114120
default = ["software-keys", "sync"]

0 commit comments

Comments
 (0)