factored out blackbox in benchmarks

This commit is contained in:
Jean-Philippe Bossuat
2025-06-17 09:52:15 +02:00
parent b93e011347
commit 4455afdabd
2 changed files with 4 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ fn bench_keyswitch_glwe_fft64(c: &mut Criterion) {
);
move || {
ct_out.automorphism(&module, &ct_in, &ksk, scratch.borrow());
black_box(ct_out.automorphism(&module, &ct_in, &ksk, scratch.borrow()));
}
}
@@ -172,11 +172,7 @@ fn bench_keyswitch_glwe_inplace_fft64(c: &mut Criterion) {
);
move || {
ct.keyswitch_inplace(
black_box(&module),
black_box(&ksk),
black_box(scratch.borrow()),
);
black_box(ct.keyswitch_inplace(&module, &ksk, scratch.borrow()));
}
}