use commonware_cryptography::{Hasher, Sha256}; use commonware_runtime::Metrics; use criterion::criterion_main; use prometheus_client::registry::Metric; mod hashmap_insert; mod hashmap_insert_fixed; mod hashmap_iteration; mod insert; mod lookup; mod lookup_miss; pub(crate) type Digest = ::Digest; #[derive(Clone)] pub(crate) struct DummyMetrics; impl Metrics for DummyMetrics { fn label(&self) -> String { "".into() } fn with_label(&self, _: &str) -> Self { Self } fn with_attribute(&self, _: &str, _: impl std::fmt::Display) -> Self { Self } fn with_scope(&self) -> Self { Self } fn with_span(&self) -> Self { Self } fn register, H: Into>(&self, _: N, _: H, _: impl Metric) {} fn encode(&self) -> String { "".into() } } criterion_main!( hashmap_iteration::benches, hashmap_insert_fixed::benches, hashmap_insert::benches, insert::benches, lookup::benches, lookup_miss::benches, );