Craton Shield
vs-crypto benches
Criterion micro-benchmarks for performance-sensitive paths in vs-crypto.
Convention
-
Each bench file is a standalone criterion harness (
harness = false). -
Compiled only when the
benchfeature is enabled — keeps the default build path free of criterion + std deps. Run with:cargo bench -p vs-crypto --features bench -
File name describes the subject under measurement, not the implementation strategy. Example:
nonce_tracker_bloom.rsmeasuresNonceTrackerBloom fast-path effectiveness regardless of whether the rebuild cadence changes.
Benches
| File | Measures |
|---|---|
nonce_tracker_bloom.rs | High-churn check_and_record throughput; sensitive to Bloom saturation. |
Adding a new bench
- Add
benches/<name>.rswithcriterion_main!. - Add a
[[bench]]stanza inCargo.tomlwithharness = falseandrequired-features = ["bench"]. - Document the bench in the table above.