mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-23 02:29:57 +00:00
Update binggan requirement from 0.8.0 to 0.10.0 (#2493)
* Update binggan requirement from 0.8.0 to 0.10.0 --- updated-dependencies: - dependency-name: binggan dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * update PR --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Seitz <pascal.seitz@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ fnv = "1.0.7"
|
|||||||
winapi = "0.3.9"
|
winapi = "0.3.9"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
binggan = "0.8.0"
|
binggan = "0.10.0"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
maplit = "1.0.2"
|
maplit = "1.0.2"
|
||||||
matches = "0.1.9"
|
matches = "0.1.9"
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ pub static GLOBAL: &PeakMemAlloc<std::alloc::System> = &INSTRUMENTED_SYSTEM;
|
|||||||
/// runner.register("average_u64", move |index| average_u64(index));
|
/// runner.register("average_u64", move |index| average_u64(index));
|
||||||
macro_rules! register {
|
macro_rules! register {
|
||||||
($runner:expr, $func:ident) => {
|
($runner:expr, $func:ident) => {
|
||||||
$runner.register(stringify!($func), move |index| $func(index))
|
$runner.register(stringify!($func), move |index| {
|
||||||
|
$func(index);
|
||||||
|
None
|
||||||
|
})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ downcast-rs = "1.2.0"
|
|||||||
proptest = "1"
|
proptest = "1"
|
||||||
more-asserts = "0.3.1"
|
more-asserts = "0.3.1"
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
binggan = "0.8.1"
|
binggan = "0.10.0"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "bench_merge"
|
name = "bench_merge"
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ fn bench_group(mut runner: InputGroup<Column>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
black_box(sum);
|
black_box(sum);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
runner.register("access_first_vals", |column| {
|
runner.register("access_first_vals", |column| {
|
||||||
let mut sum = 0;
|
let mut sum = 0;
|
||||||
@@ -62,6 +63,7 @@ fn bench_group(mut runner: InputGroup<Column>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
black_box(sum);
|
black_box(sum);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
runner.run();
|
runner.run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ fn main() {
|
|||||||
let merge_row_order = StackMergeOrder::stack(&columnar_readers[..]);
|
let merge_row_order = StackMergeOrder::stack(&columnar_readers[..]);
|
||||||
|
|
||||||
merge_columnar(&columnar_readers, &[], merge_row_order.into(), &mut out).unwrap();
|
merge_columnar(&columnar_readers, &[], merge_row_order.into(), &mut out).unwrap();
|
||||||
black_box(out);
|
Some(out.len() as u64)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ time = { version = "0.3.10", features = ["serde-well-known"] }
|
|||||||
serde = { version = "1.0.136", features = ["derive"] }
|
serde = { version = "1.0.136", features = ["derive"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
binggan = "0.8.1"
|
binggan = "0.10.0"
|
||||||
proptest = "1.0.0"
|
proptest = "1.0.0"
|
||||||
rand = "0.8.4"
|
rand = "0.8.4"
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ fn bench_vint() {
|
|||||||
out += u64::from(buf[0]);
|
out += u64::from(buf[0]);
|
||||||
}
|
}
|
||||||
black_box(out);
|
black_box(out);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
|
|
||||||
let vals: Vec<u32> = (0..20_000).choose_multiple(&mut thread_rng(), 100_000);
|
let vals: Vec<u32> = (0..20_000).choose_multiple(&mut thread_rng(), 100_000);
|
||||||
@@ -26,6 +27,7 @@ fn bench_vint() {
|
|||||||
out += u64::from(buf[0]);
|
out += u64::from(buf[0]);
|
||||||
}
|
}
|
||||||
black_box(out);
|
black_box(out);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,20 +43,24 @@ fn bench_bitset() {
|
|||||||
tinyset.pop_lowest();
|
tinyset.pop_lowest();
|
||||||
tinyset.pop_lowest();
|
tinyset.pop_lowest();
|
||||||
black_box(tinyset);
|
black_box(tinyset);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
|
|
||||||
let tiny_set = TinySet::empty().insert(10u32).insert(14u32).insert(21u32);
|
let tiny_set = TinySet::empty().insert(10u32).insert(14u32).insert(21u32);
|
||||||
runner.bench_function("bench_tinyset_sum", move |_| {
|
runner.bench_function("bench_tinyset_sum", move |_| {
|
||||||
assert_eq!(black_box(tiny_set).into_iter().sum::<u32>(), 45u32);
|
assert_eq!(black_box(tiny_set).into_iter().sum::<u32>(), 45u32);
|
||||||
|
None
|
||||||
});
|
});
|
||||||
|
|
||||||
let v = [10u32, 14u32, 21u32];
|
let v = [10u32, 14u32, 21u32];
|
||||||
runner.bench_function("bench_tinyarr_sum", move |_| {
|
runner.bench_function("bench_tinyarr_sum", move |_| {
|
||||||
black_box(v.iter().cloned().sum::<u32>());
|
black_box(v.iter().cloned().sum::<u32>());
|
||||||
|
None
|
||||||
});
|
});
|
||||||
|
|
||||||
runner.bench_function("bench_bitset_initialize", move |_| {
|
runner.bench_function("bench_bitset_initialize", move |_| {
|
||||||
black_box(BitSet::with_max_value(1_000_000));
|
black_box(BitSet::with_max_value(1_000_000));
|
||||||
|
None
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user