Fix benches (#4560)

This commit is contained in:
Sergii Glushchenko 2024-08-20 15:46:05 +02:00 committed by GitHub
parent e77df62114
commit c4d2ad2d64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ fn bench_hashset(samples_vec: &Vec<Vec<u64>>) {
fn bench_hashbrown(samples_vec: &Vec<Vec<u64>>) {
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 {
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>>) {
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 {
v.insert(s);
}