modfiy benches a bit

This commit is contained in:
Janmajaya Mall
2024-06-11 14:28:35 +05:30
parent 590a222c92
commit a4a8e8930c
4 changed files with 7 additions and 7 deletions

View File

@@ -103,9 +103,9 @@ mod test {
// let mut stats = Stats::new();
for _ in 0..1000 {
let now = std::time::Instant::now();
// let now = std::time::Instant::now();
let c_out = evaluator.xor(&c_m0, &c_m1, &runtime_server_key);
println!("Gate time: {:?}", now.elapsed());
// println!("Gate time: {:?}", now.elapsed());
// mp decrypt
let decryption_shares = cks

View File

@@ -192,7 +192,7 @@ pub(crate) fn pbs<
});
}
// let now = std::time::Instant::now();
let now = std::time::Instant::now();
// blind rotate
blind_rotation(
&mut trivial_rlwe_test_poly,
@@ -208,7 +208,7 @@ pub(crate) fn pbs<
pbs_info,
pbs_key,
);
// println!("Blind rotation time: {:?}", now.elapsed());
println!("Blind rotation time: {:?}", now.elapsed());
// sample extract
sample_extract(lwe_in, &trivial_rlwe_test_poly, pbs_info.modop_rlweq(), 0);
@@ -372,7 +372,7 @@ fn blind_rotation<
mod_op,
);
});
// println!("Auto count: {count}");
println!("Auto count: {count}");
}
fn mod_switch_odd(v: f64, from_q: f64, to_q: f64) -> usize {