From c4959c6e060d236b89d865780af215498608a1b1 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Wed, 22 May 2019 00:15:48 -0400 Subject: [PATCH] tone it down a notch --- src/influx.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/influx.rs b/src/influx.rs index fe5ec1d..d95a73d 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -1113,12 +1113,13 @@ mod tests { use super::*; use test::{black_box, Bencher}; + #[ignore] #[bench] - fn write_one_million_rows_to_influx(b: &mut Bencher) { + fn measure_ten(b: &mut Bencher) { let influx = InfluxWriter::new("localhost", "test", "log/influx.log", 8192); let mut n = 0; b.iter(|| { - for _ in 0..1_000_000 { + for _ in 0..10 { let time = influx.nanos(Utc::now()); n += 1; measure!(influx, million, i(n), tm(time));