Procházet zdrojové kódy

utils: fix permutation benchmark

Lennart Braun před 2 roky
rodič
revize
1e97a67d9d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      utils/benches/permutation.rs

+ 1 - 1
utils/benches/permutation.rs

@@ -9,7 +9,7 @@ pub fn bench_permutation(c: &mut Criterion) {
             BenchmarkId::new("FisherYates", log_domain_size),
             &log_domain_size,
             |b, &log_domain_size| {
-                let key = FisherYatesPermutation::sample(log_domain_size);
+                let key = FisherYatesPermutation::sample(1 << log_domain_size);
                 b.iter(|| black_box(FisherYatesPermutation::from_key(key)))
             },
         );