Skip to content

Commit 6494f3c

Browse files
authored
Merge pull request #12 from marshallpierce/smaller-types
Reduce memory footprint per histogram.
2 parents c777a70 + d5f85e7 commit 6494f3c

File tree

6 files changed

+174
-91
lines changed

6 files changed

+174
-91
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ benchmark = [] # for crates.io publication
2727
num = "0.1"
2828
#criterion = { git = "https://github.com/japaric/criterion.rs.git", optional = true }
2929

30+
[dev-dependencies]
31+
rand = "0.3.15"
32+
3033
[lib]
3134
path = "src/lib.rs"
3235

benchmarks/busy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate hdrsample;
22
use hdrsample::Histogram;
33

44
const TRACKABLE_MAX: u64 = 3600 * 1000 * 1000; // e.g. for 1 hr in usec units
5-
const SIGFIG: u32 = 3;
5+
const SIGFIG: u8 = 3;
66
const TEST_VALUE_LEVEL: u64 = 12340;
77

88
fn main() {

0 commit comments

Comments
 (0)