#histogram #percentile #statistics #stats

histogram

histogram storage and percentile metrics with precision guarentees

28 releases

Uses old Rust 2015

0.6.9 May 2, 2018
0.6.8 Nov 17, 2017
0.6.7 Sep 2, 2017
0.6.6 May 18, 2017
0.1.3 Jul 28, 2015

#158 in Data structures

Download history 2119/week @ 2021-05-28 1638/week @ 2021-06-04 2061/week @ 2021-06-11 1860/week @ 2021-06-18 2072/week @ 2021-06-25 1584/week @ 2021-07-02 1928/week @ 2021-07-09 2295/week @ 2021-07-16 2371/week @ 2021-07-23 2258/week @ 2021-07-30 2919/week @ 2021-08-06 2783/week @ 2021-08-13 2213/week @ 2021-08-20 2410/week @ 2021-08-27 3519/week @ 2021-09-03 3797/week @ 2021-09-10

7,413 downloads per month
Used in 21 crates (14 directly)

MIT/Apache

35KB
674 lines

histogram - histogram storage and percentile stats

Histogram is a stats library for rust which provides histogram storage with percentile stats. It maintains precision guarentees throughout the range of stored values. The bucketing algorithm makes use of logarithmic outer buckets with linear steps between those buckets. This allows for storing a wide range of values - like latency in nanoseconds from one nanosecond all that way to minutes while maintaining precision of those recorded values.

conduct-badge travis-badge downloads-badge release-badge license-badge

Code of Conduct

NOTE: All conversations and contributions to this project shall adhere to the Code of Conduct

Usage

To use histogram, first add this to your Cargo.toml:

[dependencies]
histogram = "*"

Then, add this to your crate root:

extern crate histogram;

The API documentation of this library can be found at docs.rs/histogram.

Features

  • Values are stored with precision guarentees
  • Pre-allocated on initialization
  • Retrieve percentile stats

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps