Files
poulpy/poulpy-cpu-ref/benches/vec_znx.rs
Jean-Philippe Bossuat 4e90e08a71 Support for bivariate convolution & normalization with offset (#126)
* Add bivariate-convolution
* Add pair-wise convolution + tests + benches
* Add take_cnv_pvec_[left/right] to Scratch & updated CHANGELOG.md
* cross-base2k normalization with positive offset
* clippy & fix CI doctest avx compile error
* more streamlined bounds derivation for normalization
* Working cross-base2k normalization with pos/neg offset
* Update normalization API & tests
* Add glwe tensoring test
* Add relinearization + preliminary test
* Fix GGLWEToGGSW key infos
* Add (X,Y) convolution by const (1, Y) poly
* Faster normalization test + add bench for cnv_by_const
* Update changelog
2025-12-21 16:56:42 +01:00

29 lines
984 B
Rust

// poulpy-backend/benches/vec_znx_add.rs
use criterion::{Criterion, criterion_group, criterion_main};
use poulpy_cpu_ref::FFT64Ref;
use poulpy_hal::reference::vec_znx::{bench_vec_znx_add, bench_vec_znx_automorphism, bench_vec_znx_normalize_inplace};
#[allow(dead_code)]
fn bench_vec_znx_add_cpu_ref_fft64(c: &mut Criterion) {
bench_vec_znx_add::<FFT64Ref>(c, "cpu_ref::fft64");
}
#[allow(dead_code)]
fn bench_vec_znx_normalize_inplace_cpu_ref_fft64(c: &mut Criterion) {
bench_vec_znx_normalize_inplace::<FFT64Ref>(c, "cpu_ref::fft64");
}
fn bench_vec_znx_automorphism_cpu_ref_fft64(c: &mut Criterion) {
bench_vec_znx_automorphism::<FFT64Ref>(c, "cpu_ref::fft64");
}
criterion_group!(
benches,
// bench_vec_znx_add_cpu_spqlios_fft64,
// bench_vec_znx_add_cpu_ref_fft64,
// bench_vec_znx_normalize_inplace_cpu_ref_fft64,
// bench_vec_znx_normalize_inplace_cpu_spqlios_fft64,
bench_vec_znx_automorphism_cpu_ref_fft64,
);
criterion_main!(benches);