factored out blackbox in benchmarks
Jean-Philippe Bossuat jeanphilippe.bossuat@gmail.com
Tue, 17 Jun 2025 09:52:15 +0200
2 files changed,
4 insertions(+),
19 deletions(-)
M
core/benches/external_product_glwe_fft64.rs
→
core/benches/external_product_glwe_fft64.rs
@@ -75,12 +75,7 @@ scratch.borrow(),
); move || { - ct_glwe_out.external_product( - black_box(&module), - black_box(&ct_glwe_in), - black_box(&ct_ggsw), - black_box(scratch.borrow()), - ); + black_box(ct_glwe_out.external_product(&module, &ct_glwe_in, &ct_ggsw, scratch.borrow())); } }@@ -163,13 +158,7 @@ );
move || { let scratch_borrow = scratch.borrow(); - (0..687).for_each(|_| { - ct_glwe.external_product_inplace( - black_box(&module), - black_box(&ct_ggsw), - black_box(scratch_borrow), - ); - }); + black_box(ct_glwe.external_product_inplace(&module, &ct_ggsw, scratch_borrow)); } }
M
core/benches/keyswitch_glwe_fft64.rs
→
core/benches/keyswitch_glwe_fft64.rs
@@ -81,7 +81,7 @@ scratch.borrow(),
); 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 @@ scratch.borrow(),
); move || { - ct.keyswitch_inplace( - black_box(&module), - black_box(&ksk), - black_box(scratch.borrow()), - ); + black_box(ct.keyswitch_inplace(&module, &ksk, scratch.borrow())); } }