Browse Source

Merge branch 'v0.5.x' of git.mmcxi.com:mm/logging into v0.5.x

master
Jonathan Strong 5 years ago
parent
commit
4d8f155648
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/influx.rs

+ 2
- 2
src/influx.rs View File

@@ -1115,11 +1115,11 @@ mod tests {

#[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));


Loading…
Cancel
Save