浏览代码

utils: fix permutation benchmark

Lennart Braun 2 年之前
父节点
当前提交
1e97a67d9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)))
             },
         );