Fix benches (#4560)
This commit is contained in:
parent
e77df62114
commit
c4d2ad2d64
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ fn bench_hashset(samples_vec: &Vec<Vec<u64>>) {
|
||||||
|
|
||||||
fn bench_hashbrown(samples_vec: &Vec<Vec<u64>>) {
|
fn bench_hashbrown(samples_vec: &Vec<Vec<u64>>) {
|
||||||
for samples in samples_vec {
|
for samples in samples_vec {
|
||||||
let mut h = AHashSet::<u64>::with_capacity(samples.len());
|
let mut h = AHashSet::with_capacity(samples.len());
|
||||||
for &s in samples {
|
for &s in samples {
|
||||||
h.insert(s);
|
h.insert(s);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ fn bench_vector(samples_vec: &Vec<Vec<u64>>) {
|
||||||
|
|
||||||
fn bench_array<const N: usize>(samples_vec: &Vec<Vec<u64>>) {
|
fn bench_array<const N: usize>(samples_vec: &Vec<Vec<u64>>) {
|
||||||
for samples in samples_vec {
|
for samples in samples_vec {
|
||||||
let mut v = ArraySet::<u64, N>::with_capacity(samples.len());
|
let mut v = ArraySet::<N>::with_capacity(samples.len());
|
||||||
for &s in samples {
|
for &s in samples {
|
||||||
v.insert(s);
|
v.insert(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue