Summary
Add a cargo bench suite so developers can measure op latency on their hardware before committing to squid in a project.
Background
FHE performance is highly hardware-dependent. Without benchmarks, developers have no way to assess whether squid meets their latency requirements without writing their own measurements.
Work
- Add a
benches/ crate using criterion
- Benchmark each op (
add, sub, and, or, xor, sll, srl, sra, slt, sltu) for u32
- Benchmark
keygen and encrypt / decrypt
- Run with both
FFT64Ref and FFT64Avx backends
Summary
Add a
cargo benchsuite so developers can measure op latency on their hardware before committing to squid in a project.Background
FHE performance is highly hardware-dependent. Without benchmarks, developers have no way to assess whether squid meets their latency requirements without writing their own measurements.
Work
benches/crate usingcriterionadd,sub,and,or,xor,sll,srl,sra,slt,sltu) foru32keygenandencrypt/decryptFFT64RefandFFT64Avxbackends