45 releases

0.11.1 Oct 31, 2024
0.11.0 Jun 12, 2024
0.10.2 Jun 3, 2024
0.9.1 Feb 7, 2024
0.1.3 Jul 28, 2015

#37 in Data structures

Download history 100322/week @ 2024-08-03 84200/week @ 2024-08-10 81551/week @ 2024-08-17 89543/week @ 2024-08-24 77001/week @ 2024-08-31 80786/week @ 2024-09-07 65176/week @ 2024-09-14 79351/week @ 2024-09-21 81851/week @ 2024-09-28 76011/week @ 2024-10-05 93704/week @ 2024-10-12 91461/week @ 2024-10-19 83056/week @ 2024-10-26 81466/week @ 2024-11-02 98645/week @ 2024-11-09 107926/week @ 2024-11-16

385,446 downloads per month
Used in 573 crates (37 directly)

MIT/Apache

57KB
1K SLoC

histogram

A collection of histogram data structures which enable counting of occurrences of values and reporting on the distribution of observations.

The implementations in this crate store counts for quantized value ranges using a fast indexing algorithm that maps values into either a linear range or a logarithmic range with linear subdivisions. This is similar to HDRHistogram but the indexing algorithm is modified to make increments faster.

There are several implementations which target difference use-cases. See the documentation for details.

Documentation

See the API Documentation on docs.rs

Support

Create a new issue on GitHub.

Authors

A full list of contributors can be found on GitHub.


lib.rs:

This crate provides histogram implementations that are conceptually similar to HdrHistogram, with modifications to the bucket construction and indexing algorithms that we believe provide a simpler implementation and more efficient runtime compared to the reference implementation of HdrHistogram.

Goals

  • simple implementation
  • fine-grained configuration
  • efficient runtime

Background

Please see: https://observablehq.com/@iopsystems/h2histogram

Dependencies

~0.2–1MB
~20K SLoC