Decision Workspace
sampling-tree vs hdrhistogram vs stochastic-rs-distributions
Side-by-side comparison of Rust crates
34
sampling-tree
growingv0.1.0
A simple sampling tree implementation for sampling discrete distributions with sparse dynamic updates. This allows us to sample efficiently from a distribution given the relative importance of each datapoint. Construction time is O(n), updating is O(log(n)), and sampling is O(log(n)). The memory footprint is no more than twice the size of `n*std::mem::size_of::<T>()` where `T` is weight datatype.
69
hdrhistogram
stablev7.6.0
A port of HdrHistogram to Rust
64
stochastic-rs-distributions
experimentalv2.6.0
36 SIMD probability distributions for Rust — normal, gamma, alpha-stable, NIG, variance gamma, generalized hyperbolic — most with closed-form pdf, cdf, characteristic function and moments.
Core Metrics
| sampling-tree | hdrhistogram | stochastic-rs-distributions | |
|---|---|---|---|
| Health Score | 34 | 69 | 64 |
| Total Downloads | 1.5K | 119.9M | 1.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 3.4K | 153 |
| Releases | 1 | 37 | 23 |
| Last Updated | 700d ago | 83d ago | 9d ago |
| Age | 1y 11m | 11y 3m | 5m |
Health Breakdown
sampling-tree
Maintenance
1
Quality
14
Community
5
Popularity
4
Documentation
10
hdrhistogram
Maintenance
13
Quality
18
Community
15
Popularity
8
Documentation
15
stochastic-rs-distributions
Maintenance
18
Quality
17
Community
12
Popularity
4
Documentation
13
Technical Details
| sampling-tree | hdrhistogram | stochastic-rs-distributions | |
|---|---|---|---|
| Version | 0.1.0 | 7.6.0 | 2.6.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT/Apache-2.0 | MIT |
| Dependencies | 5 | 10 | 13 |
| Crate Size | 7KB | 323KB | 78KB |
| Features | 0 | 4 | 3 |
| Yanked % | 0.0% | 2.7% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | — | 1.88 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •hdrhistogram leads with a health score of 69/100, but none of the options score above 80.
- •hdrhistogram is depended on by 3.4K crates — strongest ecosystem trust.
- •⚠ sampling-tree has not been updated in over a year.
- •sampling-tree is pre-1.0 — API may change.