Repository navigation
Benchmark v0.5.7 - Backup
Pre-release
Pre-release
Version 0.5.7 - 2025-08-28
- Internal, zero-dependency histogram replaces
hdrhistogramfor themetricsfeature. - Lock-free hot path for recording; improved
Watch::snapshot()internals. - Documentation refreshed; clippy/rustfmt clean; no breaking API changes.
- TL;DR: Same API, faster internals, no extra deps.
Highlights
- Zero-dependency metrics: internal high-performance histogram replaces
hdrhistogram. - Lock-free hot path for recording metrics; improved snapshotting API.
- Documentation refreshed across README and API to reflect new metrics internals.
Added
- Changelog entry documenting histogram migration and zero-dependency metrics.
Changed
- Metrics feature now uses built-in, zero-dependency histogram (
src/histogram.rs) instead ofhdrhistogram. src/watch.rs: refactored to storeArc<Histogram>per metric; lock-free recording on the hot path;snapshot()moved to use internal API.Cargo.toml: removedhdrhistogramdependency and references from features; updated description;allfeature now includesmetrics.- Documentation updates:
README.md,docs/API.md,docs/features/METRICS.mdnow describe the internal histogram and production observability path.
Removed
- External dependency on
hdrhistogramfrom themetricsfeature (metrics is now zero-dependency).
Compatibility
- Public API for metrics is preserved:
Watch,Timer, andstopwatch!continue to work as before. - No code changes required for consumers, unless relying on
hdrhistogram-specific behavior. Internal implementation is now native.
Upgrade Guide
- Update your dependency to:
[dependencies] benchmark = "0.5.7"
- If you disable default features and use metrics, enable
metricsexplicitly:[dependencies] benchmark = { version = "0.5.7", default-features = false, features = ["std", "metrics"] }
- No migration actions are required for existing
Watch/Timer/stopwatch!usage.
Quality & CI
- Clippy: clean under
#![deny(clippy::all)]across all features. - Rustfmt: formatted (CI enforces
--check). - Tests: unit, async, and feature-gated perf tests validated locally.
Full Changelog: v0.5.0...v0.5.7