https://github.com/epickrram/rustogram
rust port of hdr-histogram
https://github.com/epickrram/rustogram
Last synced: 6 months ago
JSON representation
rust port of hdr-histogram
- Host: GitHub
- URL: https://github.com/epickrram/rustogram
- Owner: epickrram
- License: apache-2.0
- Created: 2016-01-18T09:11:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-18T08:34:16.000Z (almost 10 years ago)
- Last Synced: 2025-06-12T09:04:39.683Z (7 months ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rustogram
[](https://travis-ci.org/epickrram/rustogram)
A Rust port of [HdrHistogram](https://github.com/HdrHistogram/HdrHistogram).
# features
* Implements the signed 64-bit histogram implementation
* Binary compatible storage/retrieval of histogram values
* Serialisation compatible (v2 only, scaling not supported)
# usage
extern crate rustogram;
#[test]
fn it_works() {
let mut h = rustogram::histogram::new_histogram(10000, 3);
h.record_value(42);
println!("Total recorded samples: {}", h.get_total_count());
}