mod helpers; #[cfg(feature = "keygen")] mod bench { use bencher::Bencher; use helpers::*; use paillier::*; pub fn bench_key_generation(b: &mut Bencher) { b.iter(|| { Paillier::keypair_with_modulus_size(KS::size()); }); } benchmark_group!( group, self::bench_key_generation, self::bench_key_generation, self::bench_key_generation, self::bench_key_generation, self::bench_key_generation ); } #[cfg(feature = "keygen")] benchmark_main!(bench::group); #[cfg(not(feature = "keygen"))] fn main() {}