subms-hdr-histogram-0.5.0 has been yanked.
HDR histogram - Rust
Log-linear bucket histogram with significant-digit precision. Record p99 < 100 ns; percentile read sweeps the counter array.
Part of the submillisecond.com cookbook. Zero external dependencies; std only.
Install
[]
= "0.4"
Quickstart
Public API
pub struct HdrHistogrampub fn new(significant_digits: u32) -> Selfpub fn count(&self) -> u64pub fn max(&self) -> u64pub fn record(&mut self, value: u64)pub fn value_at_percentile(&self, q: f64) -> u64pub fn sub_count(&self) -> u32
Files
src/lib.rs- implementation.tests/- integration tests; correctness, edge cases, property/stress.examples/demo.rs- stdout walkthrough.examples/perf_main.rs- bench entry (behind theharnessfeature).
License
Dual-licensed under MIT OR Apache-2.0.